The Tcl time command displays the current simulation time scaled to the specified unit. The unit can be
- A time unit that you specify
auto: use the largest base unit that makes the numeric part of the time an integer
module: use the timescale of the current debug scope
The simulation time can be displayed in the following time units:
fs: femtoseconds
ps: picoseconds
ns: nanoseconds
us: microseconds
ms: milliseconds
sec: secondsmin: minuteshr: hours
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.
|
Includes the delta cycle count. The 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. |
|
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
