Hi All
Can anyone throw some light on the predict function?
here is the code snippet :
rg.predict(32’h1);
rg.read(status, rdata, UVM_FRONTDOOR);
`ovm_info(get_type_name(), $psprintf(“Data read from cmn_uc_dword10 is: %0x ***”, rdata), OVM_NONE)
if(rdata !== 32'h1)
`ovm_error(get_type_name(), $psprintf("Data read from cmn_uc_dword10 is: %0x ***", rdata))
else
`ovm_info(get_type_name(), $psprintf("Data read from cmn_uc_dword10 is: %0x ***", rdata), OVM_NONE)
end
It is giving error saying data read from cmn_uc_dword10 is: 0 ***