Jun 2, 2009 #1 K 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.
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.
Jun 3, 2009 #2 M Marcel Majoor Full Member level 2 Joined Jan 17, 2004 Messages 148 Helped 69 Reputation 138 Reaction score 39 Trophy points 1,308 Activity points 1,569 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).
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).