Uvm register file that accepts typedef packed data as parameter

Hello Team,

Does any file exists in uvm register package that accepts the following as parameter:

typedef struct packed {logic[31:0] bits;} word_t;

I mean to say: I am receiving error in the following line of code:

class spi_rw extends ***_uvm_registery_***[/i]#(word_t);

what should be uvm_register file, in my case it is not able to search, or the file doesn’t exists or the file naming is wrong.
I am using uvm-1.1d.
Please help.

Regards
Sunil Sharma

In reply to susharma:

Hi ,

Somehow I am unable to understand your intention behind this, What you want to achieve ??

Can you please explain what you want to do

Do want to create a register field of your own type ? but why would that be in real world register modelling why you need it uvm_reg_field is enough for that.

Regards,
KS