[Cryptech-Commits] [core/math/modexp] 01/01: Fixed incorrect compile time expression for sizing the memory.

git at cryptech.is git at cryptech.is
Tue Jun 23 15:05:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch perfopt
in repository core/math/modexp.

commit 708b71fdd50f7dd3c6851b5c47a559968767c0db
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Tue Jun 23 17:05:53 2015 +0200

    Fixed incorrect compile time expression for sizing the memory.
---
 src/rtl/blockmem1r1w.v | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rtl/blockmem1r1w.v b/src/rtl/blockmem1r1w.v
index 6a28cc2..6856e0a 100644
--- a/src/rtl/blockmem1r1w.v
+++ b/src/rtl/blockmem1r1w.v
@@ -54,7 +54,7 @@ module blockmem1r1w #(parameter OPW = 32, parameter ADW = 8)
                     input wire  [(OPW - 1) : 0] write_data
                    );
 
-  reg [(OPW - 1) : 0] mem [0 : (ADW ** 2 - 1)];
+  reg [(OPW - 1) : 0] mem [0 : ((2**ADW) - 1)];
   reg [(OPW - 1) : 0] tmp_read_data;
 
   assign read_data = tmp_read_data;



More information about the Commits mailing list