From eaa5a3e786e7ebc5ad25ebd08e7e42f5a5337b5c Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 22 Apr 2020 10:15:56 -0700 Subject: select: do not select black/white boxes by default, '=' prefix to do so --- passes/cmds/select.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/passes/cmds/select.cc b/passes/cmds/select.cc index 889027600..0f0fe575f 100644 --- a/passes/cmds/select.cc +++ b/passes/cmds/select.cc @@ -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(" \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 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 can be an object name, wildcard expression, or one of\n"); log("the following:\n"); log("\n"); -- cgit v1.2.3