UVM RAL access type

Hi,

Is the UVM RAL access type (RO, WR, etc) for HW or SW?

Can someone explain what is difference between HW and SW access to register and how does that work?

Thanks!

In reply to UVM_SV_101:

Could you please explain wher these terms come from?
I guess you mean the access of the registers in the DUT (HW) and in the register morror of the testbench (SW).
In my understand this terminology is misleading.

In reply to chr_sue:

In reply to UVM_SV_101:
Could you please explain wher these terms come from?
I guess you mean the access of the registers in the DUT (HW) and in the register morror of the testbench (SW).
In my understand this terminology is misleading.

For translating from RDL to RAL
RDL :

field {
        name = "CNTR";
        fieldwidth = 1;
        hw = w;
        sw = rw;
       }CNTR[2:2] = 0;

This reg field would translate to following in RAL:


this.CNTR =uvm_reg_field::type_id::create("CNTR",,get_full_name());
this.CNTR.configure(this, 1, 2, "RW", 1, 1'h0 ,1,0,0);

My question is access policy from RDL “sw = rw” translated to “RW” in RAL.

  1. What does “hw” and “sw” mean in RDL
  2. In RDL if the access type for “hw and sw” is different, why does RAL picks “sw” access policy?

In reply to UVM_SV_101:

I guess RDL stands for Register Description Language. This is how the registers are defined for your application. This has to consider the HW, which is the chip or the DUT (hw) and the Sotware to deal with the registers (sw). With this interpretation the ‘sw’ is not relevant for the RAL.

In reply to chr_sue:

In reply to UVM_SV_101:
I guess RDL stands for Register Description Language. This is how the registers are defined for your application. This has to consider the HW, which is the chip or the DUT (hw) and the Sotware to deal with the registers (sw). With this interpretation the ‘sw’ is not relevant for the RAL.

Thank you for the explanation.

I tried to map the reg field described in RDL to RAL with access type for that particular field and I observed that access type mentioned for “sw” is used to configure the reg field in RAL file.