I want to change all the variable names that can be changed. Please give me instructions…
- User
I want to change all the variable names that can be changed. Please give me instructions that show the before and after so that it's easy for me to make the changes.
localparam S_IDLE = 2'b00; localparam S_PROCESS = 2'b01; localparam W_ADDR = 2'b01; localparam W_DATA = 2'b10; localparam W_RESP = 2'b11;
reg AR_state, AR_state_n, R_state, R_state_n; reg [1:0] WRITE_state, WRITE_state_n; reg [6:0] R_count, R_count_n; reg [3:0] W_count, W_count_n; reg [2:0] AR_count, AR_count_n, mat_width_reg;
reg arvalid, rready, awvalid, wvalid, wlast; reg [31:0] araddr, wdata; reg [127:0] rdata;
always_ff @(posedge clk) begin if (!rst_n) begin AR_state <= S_IDLE; R_state <= S_IDLE; WRITE_state <= S_IDLE;
codeR_count <= 7'd0; W_count <= 4'd0; AR_count <= 3'd0; mat_width_reg <= 3'd0; end else begin AR_state <= AR_state_n; R_state <= R_state_n; WRITE_state <= WRITE_state_n; R_count <= R_count_n; W_count <= W_count_n; AR_count <= AR_count_n; mat_width_reg <= mat_width_i[4:2]; endend
always_comb begin AR_state_n = AR_state; R_state_n = R_state; WRITE_state_n = WRITE_state;
code - Assistant