verilator/test_regress/t/t_dfg_regularize_circular.v
Geza Lore d4b3583307
Apply DFG regularization to cyclic graphs (#5142)
The Dfg2Ast conversion assumes the 'regularize' pass was run, but we
failed to run it on cyclic sub-graphs. Do so now.

Fixes #5130.
2024-05-26 12:01:30 +01:00

20 lines
370 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module A (
output [2:0] Y
);
endmodule
module B;
wire [2:0] w1;
wire w2;
A A (
.Y({ w1[2], w1[0], w2 })
);
assign w1[1] = w1[2];
endmodule