System simulation time functions |
LRM §14.8. |
System simulation time functions return the current simulation time.
$time; $stime; $realtime;
$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.
$display("Current simulation time is: ", $time);