Verilog语言时间:2023-03-09 06:35:54 for循环应用 1、复位寄存器组 例如有32个寄存器,需要异步复位 always@(posedge clk or negedge rst_n) begin if (rst_n == 1'b0) begin for(i = 0; i < 32; i = i + 1) gpr[i] = 32'h0; end end else begin end end