summaryrefslogtreecommitdiff
path: root/passes/cmds/splitnets.cc
diff options
context:
space:
mode:
Diffstat (limited to 'passes/cmds/splitnets.cc')
-rw-r--r--passes/cmds/splitnets.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/splitnets.cc b/passes/cmds/splitnets.cc
index da9ef43f..7e043bcf 100644
--- a/passes/cmds/splitnets.cc
+++ b/passes/cmds/splitnets.cc
@@ -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>();
}