output_bound_reg.sv 590 Bytes
Newer Older
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 36 37
module Flip(x, y);
    input x;
    output y;
    assign y = ~x;
endmodule

module Test1(o);
    output [1:0] o;
    logic x = 0;
    for (genvar i = 0; i < 1; ++i) begin
        Flip flip(x, o[i]);
    end
    initial begin
        integer i = 0;
    end
endmodule

module Test2(o);
    output o;
    logic x = 0;
    Flip flip(x, o);
    initial begin
        integer o = 0;
        x = 0;
    end
endmodule

module Test3(o);
    output o;
    logic [1:0] x;
    Flip flip(x[0], x[1]);
    assign o = x[0];
    initial x[0] = 0;
    initial begin
        integer x = 0;
    end
endmodule