Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17256 Discussions

Naming Values in ModelSim Wave with an Alias

Altera_Forum
Honored Contributor II
2,583 Views

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!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,698 Views

You need to use the radix define TCL command in modelsim: 

 

radix define opcode { 5'h0A "ADD_IC" -color orange } etc.  

 

I suggest reading the modelsim reference manual for a better definition.
Altera_Forum
Honored Contributor II
1,698 Views

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!
0 Kudos
Reply