I add “-diag timescale” in VCS compile options to diagnose timescale in each module and the source.
And in compile-log, it show that the uvm_pkg got the timescale of 1ns/1ps, and the source is vcs command options:
package “uvm_pkt” gets time unit ‘1ps’ from vcs command option
package “uvm_pkt” gets time precision ‘1ps’ from vcs command option
but in all classes of uvm like sequence or driver or anything else, the “`uvm_info” macro print time in the unit of “ns”: @12015.0ns
Do you know why? And where on earth to control the time unit of “`uvm_info” macro?
thank you very much, your answer helps a lot.
But I have another question:
If I set my drain time in my sequence like this:
objection.set_drain_time(this, 1230);
this “1230” means what? 1230ns? or 1230ps? and on what it depends?