Recognize stand-alone obj pattern even when it contains a slash
authorClifford Wolf <clifford@clifford.at>
Tue, 13 Feb 2018 13:55:24 +0000 (14:55 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 13 Feb 2018 13:55:24 +0000 (14:55 +0100)
passes/cmds/select.cc

index ae301040aff2a4ae9b43acc7d3f69a5253ad36a4..a0720797f1fa39071c580add5dbe019a74c3203a 100644 (file)
@@ -760,6 +760,9 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
        if (!design->selected_active_module.empty()) {
                arg_mod = design->selected_active_module;
                arg_memb = arg;
+       } else
+       if (GetSize(arg) >= 2 && arg[0] >= 'a' && arg[0] <= 'z' && arg[1] == ':') {
+               arg_mod = "*", arg_memb = arg;
        } else {
                size_t pos = arg.find('/');
                if (pos == std::string::npos) {