From: Eddie Hung Date: Thu, 16 Apr 2020 19:23:34 +0000 (-0700) Subject: select: do not select inside blackboxes X-Git-Tag: working-ls180~595^2~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47c8ee7fe4c4935a11ed81b3d94069664e026dca;p=yosys.git select: do not select inside blackboxes --- 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)))