From: Clifford Wolf Date: Sat, 18 Jun 2016 10:33:13 +0000 (+0200) Subject: Added "read_blif -sop" X-Git-Tag: yosys-0.7~194 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e28290b0f4f6006897b46fd3ab8817a1c82b0b1;p=yosys.git Added "read_blif -sop" --- diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc index 3b4b6d86f..1f6d0ee37 100644 --- a/frontends/blif/blifparse.cc +++ b/frontends/blif/blifparse.cc @@ -456,23 +456,28 @@ struct BlifFrontend : public Frontend { log("\n"); log("Load modules from a BLIF file into the current design.\n"); log("\n"); + log(" -sop\n"); + log(" Create $sop cells instead of $lut cells\n"); + log("\n"); } virtual void execute(std::istream *&f, std::string filename, std::vector args, RTLIL::Design *design) { + bool sop_mode = false; + log_header(design, "Executing BLIF frontend.\n"); size_t argidx; for (argidx = 1; argidx < args.size(); argidx++) { std::string arg = args[argidx]; - // if (arg == "-lib") { - // flag_lib = true; - // continue; - // } + if (arg == "-sop") { + sop_mode = true; + continue; + } break; } extra_args(f, filename, args, argidx); - parse_blif(design, *f, "\\DFF", true); + parse_blif(design, *f, "\\DFF", true, sop_mode); } } BlifFrontend;