

NOTE: The reference guides mentioned above seem to not be readily available directly from Mentor Graphics, which is a Siemens property at the time of post.

Use +acc with vopt or vsim -voptargs with +acc for selective design object visibility during debugging. When you attempt to run the UniPHY simulation example designin ModelSim or Riviera-PRO, you may receive the following error:Error: (vsim-125) The shared library. Optimized designs simulate faster, while non-optimized designs provide object visibility for debugging. Inside the modelsim.ini file, it contains a line which defines a library mapping for Questa. The VoptFlow modelsim.ini variable (below) sets the default design optimization on (1) or off (0).
#Modelsim vsim code
With this this code dropped into pref.tcl or modelsim.tcl, if you double-click in the ModelSim terminal on a line with with compilation errors, ModelSim should launch the editor of your choice to the offending line of code. vsim +UVMUSEOVMRUNSEMANTIC +UVMTESTNAMEhello. Set PrefSource(altEditor) external_editor Proc external_editor_ln notepad++ $filename "-n$linenumber" To make questasim load a separate settings file at startup, set the MODELSIM_TCL environment variable to point to the path of the respective file, e.g.: export MODELSIM_TCL="$HOME/.mentor/perf.tcl"Īlternatively, you can just put the following into ~/modelsim.tcl AFAIK.Īdd this to the settings file: # Launch custom command as external editor: It doesn't support the linenumber argument AFAICT.įor my setup I followed these steps (to eventually launch geany as the editor):
