mirror of https://github.com/YosysHQ/yosys.git
Fixed parsing of select #x<num> operator
This commit is contained in:
parent
f2f3e2cb19
commit
8960bba9b5
|
@ -358,6 +358,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
|
|||
if (endpos == std::string::npos)
|
||||
endpos = arg.size();
|
||||
levels = atoi(arg.substr(pos, endpos-pos).c_str());
|
||||
pos = endpos;
|
||||
}
|
||||
while (pos < arg.size()) {
|
||||
if (arg[pos] != ':' || pos+1 == arg.size())
|
||||
|
|
Loading…
Reference in New Issue