The Tcl finish command causes the simulator to exit and returns control to the operating system.
finish Command Syntax
finish [0 | 1 | 2]
finish Command Options
This command takes an optional argument that determines what type of information is displayed.
0: Prints nothing (same as executingfinishwithout an argument).
1: Prints the simulation time. If the analog solver is interactive when the finish command is issued, the analog solver's simulation time is printed; otherwise the digital solver's simulation time is printed.
2: Prints simulation time as for the argument above and also prints statistics on memory and CPU usage.
finish Command Examples
The following command ends the simulation session and prints the simulation time.
xcelium> finish 1 Simulation complete via $finish(1) at time 0 FS + 0 %
The following command ends the simulation session, prints the simulation time, and displays memory and CPU usage statistics.
xcelium> finish 2
Memory Usage - 7.6M program + 2.1M data = 9.8M total
CPU Usage - 0.9s system + 2.5s user = 3.4s total (28.5% cpu)
Simulation complete via $finish(2) at time 500 NS + 0
%
