I was trying to print the $realtime for the following timescale setting:
`timescale 1ns/10ps
initial begin
#10;
$display(" %0t",$realtime);
$display($realtime);
end
The result that gets prints is:
1000
10
I am just curious as to what is different in using format specifier in printing realtime? Correct me if I am wrong. I believe it is printing 1000 (10 *10ps = 1000 ns) because of the time precision. But what is the reason for the difference?