aboutsummaryrefslogtreecommitdiff
path: root/src/rtl/montprod.v
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-06-23 15:37:48 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-06-23 15:37:48 +0200
commit435b905a9e1ca2d5cc1b6e5d25689773d19dcde4 (patch)
tree9a683b34d448f405171da41a2895819110363ad6 /src/rtl/montprod.v
parent0fa3d4900e4eb9cbf69ba927eb5823ed560fe975 (diff)
Updated all modules below modexp_core has been updated to have generic operand size. Updated module integrations in modexp_core to set the operand width and address width.
Diffstat (limited to 'src/rtl/montprod.v')
-rw-r--r--src/rtl/montprod.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtl/montprod.v b/src/rtl/montprod.v
index c50751b..fa7c438 100644
--- a/src/rtl/montprod.v
+++ b/src/rtl/montprod.v
@@ -126,9 +126,9 @@ module montprod #(parameter OPW = 32, parameter ADW = 8)
reg [(ADW - 1) : 0] b_word_index; //loop counter as a word index
- reg [04 : 0] b_bit_index_reg;
- reg [04 : 0] b_bit_index_new;
- reg b_bit_index_we;
+ reg [(13 - ADW - 1) : 0] b_bit_index_reg;
+ reg [(13 - ADW - 1) : 0] b_bit_index_new;
+ reg b_bit_index_we;
reg [(ADW - 1) : 0] word_index_reg;
reg [(ADW - 1) : 0] word_index_new;