Technical data
onerror
CR-108 ModelSim Commands ModelSim EE/SE Command Reference
onerror
The onerror command is used within a macro; it specifies one or more commands
to be executed when a running macro encounters an error. Using the onerror
command without arguments will return the current onerror command string. Use
an empty string to change the onerror command back to its default behavior (i.e.,
onbreak ""). Use onerror with a resume command
(CR-135) to allow an error
message to be printed without halting the execution of the macro file.
Syntax
onerror
{[<command> [; <command>] ...]}
Arguments
<command>
Any VSIM command can be used as an argument to onerror. If you want to use
more than one command, use a semicolon to separate the commands, or place
them on multiple lines. The entire command string must be placed in curly braces.
Optional.
See also
do command
(CR-67), onbreak command (CR-106), resume command (CR-135),
and the status command
(CR-150)