select: do not select black/white boxes by default, '=' prefix to do so
authorEddie Hung <eddie@fpgeh.com>
Wed, 22 Apr 2020 17:15:56 +0000 (10:15 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 22 Apr 2020 17:15:56 +0000 (10:15 -0700)
passes/cmds/select.cc

index 8890276004c7e807b31fbacb7c546d4845cc3fc9..0f0fe575fb4688a74fc94596996b61c1fce4e470 100644 (file)
@@ -761,10 +761,10 @@ static void select_stmt(RTLIL::Design *design, std::string arg, bool disable_emp
                return;
        }
 
-       bool select_blackboxes = true;
+       bool select_blackboxes = false;
        if (arg.substr(0, 1) == "=") {
                arg = arg.substr(1);
-               select_blackboxes = false;
+               select_blackboxes = true;
        }
 
        if (!design->selected_active_module.empty()) {
@@ -1113,6 +1113,9 @@ struct SelectPass : public Pass {
                log("    <obj_pattern>\n");
                log("        select the specified object(s) from the current module\n");
                log("\n");
+               log("Prefix the following patterns with '=' if the pattern should match black-/\n");
+               log("white-box modules and their contents.\n");
+               log("\n");
                log("A <mod_pattern> can be a module name, wildcard expression (*, ?, [..])\n");
                log("matching module names, or one of the following:\n");
                log("\n");
@@ -1124,9 +1127,6 @@ struct SelectPass : public Pass {
                log("        all modules with a name matching the given pattern\n");
                log("        (i.e. 'N:' is optional as it is the default matching rule)\n");
                log("\n");
-               log("Prefix the pattern with '=' if the pattern should not match blackbox\n");
-               log("modules and their content.\n");
-               log("\n");
                log("An <obj_pattern> can be an object name, wildcard expression, or one of\n");
                log("the following:\n");
                log("\n");