Skip to content

Commit 717abc9

Browse files
committed
Recognize stand-alone obj pattern even when it contains a slash
1 parent c9672e2 commit 717abc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

passes/cmds/select.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,9 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
760760
if (!design->selected_active_module.empty()) {
761761
arg_mod = design->selected_active_module;
762762
arg_memb = arg;
763+
} else
764+
if (GetSize(arg) >= 2 && arg[0] >= 'a' && arg[0] <= 'z' && arg[1] == ':') {
765+
arg_mod = "*", arg_memb = arg;
763766
} else {
764767
size_t pos = arg.find('/');
765768
if (pos == std::string::npos) {

0 commit comments

Comments
 (0)