Technical data
12 Before you begin ModelSim EE/SE Tutorial
Reusing commands from the Main transcript
ModelSim’s Main transcript may be saved, and the resulting file used as a DO
(macro) file to replay the transcribed commands. You can save the transcript at
any time before or during simulation. You have the option of clearing the
transcript (File > Clear Transcript) if you don’t want to save the entire command
history.
To save the contents of the transcript select File > Save Main As from the Main
menu.
Replay the saved transcript with the do command:
do <do file name>
For example, if you saved a series of compiler commands as mycompile.do (the
.do extension is optional), you could recompile with one command:
do mycompile.do
Note: Neither the prompt nor the Return that ends a command line are shown in the examples.
Shortcut Description
click on prompt left-click once on a previous ModelSim or VSIM prompt in the transcript to copy
the command typed at that prompt to the active cursor
his or history
shows the last few commands (up to 50 are kept)