synth_xilinx: rename dff_mode -> dff

This commit is contained in:
Eddie Hung 2020-04-13 16:21:08 -07:00
parent 90cd49995b
commit c10757a8ea
1 changed files with 10 additions and 8 deletions

View File

@ -143,7 +143,7 @@ struct SynthXilinxPass : public ScriptPass
std::string top_opt, edif_file, blif_file, family; std::string top_opt, edif_file, blif_file, family;
bool flatten, retime, vpr, ise, noiopad, noclkbuf, nobram, nolutram, nosrl, nocarry, nowidelut, nodsp, uram; bool flatten, retime, vpr, ise, noiopad, noclkbuf, nobram, nolutram, nosrl, nocarry, nowidelut, nodsp, uram;
bool abc9, dff_mode; bool abc9, dff;
bool flatten_before_abc; bool flatten_before_abc;
int widemux; int widemux;
int lut_size; int lut_size;
@ -170,7 +170,7 @@ struct SynthXilinxPass : public ScriptPass
nodsp = false; nodsp = false;
uram = false; uram = false;
abc9 = false; abc9 = false;
dff_mode = false; dff = false;
flatten_before_abc = false; flatten_before_abc = false;
widemux = 0; widemux = 0;
lut_size = 6; lut_size = 6;
@ -217,7 +217,7 @@ struct SynthXilinxPass : public ScriptPass
continue; continue;
} }
if (args[argidx] == "-retime") { if (args[argidx] == "-retime") {
dff_mode = true; dff = true;
retime = true; retime = true;
continue; continue;
} }
@ -281,7 +281,7 @@ struct SynthXilinxPass : public ScriptPass
continue; continue;
} }
if (args[argidx] == "-dff") { if (args[argidx] == "-dff") {
dff_mode = true; dff = true;
continue; continue;
} }
break; break;
@ -595,9 +595,11 @@ struct SynthXilinxPass : public ScriptPass
run("clean"); run("clean");
} }
if (check_label("map_ffs")) { if (check_label("map_ffs", "('-abc9' only)")) {
if (abc9 || help_mode) { if (abc9 || help_mode) {
run("techmap -map " + ff_map_file, "('-abc9' only)"); if (dff || help_mode)
run("zinit -all", "('-dff' only)");
run("techmap -map " + ff_map_file);
} }
} }
@ -625,7 +627,7 @@ struct SynthXilinxPass : public ScriptPass
} }
if (nowidelut) if (nowidelut)
abc9_opts += stringf(" -maxlut %d", lut_size); abc9_opts += stringf(" -maxlut %d", lut_size);
if (dff_mode) if (dff)
abc9_opts += " -dff"; abc9_opts += " -dff";
run("abc9" + abc9_opts); run("abc9" + abc9_opts);
run("techmap -map +/xilinx/abc9_unmap.v"); run("techmap -map +/xilinx/abc9_unmap.v");
@ -645,7 +647,7 @@ struct SynthXilinxPass : public ScriptPass
else else
abc_opts += " -luts 2:2,3,6:5,10,20,40"; abc_opts += " -luts 2:2,3,6:5,10,20,40";
} }
if (dff_mode) if (dff)
abc_opts += " -dff"; abc_opts += " -dff";
if (retime) if (retime)
abc_opts += " -D 1"; abc_opts += " -D 1";