Altera_Forum
Honored Contributor
11 years agoResetting an array in verilog
What's the best way to reset a 32x32 array when using the Quartus synthesis tool or any other synthesis tool for that matter. I used the following
always @ (posedge clk or posedge rst) if (rst) begin for (index_1 = 0; index_1 <= BUF_LENGTH ; index_1 = index_1 + 1) buffer_1[index_1] <= 0; end where BUF_LENGTH = 31