aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/blif
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-06-18 12:33:13 +0200
committerClifford Wolf <clifford@clifford.at>2016-06-18 12:33:13 +0200
commit9e28290b0f4f6006897b46fd3ab8817a1c82b0b1 (patch)
treef306fed19ed06898e9183a208c3db8c42f7d5ce3 /frontends/blif
parent5ffad4e0737bfb7e86129f3c74e7ee917ef782cc (diff)
downloadyosys-9e28290b0f4f6006897b46fd3ab8817a1c82b0b1.tar.gz
yosys-9e28290b0f4f6006897b46fd3ab8817a1c82b0b1.tar.bz2
yosys-9e28290b0f4f6006897b46fd3ab8817a1c82b0b1.zip
Added "read_blif -sop"
Diffstat (limited to 'frontends/blif')
-rw-r--r--frontends/blif/blifparse.cc15
1 files changed, 10 insertions, 5 deletions
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<std::string> 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;