In reply to chr_sue:
My intention is to change the mirrored value (which is 'h0 after reset) to the value which I write (as 'h3 in my Top Env) before running the hw_reset_seq.
So that I can avoid this Error :
reporter [RegModel] Register “regmodel.REGBLOCK.RSTCFG” value read from DUT (0x0000000000000003) does not match mirrored value (0x0000000000000000)
So, basically my Idea is to override the mirrored value just after the read and just before the comparison takes place inside the hw_reset_seq for this register.
Hence, I am calling the predict() method inside the post_read() method.
Hope you got what I am trying to achieve here… :)
There might be one question in your mind that why am I writing to that register from the Top Env. The answer is that my Env needs to have that register written with that value ('h3) due to some setup requirement.