mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-14 21:08:47 +00:00
ql_dsp_macc: whitespace. NFC
This commit is contained in:
parent
688efa01b0
commit
e6d7c033e5
|
@ -98,8 +98,7 @@ static void create_ql_macc_dsp(ql_dsp_macc_pm &pm, int dsp_version)
|
||||||
log_assert(false);
|
log_assert(false);
|
||||||
}
|
}
|
||||||
if (reject) {
|
if (reject) {
|
||||||
log_debug("\trejected: too wide (%zd %zd %zd) for v%d\n",
|
log_debug("\trejected: too wide (%zd %zd %zd) for v%d\n", min_width, max_width, z_width, dsp_version);
|
||||||
min_width, max_width, z_width, dsp_version);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,7 +131,7 @@ static void create_ql_macc_dsp(ql_dsp_macc_pm &pm, int dsp_version)
|
||||||
cell->setPort(ID(b_i), sig_b);
|
cell->setPort(ID(b_i), sig_b);
|
||||||
|
|
||||||
// Connect output data port, pad if needed
|
// Connect output data port, pad if needed
|
||||||
if ((size_t) GetSize(sig_z) < tgt_z_width) {
|
if ((size_t)GetSize(sig_z) < tgt_z_width) {
|
||||||
auto *wire = pm.module->addWire(NEW_ID, tgt_z_width - GetSize(sig_z));
|
auto *wire = pm.module->addWire(NEW_ID, tgt_z_width - GetSize(sig_z));
|
||||||
sig_z.append(wire);
|
sig_z.append(wire);
|
||||||
}
|
}
|
||||||
|
@ -241,7 +240,7 @@ struct QlDspMacc : public Pass {
|
||||||
}
|
}
|
||||||
extra_args(a_Args, argidx, a_Design);
|
extra_args(a_Args, argidx, a_Design);
|
||||||
|
|
||||||
auto l = [dsp_version](ql_dsp_macc_pm& pm) { create_ql_macc_dsp(pm, dsp_version); };
|
auto l = [dsp_version](ql_dsp_macc_pm &pm) { create_ql_macc_dsp(pm, dsp_version); };
|
||||||
for (auto module : a_Design->selected_modules())
|
for (auto module : a_Design->selected_modules())
|
||||||
ql_dsp_macc_pm(module, module->selected_cells()).run_ql_dsp_macc(l);
|
ql_dsp_macc_pm(module, module->selected_cells()).run_ql_dsp_macc(l);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue