3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-13 16:06:40 +00:00
yosys/tests/various/wandwor.v
2019-05-23 13:57:27 +02:00

35 lines
434 B
Verilog

module a(Q);
output wire Q;
assign Q = 0;
endmodule
module b(D);
input wire D;
endmodule
module c;
wor D;
assign D = 1;
assign D = 0;
assign D = 1;
assign D = 0;
wand E;
wire E_wire = E;
genvar i;
for (i = 0; i < 3; i = i + 1)
begin :genloop
a a_inst (
.Q(E)
);
b b_inst (
.D(E_wire)
);
end
endmodule