aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rtl/modexp.v4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rtl/modexp.v b/src/rtl/modexp.v
index 8e8d9b1..88060ea 100644
--- a/src/rtl/modexp.v
+++ b/src/rtl/modexp.v
@@ -729,10 +729,12 @@ module modexp(
//----------------------------------------------------------------
always @*
begin : one_process
- one_new = 32'h00000000;
+ one_new = 32'h00000000;
b_one_new = 32'h00000000;
+
if (montprod_opa_addr == length_m1_reg)
one_new = 32'h00000001;
+
if (montprod_opb_addr == length_m1_reg)
b_one_new = 32'h00000001;
end