X
Xin Xiao
I want to convert a bit_vector to an unsigned integer, using function
to_integer, from ieee.
variable Ain : bit_vector(15 downto 0);
addr := to_integer(unsigned(Ain));
The error is "The expression can not be converted to type unsigned".
I've included use IEEE.NUMERIC_STD.ALL in the header.
any suggestions?
to_integer, from ieee.
variable Ain : bit_vector(15 downto 0);
addr := to_integer(unsigned(Ain));
The error is "The expression can not be converted to type unsigned".
I've included use IEEE.NUMERIC_STD.ALL in the header.
any suggestions?