O
Olaf
Guest
Hi,
maybe I did not seek the c.l.vhdl FAQ very carefully, but I did not
found a way to determine the bit width of a std_logic_vector/unsigned by
a given integer range. What I want to do is like this:
subtype level_t is integer range 0 to 8; -- width 3 downto 0
signal level : unsigned(?? downto ??); -- can hold level_t range
Is there a way?
Thanks
Olaf
maybe I did not seek the c.l.vhdl FAQ very carefully, but I did not
found a way to determine the bit width of a std_logic_vector/unsigned by
a given integer range. What I want to do is like this:
subtype level_t is integer range 0 to 8; -- width 3 downto 0
signal level : unsigned(?? downto ??); -- can hold level_t range
Is there a way?
Thanks
Olaf