mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
d4b3583307
The Dfg2Ast conversion assumes the 'regularize' pass was run, but we failed to run it on cyclic sub-graphs. Do so now. Fixes #5130.
20 lines
370 B
Systemverilog
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
|