mirror of https://github.com/YosysHQ/yosys.git
Recognize stand-alone obj pattern even when it contains a slash
This commit is contained in:
parent
c9672e2e2e
commit
717abc93a8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue