shaiko
Advanced Member level 5
- Joined
- Aug 20, 2011
- Messages
- 2,644
- Helped
- 303
- Reputation
- 608
- Reaction score
- 297
- Trophy points
- 1,363
- Activity points
- 18,302
PHP:
process is
begin
case address_i is
when "0100" =>
--- do something
when "0101" =>
--- do something else
when others =>
--- do something else
end case ;
end process ;
address_i is defined as an unsigned ( 3 downto 0 ).
instead of writing the long binary address I want to write it in Hex.
x"4" instead of "0100"
x"5" instead of "0101"
What is the correct way to do it ?