aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/liberty
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-02-15 19:36:09 +0100
committerClifford Wolf <clifford@clifford.at>2014-02-15 19:36:09 +0100
commit96b1ebc8dc337b5412ebce91a7cecb84264b474a (patch)
tree036128fb73f4dc116a782ad801d6dbf8f9bb5640 /frontends/liberty
parentcdf0f10760d08b8349f392f1cbe41a6ca2b1f49e (diff)
downloadyosys-96b1ebc8dc337b5412ebce91a7cecb84264b474a.tar.gz
yosys-96b1ebc8dc337b5412ebce91a7cecb84264b474a.tar.bz2
yosys-96b1ebc8dc337b5412ebce91a7cecb84264b474a.zip
Bugfix in expression parser of read_liberty
Diffstat (limited to 'frontends/liberty')
-rw-r--r--frontends/liberty/liberty.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/frontends/liberty/liberty.cc b/frontends/liberty/liberty.cc
index 220f32f5e..ca899cb95 100644
--- a/frontends/liberty/liberty.cc
+++ b/frontends/liberty/liberty.cc
@@ -143,8 +143,7 @@ static bool parse_func_reduce(RTLIL::Module *module, std::vector<token_t> &stack
}
if (0 <= top-1 && stack[top-1].type == 2 && stack[top].type == 2) {
- token_t t = token_t(2, create_and_cell(module, stack[top-2].sig, stack[top].sig));
- stack.pop_back();
+ token_t t = token_t(2, create_and_cell(module, stack[top-1].sig, stack[top].sig));
stack.pop_back();
stack.pop_back();
stack.push_back(t);