mirror of https://github.com/YosysHQ/yosys.git
Now */ is optional in */<mode>:<arg> selections
This commit is contained in:
parent
456ae31a8a
commit
5a0f561d9c
|
@ -529,7 +529,10 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
|
||||||
} else {
|
} else {
|
||||||
size_t pos = arg.find('/');
|
size_t pos = arg.find('/');
|
||||||
if (pos == std::string::npos) {
|
if (pos == std::string::npos) {
|
||||||
arg_mod = arg;
|
if (arg.find(':') == std::string::npos)
|
||||||
|
arg_mod = arg;
|
||||||
|
else
|
||||||
|
arg_mod = "*", arg_memb = arg;
|
||||||
} else {
|
} else {
|
||||||
arg_mod = arg.substr(0, pos);
|
arg_mod = arg.substr(0, pos);
|
||||||
arg_memb = arg.substr(pos+1);
|
arg_memb = arg.substr(pos+1);
|
||||||
|
|
Loading…
Reference in New Issue