Hi,
Lets Take a register of 32 bit which has four fields of 8bit each. In that 4 fields, two are of RO type and Two are of RW type. I created a reg fields class extending from uvm_reg. Later I tried to make reg block and map this register.Unfortunately while mapping , I found a field called rights in add_reg as shown below
reg_map.add_reg( .rg(regA), .offset( 32'h01 ), .rights( "WO" ));
.My question is that what should be the rights given for a kind of register given above and also help me out with affects of this rights. ANd what is the difference between those two types of rights which is in uvm_reg and uvm_reg_block??
Thank you