From 3ea94c872afe6309c43ac7eccf877734c33f5421 Mon Sep 17 00:00:00 2001 From: "Pavel V. Shatov (Meister)" Date: Tue, 1 Oct 2019 15:11:04 +0300 Subject: Implemented the final stage of the Montgomery modular multiplication, i.e. addition of AB and M then reduction by right-shift. --- rtl/modexpng_part_recombinator.v | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'rtl/modexpng_part_recombinator.v') diff --git a/rtl/modexpng_part_recombinator.v b/rtl/modexpng_part_recombinator.v index 567ecd5..957ba8e 100644 --- a/rtl/modexpng_part_recombinator.v +++ b/rtl/modexpng_part_recombinator.v @@ -1095,6 +1095,7 @@ module modexpng_part_recombinator end // end + // endcase // 2'd2: case (rcmb_xy_dout_valid) @@ -1103,6 +1104,20 @@ module modexpng_part_recombinator // endcase // + 2'd3: case (rcmb_xy_dout_valid) + // + 2'b00: begin + // + if (recomb_msb_flag_delay_2) begin + // + rdy_adv <= ~recomb_msb_flag_delay_1; + // + end + // + end + // + endcase + // endcase // end -- cgit v1.2.3