minor update

This commit is contained in:
Blaise Tine
2020-06-03 06:40:25 -04:00
parent 626a4f6fc1
commit 9eb0389717
5 changed files with 7 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ module VX_generic_queue #(
if (!reading) begin
empty_r <= 0;
if (size_r == SIZE-1) begin
if (size_r == ($bits(size_r)'(SIZE-1))) begin
full_r <= 1;
end
size_r <= size_r + 1;