3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 20:18:20 +00:00

Added "read_blif -sop"

This commit is contained in:
Clifford Wolf 2016-06-18 12:33:13 +02:00
parent 5ffad4e073
commit 9e28290b0f

View file

@ -456,23 +456,28 @@ struct BlifFrontend : public Frontend {
log("\n"); log("\n");
log("Load modules from a BLIF file into the current design.\n"); log("Load modules from a BLIF file into the current design.\n");
log("\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<std::string> args, RTLIL::Design *design) virtual void execute(std::istream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design)
{ {
bool sop_mode = false;
log_header(design, "Executing BLIF frontend.\n"); log_header(design, "Executing BLIF frontend.\n");
size_t argidx; size_t argidx;
for (argidx = 1; argidx < args.size(); argidx++) { for (argidx = 1; argidx < args.size(); argidx++) {
std::string arg = args[argidx]; std::string arg = args[argidx];
// if (arg == "-lib") { if (arg == "-sop") {
// flag_lib = true; sop_mode = true;
// continue; continue;
// } }
break; break;
} }
extra_args(f, filename, args, argidx); extra_args(f, filename, args, argidx);
parse_blif(design, *f, "\\DFF", true); parse_blif(design, *f, "\\DFF", true, sop_mode);
} }
} BlifFrontend; } BlifFrontend;