From 435b905a9e1ca2d5cc1b6e5d25689773d19dcde4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Tue, 23 Jun 2015 15:37:48 +0200 Subject: 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. --- src/rtl/montprod.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rtl/montprod.v') 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; -- cgit v1.2.3