Skip to content
Snippets Groups Projects
Commit 6162024b authored by Alban Gruin's avatar Alban Gruin
Browse files

Revert "sras: remove redundant conditions"

This reverts commit 594e3bd6.
parent c8b4b7b6
Branches
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ module sras #(
if (ovf_counter_q[ptr_spec_q] != '0) begin
ovf_counter_d[ptr_spec_d] = ovf_counter_q[ptr_spec_q] - 1'b1;
end
end else if (begin_spec_i) begin
end else if (!bad_spec_i && begin_spec_i) begin
ovf_counter_d[ptr_spec_d] = ovf_counter_q[ptr_spec_q];
end
end
......@@ -94,7 +94,7 @@ module sras #(
if (ovf_counter_q[ptr_spec_q] == '0) begin
tos_d[ptr_spec_d] = prev_minus_one;
end
end else if (begin_spec_i) begin
end else if (!bad_spec_i && begin_spec_i) begin
tos_d[ptr_spec_d] = tos_q[ptr_spec_q];
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment