Skip to content

Commit

Permalink
Merge pull request #1 from Xilinx/bugfix/replay_len1
Browse files Browse the repository at this point in the history
Ensure a minimum of two buffer slots even for length-1 sequences.
  • Loading branch information
mmrahorovic authored Sep 21, 2023
2 parents 619d9db + ac5e82d commit d5ff2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finn-rtllib/mvu/replay_buffer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module replay_buffer #(
assign last_rep = RepLst;
end : blkRep

localparam int unsigned AWIDTH = $clog2(LEN);
localparam int unsigned AWIDTH = LEN < 2? 1 : $clog2(LEN);
typedef logic [AWIDTH :0] ptr_t; // pointers with additional generational MSB
typedef logic [W -1:0] data_t;

Expand Down

0 comments on commit d5ff2a2

Please sign in to comment.