aboutsummaryrefslogtreecommitdiff
path: root/src/rtl/modexpa7_factor.v
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2018-12-19 15:31:50 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2018-12-19 15:31:50 +0300
commit9991ca083aef4b5940c9fe25806017f2b6fd4df2 (patch)
tree0601de764392d6a8b4a1397935066de657e84e9b /src/rtl/modexpa7_factor.v
parent2be841c2288d86f4703b860c6c14d173ca8c052d (diff)
Use primitives from core/libHEADmaster
Diffstat (limited to 'src/rtl/modexpa7_factor.v')
-rw-r--r--src/rtl/modexpa7_factor.v11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/rtl/modexpa7_factor.v b/src/rtl/modexpa7_factor.v
index 3f90e5d..cafe377 100644
--- a/src/rtl/modexpa7_factor.v
+++ b/src/rtl/modexpa7_factor.v
@@ -65,7 +65,13 @@ module modexpa7_factor #
);
- //
+ //
+ // Settings
+ //
+ `include "cryptech_primitive_switch.vh"
+
+
+ //
// FSM Declaration
//
localparam [ 7: 0] FSM_STATE_IDLE = 8'h00;
@@ -276,10 +282,9 @@ module modexpa7_factor #
/* mask borrow into the very first word */
sub_b_in_mask <= (fsm_next_state == FSM_STATE_CALC_3) ? 1'b1 : 1'b0;
- modexpa7_subtractor32 sub_inst
+ `CRYPTECH_PRIMITIVE_SUB32 sub_inst
(
.clk (clk),
- .ce (1'b1),
.a (f1_data_in),
.b (n_bram_out_dly),
.b_in (sub_b_in),