Let say I have a variable of type time.
class my_class extends uvm_object;
time my_time;
int my_int;
`uvm_object_utils_begin(my_class)
`uvm_field_int(my_int, UVM_DEFAULT)
// ? for time
`uvm_object_utils_end
endclass
As we know, we can use 'uvm_field_int for int data type.
What is the proper macro for time datatype?
Use
uvm_field_intbecause as far as SystemVerilog is concerned,timeis just an alias forlongintBetter yet, don't use any field macros at all as they are horribly inefficient.