Recognize stand-alone obj pattern even when it contains a slash

This commit is contained in:
Clifford Wolf 2018-02-13 14:55:24 +01:00
parent c9672e2e2e
commit 717abc93a8
1 changed files with 3 additions and 0 deletions

View 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) {