Got queue_ll to work by modifying when to update bypass

This commit is contained in:
felsabbagh3
2020-03-06 22:50:20 -08:00
parent abfd592fd2
commit 2c616d8201
5 changed files with 37 additions and 28 deletions

View File

@@ -92,8 +92,10 @@ module VX_generic_queue_ll
end
end
bypass_r <= writing && (empty_r || (1 == size_r && reading));
curr_r <= in_data;
if (!(!reading && bypass_r)) begin
bypass_r <= writing && (empty_r || (1 == size_r && reading));
curr_r <= in_data;
end
head_r <= data[reading ? rd_next_ptr_r : rd_ptr_r];
end
end