how can i express hex? help me please

Status
Not open for further replies.

karper1986

Member level 2
Joined
Mar 13, 2009
Messages
49
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,715
Hi, anybody knows how can I express the hex fom verilog into vhdl? For example 4'hb I can express like "1010", or there is another solution, help me please. Thanks.
 

Code:
x <= '0'       Bit
x <= O"57"     Octal
x <= X"2F"     Hexadecimal
x <= "00000"   Binary
x <= B"00000"  Binary
x <= 1200      Decimal
Note that, for instance with hexadecimal, the destination must be a vector which fits exactly (4/8/12/16/20/.... bit vectors).
 

    karper1986

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…