Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > 6-bit hex

Reply
Thread Tools

6-bit hex

 
 
krby_xtrm
Guest
Posts: n/a
 
      11-24-2005
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?

 
Reply With Quote
 
 
 
 
Jaakko Varteva
Guest
Posts: n/a
 
      11-24-2005


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-

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hex string to hex value tim Python 8 11-23-2005 06:27 PM
[Fwd: Re: hex string to hex value] tim Python 2 11-23-2005 07:18 AM
Hex Color Codes - Hex 6 <=> Hex 3 lucanos@gmail.com HTML 10 08-18-2005 11:21 PM
hex value in string back to real hex value jack Python 4 09-08-2004 07:11 AM
hex(-5) => Futurewarning: ugh, can't we have a better hex than '-'[:n<0]+hex(abs(n)) ?? Bengt Richter Python 6 08-19-2003 07:33 AM



Advertisments