How to use ovm_reg_adapter in OVM RAL to update DUT register using front door

Hi,

We are using ovm_register 2.0 library provided by verification academy. I have gone through SPI RAL example provided by verification academy for OVM. We have couple of questions regarding this example.

  1. reg.bus_write is updating the values only in register map but not in DUT registers. In UVM it requires to use reg_adapter to pass these values to DUT via set_sequencer command which will update both register map as well as DUT registers. Question is, why does not OVM support usage of reg_adapter?

  2. If we want to update registers of DUT using OVM RAL, how to do it? Are there any API’s like write, read, get, set, peek…etc in UVM, which will update both DUT and register map registers?

Please, pardon my ignorance if I was wrong in any of the above. will greatly appreciate, if you can clear my doubts.