Now */ is optional in */<mode>:<arg> selections

This commit is contained in:
Clifford Wolf 2014-01-02 20:35:37 +01:00
parent 456ae31a8a
commit 5a0f561d9c
1 changed files with 4 additions and 1 deletions

View File

@ -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);