Product Documentation
Spectre AMS Designer and Xcelium Simulator Mixed-Signal User Guide
Product Version 22.09, September 2022

restart

The Tcl restart command replaces the currently simulating snapshot with another snapshot of a same design. The simulator then uses the analog control options associated with the new snapshot to continue the simulation.

The specified snapshot must be a snapshot created by the save command.

The software interprets the snapshot name the same way as the snapshot name on the xmsim command line, with the addition that, if you want, you can give only the view name preceded by a colon to load a snapshot that is a view of the currently loaded cell. For example:

restart top

Restarts [ lib .] top [: view ]

If the view name is omitted, there must be only one snapshot of the given cell, otherwise the snapshot name is ambiguous. In this case, an error message is issued, and a list of available snapshots is printed.

restart top:ckpt

Restarts [ lib .] top:ckpt

restart :ckpt

Restarts [ lib .][ cell ]:ckpt

When you restart with a saved snapshot in the same simulation session:

If you exit the simulation and then start the simulator with a saved snapshot, databases are closed. Any probes and breakpoints are deleted. If you want to restore the full Tcl debug environment when you restart, make sure that you save the environment with the save -environment command. This command creates a Tcl script that captures the current breakpoints, databases, probes, aliases, and predefined Tcl variable values. You can then use the Tcl source command after restarting or the -input option when you start the simulator to execute the script. For example,

xmsim top
       (open a database, set probes, set breakpoints, deposits, forces, etc.)
xcelium> run 100 ns
xcelium> save worklib.top:ckpt1
xcelium> save -environment ckpt1.tcl
xcelium> exit
xmsim -tcl worklib.top:ckpt1
xcelium> source ckpt1.tcl

restart Command Syntax

restart <snapshot_name>
[-path <snapshot_dir]
[-show]

restart Command Options

This section describes the options that you can use with the Tcl restart command.

-path snapshot_dir

Restarts the simulation with the snapshot saved at the specified location.

This option lets you restart with a snapshot that was saved to a specific location with a save -path command. For example:

xcelium> save -path /path/to/new/snapshot/dir worklib.top:ckpt1
xcelium> [some Tcl commands]
xcelium> restart -path /path/to/new/snapshot/dir worklib.top:ckpt1

This restart command first reads in the library at the location specified by the -path option, and then loads the specified snapshot.

-show

Lists the names of all snapshots that can currently be used as the argument to the restart command.

restart Command Limitations

The following restrictions apply when using the restart command.

restart Command Examples

In the following example, a save command is issued to save the simulation state as a view of the currently loaded cell, top. This snapshot can then be loaded using either of the next two restart commands.

xcelium> save top:ckpt1
xcelium> restart top:ckpt1
xcelium> restart :ckpt1

In the following example, a save command is issued to save the simulation state as a view of the currently loaded cell, top. A second save command is issued to save the Tcl debug environment. If you exit the simulator, you can restart with the saved snapshot and then restore the debug settings by sourcing the script created with the save -environment command.

xcelium> save top:ckpt1
xcelium> save -environment top_ckpt1.env
xcelium> exit
xcelium -tcl :ckpt1
xcelium> source top_ckpt1.env

The following command reloads the snapshot of the given cell, top. Because the view name is not specified, the snapshot name is ambiguous if there is more than one view, and an error message is issued.

xcelium> restart top

The following command lists all of the snapshots you can currently load with the restart command.

xcelium> restart -show
otherlib.board:module
worklib.board:ckpt1
worklib.board:ckpt2

Related Topic



 ⠀
X