Shannon <> writes:
Hi Shannon,
Sorry - no answers, only questions!
> I have:
>
> Integer_variable: OUT INTEGER RANGE 0 TO 65535;
>
> and
>
> TYPE reg_type IS ARRAY (0 TO 12) OF STD_LOGIC_VECTOR(var1'RANGE);
How wide are the vectors?
> SIGNAL regs : reg_type;
>
> and what I want to accomplish is:
>
> Integer_variable <= to_integer(unsigned(regs(6) & regs(5) & regs(4) &
> regs(3)));
>
Have you tried it? What doesn't work?
> Is there a way to accomplish this with just type casting? I'd rather
> not change the types assigned to 'Integer_variable and 'regs'.
>
I think what you've written ought to work...
Cheers,
Martin
--
TRW Conekt - Consultancy in Engineering, Knowledge and Technology
http://www.conekt.net/electronics.html