Skip to content

fix eda-3287 #420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions src/rs-pack-dsp-regs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,30 @@ struct RsPackDspRegsWorker
continue;
}
}
if (ignore_dsp){
continue;
RTLIL::Const DSP_RST_POL;
if (!gen)
{
DSP_RST_POL = it_dsp->getParam(RTLIL::escape_id("DSP_RST_POL"));
log("DSP_Reset value = %d\n", DSP_RST_POL.as_int());
if ((ignore_dsp) && !(DSP_RST_POL.as_int()))
continue;
// if DSP data ports is driven from DFFs add it in vector
if (port_a_from_dff && port_b_from_dff && port_load_acc_from_dff && (!ignore_dsp || DSP_RST_POL.as_int() != 0))
DSP_driven_only_by_DFF.push_back(it_dsp);
}
else
{
if (ignore_dsp)
continue;
// if DSP data ports is driven from DFFs add it in vector
if (port_a_from_dff && port_b_from_dff && port_load_acc_from_dff && !ignore_dsp)
DSP_driven_only_by_DFF.push_back(it_dsp);
}

// if DSP data ports is driven from DFFs add it in vector
if (port_a_from_dff && port_b_from_dff && port_load_acc_from_dff && !ignore_dsp) {
DSP_driven_only_by_DFF.push_back(it_dsp);
}
if (1) {

if (1)
{
DSP_drives_DFF.push_back(it_dsp);
}
}
Expand Down
Loading