User`s manual
16 - Table of Contents ModelSim Xilinx User’s Manual
[vsim] simulator control variables . . . . . . . . . . . . . . . . . . . . . . . . 264
[Project] project file section (MPF files only) . . . . . . . . . . . . . . . . . . . 268
Setting variables in INI / MPF files . . . . . . . . . . . . . . . . . . . . . . . 269
Variable functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Preference variables located in TCL files . . . . . . . . . . . . . . . . . . . . . . . 273
User-defined variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Viewing the default preference file (pref.tcl) . . . . . . . . . . . . . . . . . . . . 273
Preference variable arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
Main window preference variables . . . . . . . . . . . . . . . . . . . . . . . 276
The Main window uses preference variables similar to other ModelSim window to conrol colors and
fonts. The variables below control some additional functions. . . . . . . . . . . . . . 276
Individual preference variables . . . . . . . . . . . . . . . . . . . . . . . . . 277
The addons variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Setting Tcl preference variables . . . . . . . . . . . . . . . . . . . . . . . . . 278
More preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Preference variable loading order . . . . . . . . . . . . . . . . . . . . . . . . . . 284
Simulator state variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Referencing simulator state variables . . . . . . . . . . . . . . . . . . . . . . . 285
B - ModelSim Shortcuts (287)
Wave window keyboard shortcuts . . . . . . . . . . . . . . . . . . . . . . . . 287
List window keyboard shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . 288
Command shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Command history shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Mouse and keyboard shortcuts in the Transcript and Source windows . . . . . . . . . . 289
Right mouse button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
C - Tips and Techniques (291)
Running command-line and batch-mode simulations . . . . . . . . . . . . . . . . . . 292
Passing parameters to macros . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Source code security and -nodebug . . . . . . . . . . . . . . . . . . . . . . . . . 294
Setting up libraries for group use . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Detecting infinite zero-delay loops . . . . . . . . . . . . . . . . . . . . . . . . . 295
Modeling memory in VHDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Index (301)