6-bit hex

K

krby_xtrm

Guest
is there a way to represent a 6-bit binary in HEX?

ex:

signal dw_number : std_logic_vector(5 downto 0);

case dw_number is
when X"01" => DATA <= OTHER_DATA; -- this X"01" is 8-bit?
 
krby_xtrm wrote:
is there a way to represent a 6-bit binary in HEX?
I guess not. You can of course code your own function that takes a
string (hex format) and number of bits as arguments and returns a logic
vector with given number of bits. (Or is there such a fuction already in
some library?)

-jv-
 

Welcome to EDABoard.com

Sponsor

Back
Top