User guide

9-11
Using the Old Command Line Interface (CLI)
Accessing Events
trigger(0|1|2|3|4, event variable)
Triggers an event in the testbench according to the following:
0 -> Off
1 -> On
2 -> One shot
3 -> One blast
4 -> Handshake
Command Files
It is possible to create, in the working directory, a .vcsrc file containing
CLI commands that VCS executes on entry to the CLI. This is useful
for specifying alias commands to customize the command language.
Any CLI command can appear in this file.
Within the CLI, use the source command at any time to read in a file
that contains CLI commands. The -i runtime option is shorthand to
specify a source file to be read upon entry to the CLI.
If a .vcsrc file exists in the working directory when a simulation is run,
the executable reads it and executes commands at time zero before
executing any commands in a -i file.
Example 9-1 Interactive Debugging Example
The following is an example of the use of the interactive debugger:
% more a.v