Assigning a constant value to an unpacked array

To clarify, you want to make every element in your array the contant value ‘0’


module test();
        reg [3:0] q [1:0];

        initial begin
                $display("q is %p",q);
                q = '{2{'0}};
                $display("q is %p",q);
        end
endmodule