From: Clifford Wolf Date: Tue, 13 Feb 2018 13:55:24 +0000 (+0100) Subject: Recognize stand-alone obj pattern even when it contains a slash X-Git-Tag: yosys-0.8~219 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=717abc93a8f6be8ddf36df735a4ce0a1821e5e0e;p=yosys.git Recognize stand-alone obj pattern even when it contains a slash --- 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) {