Fixed use of selection in splitnets command
authorClifford Wolf <clifford@clifford.at>
Sun, 16 Feb 2014 16:39:50 +0000 (17:39 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 16 Feb 2014 16:39:50 +0000 (17:39 +0100)
passes/cmds/splitnets.cc

index da9ef43f9d4d77956ea0a15da9d765ca9eb63fa6..7e043bcff8602eb0d438ad08db6b4d5880b0b9f1 100644 (file)
@@ -169,7 +169,7 @@ struct SplitnetsPass : public Pass {
                        {
                                for (auto &w : module->wires) {
                                        RTLIL::Wire *wire = w.second;
-                                       if (wire->width > 1 && (wire->port_id == 0 || flag_ports))
+                                       if (wire->width > 1 && (wire->port_id == 0 || flag_ports) && design->selected(module, w.second))
                                                worker.splitmap[wire] = std::vector<RTLIL::SigBit>();
                                }