aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2/smt2.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-06 15:18:18 +0200
committerGitHub <noreply@github.com>2019-08-06 15:18:18 +0200
commita4b59de5d48a89ba5e1b46eb44877a91ceb6fa44 (patch)
treee94e14733c13e234d5c5055082d732be26fd6d9b /backends/smt2/smt2.cc
parent44a9dcbbbf47f1a6f524c6328ff775f29573a935 (diff)
parent023086bd46bc828621ebb171b159efe1398aaecf (diff)
downloadyosys-a4b59de5d48a89ba5e1b46eb44877a91ceb6fa44.tar.gz
yosys-a4b59de5d48a89ba5e1b46eb44877a91ceb6fa44.tar.bz2
yosys-a4b59de5d48a89ba5e1b46eb44877a91ceb6fa44.zip
Merge pull request #1251 from YosysHQ/clifford/nmux
Add $_NMUX_, add "abc -g cmos", add proper cmos cell costs
Diffstat (limited to 'backends/smt2/smt2.cc')
-rw-r--r--backends/smt2/smt2.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/smt2/smt2.cc b/backends/smt2/smt2.cc
index e318a4051..ddd680782 100644
--- a/backends/smt2/smt2.cc
+++ b/backends/smt2/smt2.cc
@@ -510,6 +510,7 @@ struct Smt2Worker
if (cell->type == "$_ANDNOT_") return export_gate(cell, "(and A (not B))");
if (cell->type == "$_ORNOT_") return export_gate(cell, "(or A (not B))");
if (cell->type == "$_MUX_") return export_gate(cell, "(ite S B A)");
+ if (cell->type == "$_NMUX_") return export_gate(cell, "(not (ite S B A))");
if (cell->type == "$_AOI3_") return export_gate(cell, "(not (or (and A B) C))");
if (cell->type == "$_OAI3_") return export_gate(cell, "(not (and (or A B) C))");
if (cell->type == "$_AOI4_") return export_gate(cell, "(not (or (and A B) (and C D)))");