aboutsummaryrefslogtreecommitdiffstats
path: root/backends/blif/blif.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-06 14:50:00 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-06 14:50:00 -0700
commit26cb3e7afc603b5aa703434c2cdfad444a4d4db0 (patch)
treecb346623885c4bc1e98affc623084f58b0a87ce2 /backends/blif/blif.cc
parent09beeee38a5af767f70d24e86c976e43b1b27547 (diff)
parent8110fb9266e685aaea48359a5aebc4e5ac865240 (diff)
downloadyosys-26cb3e7afc603b5aa703434c2cdfad444a4d4db0.tar.gz
yosys-26cb3e7afc603b5aa703434c2cdfad444a4d4db0.tar.bz2
yosys-26cb3e7afc603b5aa703434c2cdfad444a4d4db0.zip
Merge remote-tracking branch 'origin/master' into eddie/wreduce_add
Diffstat (limited to 'backends/blif/blif.cc')
-rw-r--r--backends/blif/blif.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/blif/blif.cc b/backends/blif/blif.cc
index a1761b662..f32b0f533 100644
--- a/backends/blif/blif.cc
+++ b/backends/blif/blif.cc
@@ -327,6 +327,13 @@ struct BlifDumper
goto internal_cell;
}
+ if (!config->icells_mode && cell->type == "$_NMUX_") {
+ f << stringf(".names %s %s %s %s\n0-0 1\n-01 1\n",
+ cstr(cell->getPort("\\A")), cstr(cell->getPort("\\B")),
+ cstr(cell->getPort("\\S")), cstr(cell->getPort("\\Y")));
+ goto internal_cell;
+ }
+
if (!config->icells_mode && cell->type == "$_FF_") {
f << stringf(".latch %s %s%s\n", cstr(cell->getPort("\\D")), cstr(cell->getPort("\\Q")),
cstr_init(cell->getPort("\\Q")));