File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1756,13 +1756,14 @@ an always block as occurring in a separate simulation event as the non-blocking
17561756assignment. This process makes some signals jump registers, potentially leading
17571757to total protonic reversal. That's bad.
17581758
1759- Exception: For a clock divider blocking assingment must be used not to case race condition.
1759+ Note that all clock signals should be generated using blocking assignment even
1760+ for clock dividers. See #44 for details.
17601761
17611762👍 ;
17621763``` systemverilog {.good}
17631764logic clk_div2;
17641765always_ff @(posedge clk or negedge rst_ni) begin
1765- // only for a clock divider blocking assignment must be used not to cause race condition
1766+ // a clock signal should be generated using blocking assignment
17661767 if (!rst_ni) clk_div2 = 1'b0;
17671768 else clk_div2 = ~clk_div2;
17681769end
You can’t perform that action at this time.
0 commit comments