diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-01-02 20:35:37 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-01-02 20:35:37 +0100 |
commit | 5a0f561d9c6dd35e42a3ee0f0d5162ded6276f2b (patch) | |
tree | 12fb72bf7b5357dfa081fd9c5abb6ae0b06a6e44 /passes/cmds | |
parent | 456ae31a8a63d4ffa283c7fc8d62081de22058a7 (diff) | |
download | yosys-5a0f561d9c6dd35e42a3ee0f0d5162ded6276f2b.tar.gz yosys-5a0f561d9c6dd35e42a3ee0f0d5162ded6276f2b.tar.bz2 yosys-5a0f561d9c6dd35e42a3ee0f0d5162ded6276f2b.zip |
Now */ is optional in */<mode>:<arg> selections
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/select.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/passes/cmds/select.cc b/passes/cmds/select.cc index 5712a023e..ec560772e 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); |