Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

modelsim: find processes/variables

Tags:

vhdl

modelsim

I would like to write a nice function that adds signals and process variables to the wave. While it's quite easy with signals, I don't know how to do it with variables. I would expect something like "find processes" and "find variables" in analogy to "find instances" and "find signals", but I haven't found anything like this in the manual. Is there any other way?

like image 988
Andy Avatar asked Nov 12 '22 18:11

Andy


1 Answers

I do two things:

  1. Use modelsim log command. If you type in log -r UUT/* it will log all signals, variables, etc associated with your UUT instantiation and all subcombonents. I set up a script to call log -r /* every time I launch modelsim.
  2. Use modelsim do files. When running a particular simulation, I'm usually interested in a subset of the signals of the UUT, so I create a do file for just those signals. Then every time I rerun that simulation I pass in the do file with the -do modelsim switch.

I'm not sure of a way to script modelsim in the way you're describing, but maybe the above suggestions will accomplish your goal.

like image 147
Russell Avatar answered Nov 15 '22 11:11

Russell