[Cryptech-Commits] [core/math/modexpa7] 03/03: Minor cleanup.

git at cryptech.is git at cryptech.is
Fri Aug 11 00:09:29 UTC 2017


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

meisterpaul1 at yandex.ru pushed a commit to branch systolic_crt
in repository core/math/modexpa7.

commit 1cb1e703b7dd0d7e065e17e1d66575f08a76d4bd
Author: Pavel V. Shatov (Meister) <meisterpaul1 at yandex.ru>
AuthorDate: Fri Aug 11 03:08:46 2017 +0300

    Minor cleanup.
---
 src/rtl/modexpa7_exponentiator.v       | 2 +-
 src/rtl/modexpa7_systolic_multiplier.v | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/rtl/modexpa7_exponentiator.v b/src/rtl/modexpa7_exponentiator.v
index c50a881..532c112 100644
--- a/src/rtl/modexpa7_exponentiator.v
+++ b/src/rtl/modexpa7_exponentiator.v
@@ -755,7 +755,7 @@ module modexpa7_exponentiator #
 		.ena						(mul_ena),
 		.rdy						(mul_rdy_pp),
 
-		.reduce_only			(1'b0),
+		.reduce_only			(mul_crt),
 
 		.a_bram_addr			(p1_addr_rd),
 		.b_bram_addr			(p2_addr_rd),
diff --git a/src/rtl/modexpa7_systolic_multiplier.v b/src/rtl/modexpa7_systolic_multiplier.v
index 444693d..40ccac8 100644
--- a/src/rtl/modexpa7_systolic_multiplier.v
+++ b/src/rtl/modexpa7_systolic_multiplier.v
@@ -117,7 +117,7 @@ module modexpa7_systolic_multiplier #
 		 */
 	reg	[ 7: 0]	fsm_state = FSM_STATE_IDLE;
 	reg	[ 7: 0]	fsm_next_state;
-	reg	[ 7: 0]	fsm_prev_state;
+	//reg	[ 7: 0]	fsm_prev_state;
 
 
 		/*
@@ -790,9 +790,9 @@ module modexpa7_systolic_multiplier #
 		if (rst_n == 1'b0)	fsm_state <= FSM_STATE_IDLE;
 		else						fsm_state <= fsm_next_state;
 
-	always @(posedge clk)
+	//always @(posedge clk)
 		//
-		fsm_prev_state <= fsm_state;
+		//fsm_prev_state <= fsm_state;
 	
 	
 		/*



More information about the Commits mailing list