AldoT
AldoT

Reputation: 943

What is `uvm_field_* macros for time datatype

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?

Upvotes: 0

Views: 1619

Answers (1)

dave_59
dave_59

Reputation: 42723

Use uvm_field_int because as far as SystemVerilog is concerned, time is just an alias for longint

Better yet, don't use any field macros at all as they are horribly inefficient.

Upvotes: 1

Related Questions