Describing the issue below,
Current print format,
UVM_INFO @ 25687.000ns: reporter [SOME PRINT] Print example 1
UVM_INFO @ 25687.000ns: reporter [SOME PRINT] Print example 2
…
UVM_INFO @ 25688.000ns: reporter [SOME PRINT] Print example 10
Query : How to enable time print after decimal like 25687.156ns in my UVM testbench.
Thanks for your inputs…
Actually issue is not with printing inside UVM info by %f format.
As per you example will elaborate my query, uvm_info @ 0.000ns,
Here .000ns in your case might be correct for zero time simulation but when we long simulation tests, this .000ns does help as the UVM_ERROR prints 5000.000ns but actual error in waveform occurred at 5000.525ns.
Hope this could be helpful to understand this issue.
The issue is not with the format for printing, but rather the time precision in the scope where the delay appears. The actual delay is being rounded to the time precision, and the uvm_info is printing the value returned by $realtime formatted by %t.
module top;
timeunit 1ns;
timeprecision 1ps;
import uvm_pkg::*;
`include "uvm_macros.svh"
initial begin
$timeformat(-9, 3, " ns", 10);
#25687.156 `uvm_info("SOME PRINT","Print example 1", UVM_LOW)
end
endmodule