From: Clifford Wolf Date: Fri, 22 Apr 2016 16:00:46 +0000 (+0200) Subject: Added support for "active high" and "active low" latches in BLIF back-end X-Git-Tag: yosys-0.7~254^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60ac1bd178eef96b5cc34091dca7552cc3cad70f;p=yosys.git Added support for "active high" and "active low" latches in BLIF back-end --- diff --git a/backends/blif/blif.cc b/backends/blif/blif.cc index f9de87d9f..27f08ea1a 100644 --- a/backends/blif/blif.cc +++ b/backends/blif/blif.cc @@ -317,6 +317,18 @@ struct BlifDumper continue; } + if (!config->icells_mode && cell->type == "$_DLATCH_N_") { + f << stringf(".latch %s %s al %s%s\n", cstr(cell->getPort("\\D")), cstr(cell->getPort("\\Q")), + cstr(cell->getPort("\\E")), cstr_init(cell->getPort("\\Q"))); + continue; + } + + if (!config->icells_mode && cell->type == "$_DLATCH_P_") { + f << stringf(".latch %s %s ah %s%s\n", cstr(cell->getPort("\\D")), cstr(cell->getPort("\\Q")), + cstr(cell->getPort("\\E")), cstr_init(cell->getPort("\\Q"))); + continue; + } + if (!config->icells_mode && cell->type == "$lut") { f << stringf(".names"); auto &inputs = cell->getPort("\\A");