aboutsummaryrefslogtreecommitdiffstats
path: root/tests/various/wandwor.v
blob: 824f89683d76f7fc2032137db0322050be09ecb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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