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

time

The Tcl time command displays the current simulation time scaled to the specified unit. The unit can be

The simulation time can be displayed in the following time units:

If no unit is given, the value of the $display_unit variable is used. This variable is set to auto by default.

time Command Syntax

time [[10 | 100] time_unit | auto | module]
    -delta
    -nounit

time Command Options

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

-delta

Includes the delta cycle count.

The -delta option is ignored if the analog solver is active.

At any given simulation time, values of nets are first updated and then behaviors that are sensitive to those nets are executed. This two step process may be repeated any number of times because of zero-delays. The delta cycle count represents the number of times the process is repeated for the given simulation time.

-nounit

Does not include the time unit.

time Command Examples

xmsim -tcl boardxmsim: v1.0.(p2): (c) Copyright 1995 - 2000 Cadence Design Systems

xcelium> run 100 ns5 count= X, f=x, af=xRan until 100 NS + 0

The following command displays the current simulation time in ns.

xcelium> time ns100 NS

The following command displays the current simulation time in fs.

xcelium> time fs100000000 FS

The following command displays the current simulation time in 100 times the base unit of fs.

xcelium> time 100fs1000000 100FS

The following commands illustrate the auto keyword, which displays the time using the largest base unit that makes the numeric part of the time an integer.

xcelium> time fs100000000 FSxcelium> time auto100 NS

The following command displays the current simulation time using the timescale of the current debug scope.

xcelium> time module100 NS

The following command displays the current simulation time using the timescale of the current debug scope and including the delta cycle count.

xcelium> time module -delta100 NS + 0

The following command displays the current simulation time with no time unit.

xcelium> time -nounit100




 ⠀
X