I’m modeling a read only register, I faced a behavior of predict() function I couldn’t understand as following:
I call predict function:
assert(!regmodel.regA.fld1.predict(1));
The above assume failed it means the returned status is UVM_NOT_OK, but when I checked predict() uvm 1.2 code I noticed that when status is UVM_NOT_OK
I should get the following warning in my report but I have 0 warnings in my simulation, any idea please?
UVM_PREDICT_DIRECT:
begin
if (m_parent.is_busy()) begin
`uvm_warning("RegModel", {"Trying to predict value of field '",
get_name(),"' while register '",m_parent.get_full_name(),
"' is being accessed"})
rw.status = UVM_NOT_OK;
end
end