User`s manual

ModelSim Xilinx Users Manual Table of Contents - 15
10 - Tcl and ModelSim (241)
Tcl features within ModelSim . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Tcl References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Tcl print references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Tcl online references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Tcl commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Tcl command syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
if command syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
set command syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Command substitution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Command separator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Multiple-line commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Evaluation order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Tcl relational expression evaluation . . . . . . . . . . . . . . . . . . . . . . . 250
Variable substitution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
System commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
List processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
VSIM Tcl commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
ModelSim Tcl time commands . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Relations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
A - ModelSim Variables (255)
Variable settings report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Personal preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Returning to the original ModelSim defaults . . . . . . . . . . . . . . . . . . . . . 256
Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
ModelSim Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . 257
Setting environment variables in Windows . . . . . . . . . . . . . . . . . . . . 258
Referencing environment variables within ModelSim . . . . . . . . . . . . . . . . 259
Removing temp files (VSOUT) . . . . . . . . . . . . . . . . . . . . . . . . . 260
Preference variables located in INI and MPF files . . . . . . . . . . . . . . . . . . . 261
[Library] library path variables . . . . . . . . . . . . . . . . . . . . . . . . . 261
[vcom] VHDL compiler control variables . . . . . . . . . . . . . . . . . . . . . 262
[vlog] Verilog compiler control variables . . . . . . . . . . . . . . . . . . . . . 264