select: do not select inside blackboxes
authorEddie Hung <eddie@fpgeh.com>
Thu, 16 Apr 2020 19:23:34 +0000 (12:23 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 16 Apr 2020 19:23:34 +0000 (12:23 -0700)
passes/cmds/select.cc

index b64b077e4ca191633874444610e09374d71cc32a..b4f3b921a37338bfdd37bbace474f2722aacd97e 100644 (file)
@@ -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)))