Uvm RAL set and get value with randomization for multiple register at the same time

Hi,

I have a simple reg_model without any sequence and adapter I am trying to set and get value from the register. I am confused how can I set and get random values for multiple reg at the same time. I would appreciate any ideas or examples

In reply to harshareddy132:

Your question is confusing. The UVM RAL take register transactions and converts them to sequences using an adaptor. Those sequences are sent to a driver which wiggles the pins of your DUT. How are you expecting to use a register model without an adaptor?

Assuming you’ve created a umm_reg_block containing random umm_reg objects which in turn contain random umm_reg_fields. All you have to do is call my_block.randomize to randomize everything at once. But there’s no way to get all the register values at the same time; you have to iterate over the registers.