Question about testbench can not catch posedge clk

Use nonblocking assignments in your testbench when using @(posedge clk).

2 Likes