generate_if_scope.sv 172 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
module top;
    parameter WIDTH = 5;
    logic [WIDTH-1:0] x, y;
    if (WIDTH > 0)
        initial
            x = WIDTH'(0);
    initial
        y = WIDTH'(0);
endmodule