Skip to content

Commit

Permalink
util_axis_fifo: Fix FIFO is full alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Istvan Csomortani authored and Csomi committed Mar 8, 2021
1 parent 8ce1d6b commit 0d3d099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/util_axis_fifo/util_axis_fifo_address_generator.v
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ endgenerate
//------------------------------------------------------------------------------

wire [ADDRESS_WIDTH:0] s_axis_fifo_fill = s_axis_waddr_reg - s_axis_raddr_reg;
assign s_axis_full = (s_axis_fifo_fill == { 1'b1, {ADDRESS_WIDTH{1'b0}}});
assign s_axis_full = (s_axis_fifo_fill == {ADDRESS_WIDTH{1'b1}});
assign s_axis_almost_full = s_axis_fifo_fill > {1'b0, ~ALMOST_FULL_THRESHOLD};
assign s_axis_ready = ~s_axis_full;
assign s_axis_room = ~s_axis_fifo_fill;
Expand Down

0 comments on commit 0d3d099

Please sign in to comment.