Forum Discussion

ETheo3's avatar
ETheo3
Icon for New Contributor rankNew Contributor
6 years ago

Why would always @ (posedge) execute when no clock edge occurs?

I have a simple verilog program that uses an always loop: wire clk_pwm; reg out_4; reg [1:0] cnt_b; always_ff @ (posedge clk_pwm) begin cnt_b <= cnt_b + 1; if (out_4 == 0)...