Hi
I would like to get some help-
My module receives reset from other domain. The reset is up only for one clock cycle of the reset’s clock domain. At posedge of my module’s clock it should sample the reset, and then at the next posedge the signal should be cleared.
I had a situations where my clock was slower than the reset’s clock, so it missed the reset sample.
I want to write an assertion for that situation.
My problem now is that the simulation evaluates the reset value at the end of the first posedge with it’s past value, and not with the next by value:
initial begin
forever @(posedge reset[idx]) begin
@(posedge clk);
assert (sig[idx] === 1'b0);
end
end
I don’t want to write another posedge… is the any way to make the simulation catch the next value?
thank you!