Added reset capability to stack mem
This commit is contained in:
parent
8d6f728abc
commit
a1c4ffda3d
1 changed files with 1 additions and 0 deletions
|
|
@ -392,6 +392,7 @@ module stack_ncell #(
|
|||
if (rst_stack) begin
|
||||
stack_ptr <= 0;
|
||||
stack_sol_ptr <= 0;
|
||||
mem <= '{default:2'b00};
|
||||
end else if (stack_sol_inc) begin
|
||||
stack_sol_ptr <= stack_sol_ptr + 1;
|
||||
end else if (stack_en) begin
|
||||
|
|
|
|||
Loading…
Reference in a new issue