From 47c8ee7fe4c4935a11ed81b3d94069664e026dca Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 16 Apr 2020 12:23:34 -0700 Subject: [PATCH] select: do not select inside blackboxes --- passes/cmds/select.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passes/cmds/select.cc b/passes/cmds/select.cc index b64b077e4..b4f3b921a 100644 --- a/passes/cmds/select.cc +++ b/passes/cmds/select.cc @@ -809,6 +809,9 @@ static void select_stmt(RTLIL::Design *design, std::string arg, bool disable_emp continue; } + if (mod->get_blackbox_attribute()) + continue; + if (arg_memb.compare(0, 2, "w:") == 0) { for (auto wire : mod->wires()) if (match_ids(wire->name, arg_memb.substr(2)))