Altera_Forum
Honored Contributor
14 years agovirtual types and functions
Hi all!
I have a std_logic_vector(7 downto 0) signal that I would like to display in the wave panel of modelsim. This signal is an opcode so I want to display mnemonics instead of the litteral value of the signal. For this I use a virtual type and a virtual function:quietly virtual type {{0b00000000 ADD } {0b00000001 INC } {0b00000010 DEL } {0b00000011 DEC } {0b00000100 SET } {0b00000101 READ} {0b00000111 EOP } {default INCORRECT}} fh_opcode
quietly virtual function {(fh_opcode) input_opcode } opcode Here is how it is displayed by ModelSim (http://img824.imageshack.us/img824/5779/opcode.png): http://img824.imageshack.us/img824/5779/opcode.png Apparently the {default INCORRECT} mnemonic is not applied by default... Anybody sees what I did wrong? Thx - Julien