Readded IPDOM stack + SPLIT/Join tested
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user