Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
VHDL
Easy type conversion question for you guys
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Shannon, post: 2955680"] 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); SIGNAL regs : reg_type; and what I want to accomplish is: Integer_variable <= to_integer(unsigned(regs(6) & regs(5) & regs(4) & regs(3))); Is there a way to accomplish this with just type casting? I'd rather not change the types assigned to 'Integer_variable and 'regs'. TYIA Shannon [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
Easy type conversion question for you guys
Top