Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
356a4bf2123fc606ca19fbed9b9c535f149fdec5
/
.
/
SVIncCompil
/
Testcases
/
YosysTests
/
regression
/
issue_00283
/
top.v
blob: 30b780decf34a1eeb029f723afd78b659d97c1f9 [
file
] [
log
] [
blame
]
module
top
(
input clk
,
enable
,
output reg y
);
wire
[
1
:
0
]
foo
[
1
:
0
];
integer i
;
initial
begin
for
(
i
=
0
;
i
<=
1
;
i
=
i
+
1
)
foo
[
i
]
=
2
'b11;
end
always @(posedge clk)
if (enable)
for (i = 0; i < 2; i=i+1)
y <= foo[0][0];
endmodule