[Cryptech-Commits] [core/math/modexp] 02/02: Consolidated address settings, removed stale s logic mux control, removed extra lsw set.
git at cryptech.is
git at cryptech.is
Mon Jun 22 13:15:15 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 c54b20ea19ebbbd8fb646950c4608d89eb2b60e7
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Mon Jun 22 15:15:04 2015 +0200
Consolidated address settings, removed stale s logic mux control, removed extra lsw set.
---
src/rtl/montprod.v | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/rtl/montprod.v b/src/rtl/montprod.v
index b03bf94..93ddacf 100644
--- a/src/rtl/montprod.v
+++ b/src/rtl/montprod.v
@@ -300,10 +300,10 @@ module montprod(
if (montprod_ctrl_reg == CTRL_LOOP_ITER)
- opa_addr_reg = length_m1;
-
- if (montprod_ctrl_reg == CTRL_LOOP_ITER)
- s_mem_addr = length_m1;
+ begin
+ opa_addr_reg = length_m1;
+ s_mem_addr = length_m1;
+ end
if (montprod_ctrl_reg == CTRL_EMIT_S)
tmp_result_we = 1'b1;
@@ -470,7 +470,7 @@ module montprod(
begin
ready_new = 1'b0;
ready_we = 1'b1;
- first_iteration_new = 1'b0;
+ first_iteration_new = 1'b1;
first_iteration_we = 1'b1;
reset_word_index_lsw = 1'b1;
montprod_ctrl_new = CTRL_INIT_S;
@@ -480,10 +480,9 @@ module montprod(
CTRL_INIT_S:
begin
- s_mux_new = SMUX_0; // write 0
-
if (word_index_reg == 8'h0)
begin
+ loop_ctr_set = 1'b1;
montprod_ctrl_new = CTRL_WAIT;
montprod_ctrl_we = 1'b1;
end
@@ -501,7 +500,6 @@ module montprod(
CTRL_LOOP_ITER:
begin
b_bit_index_we = 1'b1;
- reset_word_index_lsw = 1'b1;
montprod_ctrl_new = CTRL_LOOP_BQ;
montprod_ctrl_we = 1'b1;
end
More information about the Commits
mailing list