diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-10-12 01:18:39 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-10-12 01:18:39 +0200 |
commit | 8ebba8a35f0a5dbf3a044ab84575edfc46c99d77 (patch) | |
tree | 180fce8de63b6908d00ccefb59a6f9a3a930b5a4 /frontends/blif | |
parent | 4a981a3bd81836cd15059db56f01b60b11068742 (diff) | |
download | yosys-8ebba8a35f0a5dbf3a044ab84575edfc46c99d77.tar.gz yosys-8ebba8a35f0a5dbf3a044ab84575edfc46c99d77.tar.bz2 yosys-8ebba8a35f0a5dbf3a044ab84575edfc46c99d77.zip |
Added $ff and $_FF_ cell types
Diffstat (limited to 'frontends/blif')
-rw-r--r-- | frontends/blif/blifparse.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc index 3717a1e5e..f154f7c04 100644 --- a/frontends/blif/blifparse.cc +++ b/frontends/blif/blifparse.cc @@ -256,9 +256,13 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo 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); - cell->setPort("\\D", blif_wire(d)); - cell->setPort("\\Q", blif_wire(q)); + if (dff_name.empty()) { + cell = module->addFf(NEW_ID, blif_wire(d), blif_wire(q)); + } else { + cell = module->addCell(NEW_ID, dff_name); + cell->setPort("\\D", blif_wire(d)); + cell->setPort("\\Q", blif_wire(q)); + } } obj_attributes = &cell->attributes; @@ -477,7 +481,7 @@ struct BlifFrontend : public Frontend { } extra_args(f, filename, args, argidx); - parse_blif(design, *f, "\\DFF", true, sop_mode); + parse_blif(design, *f, "", true, sop_mode); } } BlifFrontend; |