diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-06 19:01:08 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-06 19:01:08 +0100 |
commit | 8960bba9b58a6dc489a924b8033d63a530119a4e (patch) | |
tree | e74052a040f8f70367651b03e13ac710e5a23103 | |
parent | f2f3e2cb1971e7b471955c104d88ff470f3ba5dc (diff) | |
download | yosys-8960bba9b58a6dc489a924b8033d63a530119a4e.tar.gz yosys-8960bba9b58a6dc489a924b8033d63a530119a4e.tar.bz2 yosys-8960bba9b58a6dc489a924b8033d63a530119a4e.zip |
Fixed parsing of select #x<num> operator
-rw-r--r-- | kernel/select.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/select.cc b/kernel/select.cc index 3a3c3013f..f2857d1bf 100644 --- a/kernel/select.cc +++ b/kernel/select.cc @@ -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()) |