mirror of
https://github.com/alexforencich/verilog-axi.git
synced 2025-01-14 06:42:55 +08:00
Fix out of range access due to off by one error
This commit is contained in:
parent
57dd292ae9
commit
7654d874ae
@ -494,7 +494,7 @@ always @* begin
|
||||
|
||||
if (AXIS_KEEP_ENABLE) begin
|
||||
cycle_size = AXIS_KEEP_WIDTH_INT;
|
||||
for (i = AXIS_KEEP_WIDTH_INT; i >= 0; i = i - 1) begin
|
||||
for (i = AXIS_KEEP_WIDTH_INT-1; i >= 0; i = i - 1) begin
|
||||
if (!shift_axis_tkeep[i] && (!first_cycle_reg || i >= offset_reg)) begin
|
||||
cycle_size = i;
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user