aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/anlogic/anlogic_eqn.cc
diff options
context:
space:
mode:
authorJim Lawson <ucbjrl@berkeley.edu>2019-03-01 10:31:26 -0800
committerJim Lawson <ucbjrl@berkeley.edu>2019-03-01 10:31:26 -0800
commit4cce7f6967313772207448569635e6e5c6bc44ce (patch)
tree8132003faa377602a74f5ac16f9899f9b17eb8c3 /techlibs/anlogic/anlogic_eqn.cc
parent81abb2517c3d6e8fd2b31ff6d9d019d956a6bc14 (diff)
parent60e3c38054f10251021fa2f504ad2424da33aa1d (diff)
downloadyosys-4cce7f6967313772207448569635e6e5c6bc44ce.tar.gz
yosys-4cce7f6967313772207448569635e6e5c6bc44ce.tar.bz2
yosys-4cce7f6967313772207448569635e6e5c6bc44ce.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'techlibs/anlogic/anlogic_eqn.cc')
-rw-r--r--techlibs/anlogic/anlogic_eqn.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/techlibs/anlogic/anlogic_eqn.cc b/techlibs/anlogic/anlogic_eqn.cc
index c025c65c4..741bf04cc 100644
--- a/techlibs/anlogic/anlogic_eqn.cc
+++ b/techlibs/anlogic/anlogic_eqn.cc
@@ -52,13 +52,13 @@ struct AnlogicEqnPass : public Pass {
eqn += names[j];
else
eqn += std::string("~") + names[j];
-
+
if (j!=(inputs-1)) eqn += "*";
}
eqn += ")+";
}
}
- if (eqn.empty()) return Const("0");
+ if (eqn.empty()) return Const("0");
eqn = eqn.substr(0, eqn.length()-1);
return Const(eqn);
}