Hello
I have integrated my UVM RAL into the existing TB and was able to have the connections and access to the reg_model.
Built-in env and in connect phase have done as shown below
m_pcie_rm.default_map.set_sequencer(m_apbm_env[i].m_agent.sequencer,this.reg2apb);
When I run the sequence as shown below
m_pcie_rm.DWC_PCIE_USP_PF2_SRIOV_CAP_DBI2.SRIOV_BAR0_MASK_REG.read( .status(status),.value(r_val),.parent(this));
m_pcie_rm.DWC_PCIE_USP_PF2_SRIOV_CAP_DBI2.SRIOV_BAR0_MASK_REG.write(.status(status),.value(32'h8),.parent(this));
m_pcie_rm.DWC_PCIE_USP_PF2_SRIOV_CAP_DBI2.SRIOV_BAR0_MASK_REG.read(.status(status),.value(r_val),.parent(this));
The adapter values show read data as 0 and while write it shows 8. I have tried mirror check it too gives zero as its value despite write and I have observed desired getting updated with the write data 8 .
UVM_INFO | 5336ns | apb_adapter.sv | 42 | reporter | apb_adapter | ADAPTER...
UVM_INFO | 5336ns | apb_adapter.sv | 44 | reporter | apb_adapter | reg2bus addr=320224 data=0
UVM_INFO | 5336ns | apb_adapter.sv | 42 | reporter | apb_adapter | ADAPTER...
UVM_INFO | 5336ns | apb_adapter.sv | 44 | reporter | apb_adapter | reg2bus addr=320224 data=8
UVM_INFO | 5336ns | apb_adapter.sv | 42 | reporter | apb_adapter | ADAPTER...
UVM_INFO | 5336ns | apb_adapter.sv | 44 | reporter | apb_adapter | reg2bus addr=320224 data=0
UVM_INFO | 5336ns | cdv_cdns_pcie_vseq_base.sv | 301 | reporter@@pcie_cfg | cdns_pcie_cfg_vseq | INSIDE RAL SEQ WORKING
UVM_INFO | 5336ns | cdv_cdns_pcie_vseq_base.sv | 304 | reporter@@pcie_cfg | cdns_pcie_cfg_vseq | desired_val:8
UVM_INFO | 5336ns | cdv_cdns_pcie_vseq_base.sv | 307 | reporter@@pcie_cfg | cdns_pcie_cfg_vseq | desired_val:8 and r_val 0
UVM_ERROR | 5336ns | cdv_cdns_pcie_vseq_base.sv | 308 | reporter@@pcie_cfg | ERROR | TEST FAILED
UVM_INFO | 5336ns | apb_adapter.sv | 42 | reporter | apb_adapter | ADAPTER...
UVM_INFO | 5336ns | apb_adapter.sv | 44 | reporter | apb_adapter | reg2bus addr=320224 data=0
Register "m_pcie_rm.DWC_PCIE_USP_PF2_SRIOV_CAP_DBI2.SRIOV_BAR0_MASK_REG" value read from DUT (0x0000000000000000) does not match mirrored value (0x00000000000fffff)
First adapter info is read then write and read . The last info is from mirror check . Is it the problem in agents in TB or my fault in RAL