In reply to Have_A_Doubt:
-
Using a timescale of 10ns or 100ns is asking for trouble in my opinion.
-
Specify a unit with your delays to remove any ambiguity, such as 10ns.
-
Have a look at $timeformat(), and use %t with $realtime:
$timeformat [ ( units_number , precision_number , suffix_string , minimum_field_width ) ] ;