In reply to chr_sue:
Thanks Chr_sue.
I don’t use $display in my actual code. I have just used for quick debug purpose .
In Waveform, I can see the write transaction and read transaction happing but i see the below msg and Test is getting Passed ?
UVM_INFO @ 1035850ns: reporter [RegModel] Wrote register via map m_sfr_aon_reg_model.uvm_reg_map: m_sfr_aon_reg_model.FW_SPARE0=0xaaaa5555
UVM_INFO @ 1035882ns: reporter [RegModel] Read register via map m_sfr_aon_reg_model.uvm_reg_map: m_sfr_aon_reg_model.FW_SPARE0=0
Where FW_SPARE0 is R/W register. and i expect read value should also same as write value
Here is my question:-
-
Do i need to write the additional checker to compare the write data and read data ? if yes then RAL model is just use for writing the and reading the Registers ?
-
How to take care the masking of registers field during write data and read data compare ?
eg.:- lets say , I have R1 register and i write data is 0xFFFFFFFF and Wr_mask value = 0x00001FF then expected Read data will be 000001FF. I n these scenario where to take care the Wr_mask ? if i will not take care WR data and Read data will not match