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. Advertisements

  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. Advertisements

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:
    7,185
    Neredbojias
    Aug 19, 2005
  2. Bengt Richter
    Replies:
    6
    Views:
    791
    Juha Autero
    Aug 19, 2003
  3. jack
    Replies:
    4
    Views:
    884
  4. tim

    hex string to hex value

    tim, Nov 22, 2005, in forum: Python
    Replies:
    8
    Views:
    21,133
  5. tim
    Replies:
    2
    Views:
    1,788
    Dennis Lee Bieber
    Nov 23, 2005
  6. Replies:
    3
    Views:
    2,272
    Timothy Bendfelt
    Jan 19, 2007
  7. Replies:
    9
    Views:
    1,389
    Juha Nieminen
    Aug 22, 2007
  8. Jeff.M
    Replies:
    6
    Views:
    408
    Lasse Reichstein Nielsen
    May 4, 2009
Loading...