[Cryptech-Commits] [core/math/modexp] 02/03: Added another state for setting s_mem_read_addr to allow shortcutting one cycle in each loop.
git at cryptech.is
git at cryptech.is
Thu Jun 25 14:34:17 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 97976d1f01665b9d5b5469ad4b43d275824a41d9
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Thu Jun 25 09:42:31 2015 +0200
Added another state for setting s_mem_read_addr to allow shortcutting one cycle in each loop.
---
src/rtl/montprod.v | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/rtl/montprod.v b/src/rtl/montprod.v
index 6959833..ee87b97 100644
--- a/src/rtl/montprod.v
+++ b/src/rtl/montprod.v
@@ -319,6 +319,11 @@ module montprod #(parameter OPW = 32, parameter ADW = 8)
s_mem_read_addr = length_m1;
end
+ CTRL_LOOP_BQ:
+ begin
+ s_mem_read_addr = length_m1;
+ end
+
CTRL_CALC_ADD:
begin
//s = (s + q*M + b*A) >>> 1;, if(b==1) S+= A. Takes (1..length) cycles.
More information about the Commits
mailing list