Sunday, April 7, 2013

VHDL: Converting from an INTEGER type to a STD_LOGIC_VECTOR

http://electronics.stackexchange.com/questions/4482/vhdl-converting-from-an-integer-type-to-a-std-logic-vector


use ieee.numeric_std.all;
...
my_slv <= std_logic_vector(to_unsigned(my_int, my_slv'length));

No comments:

Post a Comment