L
laserbeak43
Hello,
I've created a subtype:
subtype digit is integer range 0 to 9;
and then used this type to make a signal. Is it possible to convert
this type to unsigned? when i do it, i get errors.
signal h1 : digit;
signal hv1 : unsigned(3 downto 0);
hv1 <= unsigned(h1); --Error (10305): VHDL Type Conversion error at
part1.vhd(75): cannot convert type "digit" to type "UNSIGNED"
thanks,
Malik
I've created a subtype:
subtype digit is integer range 0 to 9;
and then used this type to make a signal. Is it possible to convert
this type to unsigned? when i do it, i get errors.
signal h1 : digit;
signal hv1 : unsigned(3 downto 0);
hv1 <= unsigned(h1); --Error (10305): VHDL Type Conversion error at
part1.vhd(75): cannot convert type "digit" to type "UNSIGNED"
thanks,
Malik