minor update

This commit is contained in:
Blaise Tine
2021-02-27 02:31:05 -08:00
parent 20d704b4d3
commit ebee332e9d

View File

@@ -93,7 +93,8 @@ module VX_fifo_queue #(
end end
if (SIZE > 2) begin if (SIZE > 2) begin
used_r <= used_r + ADDRW'($signed(2'(push) - 2'(pop))); used_r <= used_r + ADDRW'($signed(2'(push) - 2'(pop)));
end else begin // (SIZE == 2); end else begin
// (SIZE == 2);
`IGNORE_WARNINGS_BEGIN `IGNORE_WARNINGS_BEGIN
used_r <= used_r ^ (push ^ pop); used_r <= used_r ^ (push ^ pop);
`IGNORE_WARNINGS_END `IGNORE_WARNINGS_END
@@ -105,7 +106,7 @@ module VX_fifo_queue #(
if (0 == BUFFERED) begin if (0 == BUFFERED) begin
reg [1:0][DATAW-1:0] shift_reg; reg [DATAW-1:0] shift_reg [1:0];
always @(posedge clk) begin always @(posedge clk) begin
if (push) begin if (push) begin