[Cryptech-Commits] [core/math/modexp] 03/05: Collapsed done. Removes one cycle from each montprod.
git at cryptech.is
git at cryptech.is
Tue Jun 16 13:57:55 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 6ef87307f881b52d66d7079b37ac147f5c2e902e
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Tue Jun 16 13:33:04 2015 +0200
Collapsed done. Removes one cycle from each montprod.
---
src/rtl/montprod.v | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/src/rtl/montprod.v b/src/rtl/montprod.v
index 9b112f4..7102e6e 100644
--- a/src/rtl/montprod.v
+++ b/src/rtl/montprod.v
@@ -78,7 +78,6 @@ module montprod(
localparam CTRL_L_STALLPIPE_D2 = 4'hA;
localparam CTRL_L_STALLPIPE_ES = 4'hB;
localparam CTRL_EMIT_S = 4'hC;
- localparam CTRL_DONE = 4'hD;
localparam SMUX_0 = 2'h0;
localparam SMUX_ADD_SM = 2'h1;
@@ -594,19 +593,13 @@ module montprod(
$display("EMIT_S word_index_reg: %d", word_index_reg);
if (word_index_prev_reg == 8'h0)
begin
- montprod_ctrl_new = CTRL_DONE;
+ ready_new = 1'b1;
+ ready_we = 1'b1;
+ montprod_ctrl_new = CTRL_IDLE;
montprod_ctrl_we = 1'b1;
end
end
- CTRL_DONE:
- begin
- ready_new = 1'b1;
- ready_we = 1'b1;
- montprod_ctrl_new = CTRL_IDLE;
- montprod_ctrl_we = 1'b1;
- end
-
default:
begin
end
More information about the Commits
mailing list