Readded IPDOM stack + SPLIT/Join tested

This commit is contained in:
felsabbagh3
2019-10-21 21:24:49 -04:00
parent 0672389edc
commit b6375e76de
15 changed files with 2204 additions and 2165 deletions

View File

@@ -22,13 +22,12 @@ module VX_generic_stack
if (reset) begin
ptr <= 0;
for (i = 0; i < (1 << DEPTH); i=i+1) stack[i] <= 0;
end else if (push)
ptr <= ptr + 2;
else if (pop) begin
ptr <= ptr - 1;
end else if (push) begin
stack[ptr] <= q1;
stack[ptr+1] <= q2;
ptr <= ptr + 2;
end else if (pop) begin
ptr <= ptr - 1;
end
end