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
Hexadecimal value (literal) as function parameter, is it possible?
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="KJ, post: 5087645"] I'd suggest that you don't reinvent the wheel. Use the ieee.numeric_std library which already has resize functions for signed and unsigned types which can be converted, if necessary, to std_logic_vector if you must use that type. use ieee.numeric.std.all; .... toto <= std_logic_vector(resize(43690, 10)); -- One way to do it toto <= std_logic_vector(resize(16#AAAA#, 10)); -- Another way to do it Kevin Jennings [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
Hexadecimal value (literal) as function parameter, is it possible?
Top