6-bit hex

Discussion in 'VHDL' started by krby_xtrm, Nov 24, 2005.

  1. krby_xtrm

    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, Nov 24, 2005
    #1
    1. Advertising

  2. 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-
     
    Jaakko Varteva, Nov 24, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    10
    Views:
    6,356
    Neredbojias
    Aug 19, 2005
  2. Bengt Richter
    Replies:
    6
    Views:
    505
    Juha Autero
    Aug 19, 2003
  3. Replies:
    3
    Views:
    1,830
    Timothy Bendfelt
    Jan 19, 2007
  4. Replies:
    9
    Views:
    1,033
    Juha Nieminen
    Aug 22, 2007
  5. Jeff.M
    Replies:
    6
    Views:
    199
    Lasse Reichstein Nielsen
    May 4, 2009
Loading...

Share This Page