From 0da71205b28d07cc832732b28e8893c46fbf6cad Mon Sep 17 00:00:00 2001 From: "Pavel V. Shatov (Meister)" Date: Tue, 4 Jul 2017 16:33:04 +0300 Subject: Fixed generic/vendor low-level primitives switch. --- src/rtl/modexpa7_factor.v | 2 +- src/rtl/modexpa7_n_coeff.v | 8 +- src/rtl/modexpa7_systolic_multiplier.v | 10 +- src/rtl/pe/artix7/dsp48e1_wrapper_ext.v | 159 +++++++++++++++++++++++ src/rtl/pe/artix7/multiplier32_artix7.v | 208 ++++++++++++++++++++++--------- src/rtl/pe/artix7/systolic_pe_artix7.v | 126 +++++++++++++++++++ src/rtl/pe/generic/systolic_pe_generic.v | 85 +++++++++++++ src/rtl/pe/modexpa7_adder32.v | 76 +++++++++++ src/rtl/pe/modexpa7_lowlevel_settings.v | 15 +++ src/rtl/pe/modexpa7_subtractor32.v | 76 +++++++++++ src/rtl/pe/modexpa7_systolic_pe.v | 75 +++++++++++ 11 files changed, 770 insertions(+), 70 deletions(-) create mode 100644 src/rtl/pe/artix7/dsp48e1_wrapper_ext.v create mode 100644 src/rtl/pe/artix7/systolic_pe_artix7.v create mode 100644 src/rtl/pe/generic/systolic_pe_generic.v create mode 100644 src/rtl/pe/modexpa7_adder32.v create mode 100644 src/rtl/pe/modexpa7_lowlevel_settings.v create mode 100644 src/rtl/pe/modexpa7_subtractor32.v create mode 100644 src/rtl/pe/modexpa7_systolic_pe.v (limited to 'src/rtl') diff --git a/src/rtl/modexpa7_factor.v b/src/rtl/modexpa7_factor.v index b3ad130..3f90e5d 100644 --- a/src/rtl/modexpa7_factor.v +++ b/src/rtl/modexpa7_factor.v @@ -276,7 +276,7 @@ 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_pe_sub sub_inst + modexpa7_subtractor32 sub_inst ( .clk (clk), .ce (1'b1), diff --git a/src/rtl/modexpa7_n_coeff.v b/src/rtl/modexpa7_n_coeff.v index d416898..c2d7c9d 100644 --- a/src/rtl/modexpa7_n_coeff.v +++ b/src/rtl/modexpa7_n_coeff.v @@ -315,10 +315,10 @@ module modexpa7_n_coeff # /* delay carry masking flag by one clock cycle (used later) */ always @(posedge clk) add1_c_in_mask_dly <= add1_c_in_mask; - modexpa7_pe_add add1_inst + modexpa7_adder32 add1_inst ( .clk (clk), // - .ce (1'b1), + .ce (1'b1), // .a (~n_bram_out), // ~N .b ({{31{1'b0}}, add1_b_lsb}), // 1 .c_in (add1_c_in), // @@ -339,7 +339,7 @@ module modexpa7_n_coeff # reg add2_c_in; // carry input wire add2_c_out; // carry output - modexpa7_pe_add add2_inst + modexpa7_adder32 add2_inst ( .clk (clk), .ce (1'b1), @@ -367,7 +367,7 @@ module modexpa7_n_coeff # wire [31: 0] pe_p; wire [31: 0] pe_c_out; - modexpa7_pe_mul pe_mul_inst + modexpa7_systolic_pe pe_mul_inst ( .clk (clk), .a (pe_a), diff --git a/src/rtl/modexpa7_systolic_multiplier.v b/src/rtl/modexpa7_systolic_multiplier.v index fa99c54..cb1c716 100644 --- a/src/rtl/modexpa7_systolic_multiplier.v +++ b/src/rtl/modexpa7_systolic_multiplier.v @@ -400,7 +400,7 @@ module modexpa7_systolic_multiplier # generate for (syst=0; syst