[Cryptech-Commits] [core/math/modexp] 02/04: Fixed order of states.
git at cryptech.is
git at cryptech.is
Wed Jun 17 19:02:37 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 c6555a11479a2f0b92b300a346552591ab3d3005
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Wed Jun 17 10:40:01 2015 +0200
Fixed order of states.
---
src/rtl/montprod.v | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/rtl/montprod.v b/src/rtl/montprod.v
index 06eca12..758fb6d 100644
--- a/src/rtl/montprod.v
+++ b/src/rtl/montprod.v
@@ -423,18 +423,18 @@ module montprod(
SMUX_0:
s_mem_new = 32'h0;
- SMUX_ADD_SA:
- begin
- s_mem_new = add_result_sa;
- add_carry_in_sa_new = add_carry_out_sa;
- end
-
SMUX_ADD_SM:
begin
s_mem_new = add_result_sm;
add_carry_in_sm_new = add_carry_out_sm;
end
+ SMUX_ADD_SA:
+ begin
+ s_mem_new = add_result_sa;
+ add_carry_in_sa_new = add_carry_out_sa;
+ end
+
SMUX_SHR:
begin
s_mem_new = shr_adiv2;
More information about the Commits
mailing list