auto jt = bit2sinks.find(a_bit);
if (jt == bit2sinks.end())
- goto duplicate_lut;
+ goto clone_lut;
for (auto sink_cell : jt->second)
if (sink_cell->type != "$lut")
- goto duplicate_lut;
+ goto clone_lut;
// Push downstream LUTs past inverter
for (auto sink_cell : jt->second) {
sink_cell->setParam("\\LUT", mask);
}
-duplicate_lut:
+clone_lut:
driver_mask = driver_lut->getParam("\\LUT");
for (auto &b : driver_mask.bits) {
if (b == RTLIL::State::S0) b = RTLIL::State::S1;