Skip to content

Commit

Permalink
Merge pull request #278 from AYYAZmayo/main
Browse files Browse the repository at this point in the history
Fix EDA-2528, Updated condtion for DSP19X2 merging
  • Loading branch information
alaindargelas authored Feb 23, 2024
2 parents a28ea26 + 838e676 commit 9ed6cd9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/rs-dsp-simd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,19 @@ struct RSDspSimdPass : public Pass {

std::string name = stringf("simd_%s_%s", RTLIL::unescape_id(dsp_a->name).c_str(), RTLIL::unescape_id(dsp_b->name).c_str());
std::string SimdDspType;

if (use_cfg_params)
/*EDA-2528- Checking the condition for not merging DSP with reg-out with a DSP that dont have a reg-out*/
bool conti = false;
if (use_cfg_params && technology == "genesis3"){
for (const auto &it : m_DspParams2Mode) {
if (dsp_a->getParam(RTLIL::escape_id(it)) != dsp_b->getParam(RTLIL::escape_id(it))){
conti = true;
break;
}
}
if (conti)continue;
/*--------------------------------------------EDA-2528-----------------------------------------------------*/
SimdDspType = m_SimdDspType_cfg_params;
}
else
SimdDspType = m_SimdDspType_cfg_ports;

Expand Down

0 comments on commit 9ed6cd9

Please sign in to comment.