@@ -48,7 +48,6 @@ proc test_dsp_cfg_ports {top expected_cell_suffix cells2match} {
4848 design -load postopt
4949 yosys cd ${top}
5050 select -assert-count ${cells2match} t:QL_DSP2${expected_cell_suffix}
51- select -assert-count 0 t:QL_DSP2
5251 select -assert-count 0 t:dsp_t1_10x9x32_cfg_ports
5352 select -assert-count 0 t:dsp_t1_20x18x64_cfg_ports
5453
@@ -71,7 +70,6 @@ proc test_dsp_cfg_params {top expected_cell_suffix cells2match} {
7170 design -load postopt
7271 yosys cd ${TOP}
7372 select -assert-count ${cells2match} t:QL_DSP3${expected_cell_suffix}
74- select -assert-count 0 t:QL_DSP3
7573 select -assert-count 0 t:dsp_t1_10x9x32_cfg_params
7674 select -assert-count 0 t:dsp_t1_20x18x64_cfg_params
7775
@@ -87,18 +85,15 @@ proc test_dsp_cfg_params {top expected_cell_suffix cells2match} {
8785# of the inference, eg. _MULT, _MACC_REGIN, MADD_REGIN_REGOUT
8886proc test_dsp_cfg_conflict {top expected_cell_suffix} {
8987 set TOP ${top}
90- set USE_DSP_CFG_PARAMS 1
88+ set USE_DSP_CFG_PARAMS 0
9189 design -load read
9290 hierarchy -top $TOP
9391 check_equiv ${TOP} ${USE_DSP_CFG_PARAMS}
9492 design -load postopt
9593 yosys cd ${TOP}
96- select -assert-count 1 t:QL_DSP2${expected_cell_suffix}
97- select -assert-count 1 t:QL_DSP3${expected_cell_suffix}
98- select -assert-count 0 t:QL_DSP2
94+ select -assert-count 2 t:QL_DSP2${expected_cell_suffix}
9995 select -assert-count 0 t:dsp_t1_10x9x32_cfg_ports
10096 select -assert-count 0 t:dsp_t1_20x18x64_cfg_ports
101- select -assert-count 0 t:QL_DSP3
10297 select -assert-count 0 t:dsp_t1_10x9x32_cfg_params
10398 select -assert-count 0 t:dsp_t1_20x18x64_cfg_params
10499
@@ -111,12 +106,12 @@ yosys -import ;# ingest plugin commands
111106read_verilog dsp_simd.v
112107design -save read
113108
114- test_dsp_cfg_ports " simd_mult_explicit_ports" " _MULT_REGIN " 1
115- test_dsp_cfg_params " simd_mult_explicit_params" " _MULT_REGIN " 1
116- test_dsp_cfg_ports " simd_mult_inferred" " _MULT" 1
117- test_dsp_cfg_params " simd_mult_inferred" " _MULT" 1
118- test_dsp_cfg_ports " simd_mult_odd_ports" " _MULT_REGIN " 2
119- test_dsp_cfg_params " simd_mult_odd_params" " _MULT_REGIN " 2
120- test_dsp_cfg_ports " simd_mult_conflict_ports" " _MULT_REGIN " 2
121- test_dsp_cfg_conflict " simd_mult_conflict_config" " _MULT_REGIN "
109+ test_dsp_cfg_ports " simd_mult_explicit_ports" " " 1
110+ test_dsp_cfg_params " simd_mult_explicit_params" " " 1
111+ test_dsp_cfg_ports " simd_mult_inferred" " _MULT" 1
112+ test_dsp_cfg_params " simd_mult_inferred" " _MULT" 1
113+ test_dsp_cfg_ports " simd_mult_odd_ports" " " 2
114+ test_dsp_cfg_params " simd_mult_odd_params" " " 2
115+ test_dsp_cfg_ports " simd_mult_conflict_ports" " " 2
116+ test_dsp_cfg_conflict " simd_mult_conflict_config" " "
122117
0 commit comments