I can't find a uvm_field_* macro that I can use in my testbench. I defined a struct:
typedef struct {
unsigned byte red;
unsigned byte green;
unsigned byte blue;
} pixel;
Now, in my sequence item, I declare:
rand pixel unsigned data[];
rand int unsigned height;
rand int unsigned width;
`uvm_object_utils_begin(cgs_rgb_trans_t)
`uvm_field_int(height, UVM_ALL_ON)
`uvm_field_int(width, UVM_ALL_ON)
`uvm_field_array_pixel(data, UVM_ALL_ON)
`uvm_object_utils_end
I doubt this will work. Can i just register it as `uvm_field_array_int? What is the method to do this?