Hi,
I have a problem on controlling the unkown value during pre-reset phase.
In pre-reset phase, I made all inputs to the DUT to have a value of `x.
However, my monitor is having an infinite loop on the forever block because the conditional statement in my monitor code cannot determine this unkown value.
This is the code in my monitor:
============================================================
$display(“Waiting for pre-reset to finish”);
@(posedge sigs.rstb); // This part cannot detect unkown value so the program just goes on
// The @(posedge sigs.data_in) cannot detect unkown value so the program goes in infinite loop
forever begin
@(posedge sigs.data_in) begin
// Some codes here
end
end
So, can you guys give me some advice on how to correctly code this one so the infinite loop will not happen when the value to be evaluated is unkown? :)
Thank you. :)
Regards,
Reuben