diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2015-06-17 21:02:24 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2015-06-17 21:02:24 +0200 |
commit | 46e2c534e7197b57f40ebf3e60bf4da5a0da7d3f (patch) | |
tree | dee61a3afeb95df919fb0c2a7c3d6642179f3e80 /src/tb | |
parent | a894f3ad4fc57c24817fc11ff22168d773b15120 (diff) |
(1) Collapsed the sm and sa adder states. Thisimoproves performance for modexp with 3%. (2) Updated montprod testbench to not use the now removed states. (3) Minor code cleanup to make it easier to work with for further improvements.
Diffstat (limited to 'src/tb')
-rw-r--r-- | src/tb/tb_montprod.v | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tb/tb_montprod.v b/src/tb/tb_montprod.v index bf9333e..850f8d9 100644 --- a/src/tb/tb_montprod.v +++ b/src/tb/tb_montprod.v @@ -226,7 +226,7 @@ module tb_montprod(); if (SHOW_BQ_DEBUG) begin if (dut.montprod_ctrl_reg == dut.CTRL_L_CALC_SM) - $display("====================> B: %x Q: %x B_bit_index_reg: %x <=====================", dut.b_reg, dut.q_reg, dut.B_bit_index_reg); + $display("====================> B: %x Q: %x b_bit_index_reg: %x <=====================", dut.b_reg, dut.q_reg, dut.b_bit_index_reg); end end @@ -247,8 +247,6 @@ module tb_montprod(); $display("FSM: LOOP_ITER"); dut.CTRL_LOOP_BQ: $display("FSM: LOOP_BQ"); - dut.CTRL_L_CALC_SM: - $display("FSM: LOOP_CALC_SM"); dut.CTRL_L_CALC_SA: $display("FSM: LOOP_CALC_SA"); dut.CTRL_L_STALLPIPE_SA: |