System simulation time functions

LRM §14.8.

System simulation time functions return the current simulation time.

Syntax:

$time;
$stime;
$realtime;

Description:

$time returns the current simulation time as a 64-bit unsigned integer.

$stime returns the lower 32-bits of the current simulationt time as an unsigned integer.

$realtime returns the current simulation time as a real number.

Example:

$display("Current simulation time is: ", $time);

See also:

Display tasks