aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-06-16 13:33:04 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-06-16 13:33:04 +0200
commit6ef87307f881b52d66d7079b37ac147f5c2e902e (patch)
treecadc9c6dd3676658d6b5dfeb155b9c9ed5624a8a
parent3e96b4a8e59679b62419b2c696defa4dc0096e36 (diff)
Collapsed done. Removes one cycle from each montprod.
-rw-r--r--src/rtl/montprod.v13
1 files 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