Forum Discussion
Altera_Forum
Honored Contributor
10 years agoNaming Values in ModelSim Wave with an Alias
Hi all,
I am wondering if there is a way to define a set of aliases for a models signal. Basically, I want to do the following: 1) I have a 5bit signal in the ModelSim waveform window called "opcode_r1" 2) The current number representation for the signal values is hex, so I will see values like: 0A, 1F, etc. 3) Is there a way I can define a set of aliases such that every time 0A shows up in that wave it displays ADD_IC instead of 0A? As you can see its an opcode for a processor and I feel it would be much easier to see the actual opcode name rather than the raw hex value. Thanks in advance!2 Replies
- Altera_Forum
Honored Contributor
You need to use the radix define TCL command in modelsim:
I suggest reading the modelsim reference manual for a better definition.radix define opcode { 5'h0A "ADD_IC" -color orange } etc. - Altera_Forum
Honored Contributor
This is what I was looking for!
With some more research after this, I found another good example on p67 of the following document: http://wiki.eng.iastate.edu/cpre584/images/3/3c/modelsim_pe_user_10.0d.pdf Thanks Tricky!