aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/blif/blifparse.cc
diff options
context:
space:
mode:
authorAndrew Zonenberg <azonenberg@drawersteak.com>2016-04-22 19:07:55 -0700
committerAndrew Zonenberg <azonenberg@drawersteak.com>2016-04-22 19:07:55 -0700
commitab11f2aa701f4ff7a8df98d2a4158ea1f661a205 (patch)
treed2c8e2b82b7cca57127bd9dd54d3eb40386a88f7 /frontends/blif/blifparse.cc
parentd90c1e952256dc00d070863835e061d73e4bc6b3 (diff)
parent7311be4028a9caad5a0fac1a3433220b4233ef84 (diff)
downloadyosys-ab11f2aa701f4ff7a8df98d2a4158ea1f661a205.tar.gz
yosys-ab11f2aa701f4ff7a8df98d2a4158ea1f661a205.tar.bz2
yosys-ab11f2aa701f4ff7a8df98d2a4158ea1f661a205.zip
Merge https://github.com/cliffordwolf/yosys
Diffstat (limited to 'frontends/blif/blifparse.cc')
-rw-r--r--frontends/blif/blifparse.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc
index ee0e771e9..a901e55f9 100644
--- a/frontends/blif/blifparse.cc
+++ b/frontends/blif/blifparse.cc
@@ -244,6 +244,10 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
cell = module->addDff(NEW_ID, blif_wire(clock), blif_wire(d), blif_wire(q));
else if (!strcmp(edge, "fe"))
cell = module->addDff(NEW_ID, blif_wire(clock), blif_wire(d), blif_wire(q), false);
+ else if (!strcmp(edge, "ah"))
+ cell = module->addDlatch(NEW_ID, blif_wire(clock), blif_wire(d), blif_wire(q));
+ else if (!strcmp(edge, "al"))
+ cell = module->addDlatch(NEW_ID, blif_wire(clock), blif_wire(d), blif_wire(q), false);
else {
no_latch_clock:
cell = module->addCell(NEW_ID, dff_name);
@@ -399,7 +403,7 @@ struct BlifFrontend : public Frontend {
}
virtual void execute(std::istream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design)
{
- log_header("Executing BLIF frontend.\n");
+ log_header(design, "Executing BLIF frontend.\n");
size_t argidx;
for (argidx = 1; argidx < args.size(); argidx++) {