Hello everyone,
I wrote code which includes time variables,
but when i displayed this variable, it has been rounding a higher number.
how do i prevent that?
Thanks for your answers.
class …;
const realtime tclk_half = 31250ps;
///////////////////////////////////////////////
build_phase;
$timeformat(-12,0,“ps”,8);
///////////////////////////////////////////////
run_phase;
`uvm_info(get_type_name(),$sformat(“time : %t”,tclk_half), UVM_LOW)
Output :
time : 31300ps