Hi , can you please let us know. can we use @(posedge clk) statement inside the always block. if it is not can you please tell me the approach how to recreate this scenario.
logic prev;
always @(posedge d)
begin
prev = d;
@(posedge clk);
@(posedge clk);
force b = ~prev;
@(posedge clk);
release b;
end
In reply to cgales:
It is working, but my mentors are telling it will give improper results but I’m not seeing any improper results. So I want to know can we use it or if not why?