Skip to content

Commit

Permalink
axi_ram.v: fix variable "i" in generate block.
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAntunes178 committed Oct 30, 2023
1 parent 2d854ef commit 173680a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/src/axi_ram.v
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ module axi_ram #(
assign axi_rlast_o = PIPELINE_OUTPUT ? axi_rlast_pipe_reg : axi_rlast_reg;
assign axi_rvalid_o = PIPELINE_OUTPUT ? axi_rvalid_pipe_reg : axi_rvalid_reg;

integer i, j;
localparam mem_init_file_int = FILE;

initial begin
Expand All @@ -176,6 +175,7 @@ module axi_ram #(
end

generate
genvar i;
for (i = 0; i < WORD_WIDTH; i = i + 1) begin : g_Bytes_in_word
if (READ_ON_WRITE) begin : g_always_read
always @(posedge clk_i) begin
Expand Down

0 comments on commit 173680a

Please sign in to comment.