aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rtl/montprod.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtl/montprod.v b/src/rtl/montprod.v
index 2dc65f6..6b525f7 100644
--- a/src/rtl/montprod.v
+++ b/src/rtl/montprod.v
@@ -309,7 +309,7 @@ module montprod(
case (montprod_ctrl_reg)
CTRL_LOOP_INIT:
- loop_counter_new = {length, 5'b00000}-1;
+ loop_counter_new = {length, 5'b00000} - 1'b1;
CTRL_LOOP_ITER:
begin