3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-22 13:41:27 +00:00

icell_liberty: simplify

This commit is contained in:
Emil J. Tywoniak 2025-11-14 13:37:19 +01:00
parent 6846168db3
commit 9a5465bc83

View file

@ -185,8 +185,7 @@ struct IcellLiberty : Pass {
pool<RTLIL::IdString> done; pool<RTLIL::IdString> done;
LibertyStubber stubber = {}; LibertyStubber stubber = {};
if (liberty_file) stubber.liberty_prefix(*liberty_file);
stubber.liberty_prefix(*liberty_file);
for (auto module : d->selected_modules()) { for (auto module : d->selected_modules()) {
for (auto cell : module->selected_cells()) { for (auto cell : module->selected_cells()) {
@ -201,9 +200,7 @@ struct IcellLiberty : Pass {
} }
} }
if (liberty_file) { stubber.liberty_suffix(*liberty_file);
stubber.liberty_suffix(*liberty_file);
}
} }
} IcellLiberty; } IcellLiberty;