mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Disable MULTIDRIVENPROC for static variables used as loop induction variables. Same way as we disable similar warning in Dfg. While bad style and bad for performance, it's common legacy code style.
14 lines
293 B
ReStructuredText
14 lines
293 B
ReStructuredText
.. comment: generated by t_lint_multidriven_proc_bad
|
|
.. code-block:: sv
|
|
:linenos:
|
|
|
|
integer i;
|
|
|
|
always @(posedge clk) begin
|
|
for (i = 0; i < 4; i = i + 1) q1[i] <= d[i];
|
|
end
|
|
|
|
always @(posedge clk) begin
|
|
for (i = 0; i < 4; i = i + 1) q2[i] <= ~d[i];
|
|
end
|