code refactoring for Vivado, sv2v, and yosys compatibility

This commit is contained in:
Blaise Tine
2021-09-27 08:55:10 -04:00
parent 9b04f3d9d6
commit 9f34b2944c
97 changed files with 1435 additions and 666 deletions

View File

@@ -35,8 +35,8 @@ module VX_fifo_queue #(
head_r <= 0;
size_r <= 0;
end else begin
assert(!push || !full);
assert(!pop || !empty);
`ASSERT(!push || !full, ("runtime error"));
`ASSERT(!pop || !empty, ("runtime error"));
if (push) begin
if (!pop) begin
size_r <= 1;
@@ -71,8 +71,8 @@ module VX_fifo_queue #(
alm_full_r <= 0;
used_r <= 0;
end else begin
assert(!push || !full);
assert(!pop || !empty);
`ASSERT(!push || !full, ("runtime error"));
`ASSERT(!pop || !empty, ("runtime error"));
if (push) begin
if (!pop) begin
empty_r <= 0;