mirror of https://github.com/YosysHQ/yosys.git
Add test for bug 3462
This commit is contained in:
parent
4bc1e1d1f1
commit
5b5fe76966
|
@ -0,0 +1,12 @@
|
|||
read_verilog <<EOT
|
||||
module top();
|
||||
wire array[0:0];
|
||||
wire out;
|
||||
sub #(.d(1)) inst(
|
||||
.in(array[0]),
|
||||
.out(out)
|
||||
);
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
hierarchy -top top -libdir .
|
|
@ -0,0 +1,3 @@
|
|||
module sub #(parameter d=1) (input in, output out);
|
||||
assign out = in;
|
||||
endmodule
|
Loading…
Reference in New Issue