summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-01-02 20:35:37 +0100
committerClifford Wolf <clifford@clifford.at>2014-01-02 20:35:37 +0100
commit5a0f561d9c6dd35e42a3ee0f0d5162ded6276f2b (patch)
tree12fb72bf7b5357dfa081fd9c5abb6ae0b06a6e44
parent456ae31a8a63d4ffa283c7fc8d62081de22058a7 (diff)
Now */ is optional in */<mode>:<arg> selections
-rw-r--r--passes/cmds/select.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/passes/cmds/select.cc b/passes/cmds/select.cc
index 5712a023..ec560772 100644
--- a/passes/cmds/select.cc
+++ b/passes/cmds/select.cc
@@ -529,7 +529,10 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
} else {
size_t pos = arg.find('/');
if (pos == std::string::npos) {
- arg_mod = arg;
+ if (arg.find(':') == std::string::npos)
+ arg_mod = arg;
+ else
+ arg_mod = "*", arg_memb = arg;
} else {
arg_mod = arg.substr(0, pos);
arg_memb = arg.substr(pos+1);