diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-08-06 15:18:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 15:18:18 +0200 |
commit | a4b59de5d48a89ba5e1b46eb44877a91ceb6fa44 (patch) | |
tree | e94e14733c13e234d5c5055082d732be26fd6d9b /backends/smv | |
parent | 44a9dcbbbf47f1a6f524c6328ff775f29573a935 (diff) | |
parent | 023086bd46bc828621ebb171b159efe1398aaecf (diff) | |
download | yosys-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/smv')
-rw-r--r-- | backends/smv/smv.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/smv/smv.cc b/backends/smv/smv.cc index d75456c1b..e9586fae0 100644 --- a/backends/smv/smv.cc +++ b/backends/smv/smv.cc @@ -537,6 +537,13 @@ struct SmvWorker continue; } + if (cell->type == "$_NMUX_") + { + definitions.push_back(stringf("%s := !(bool(%s) ? %s : %s);", lvalue(cell->getPort("\\Y")), + rvalue(cell->getPort("\\S")), rvalue(cell->getPort("\\B")), rvalue(cell->getPort("\\A")))); + continue; + } + if (cell->type == "$_AOI3_") { definitions.push_back(stringf("%s := !((%s & %s) | %s);", lvalue(cell->getPort("\\Y")), |