From 717abc93a8f6be8ddf36df735a4ce0a1821e5e0e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 13 Feb 2018 14:55:24 +0100 Subject: [PATCH] Recognize stand-alone obj pattern even when it contains a slash --- passes/cmds/select.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passes/cmds/select.cc b/passes/cmds/select.cc index ae301040a..a0720797f 100644 --- a/passes/cmds/select.cc +++ b/passes/cmds/select.cc @@ -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) { -- 2.30.2