3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-27 08:28:45 +00:00

synth_ecp5 rename -nomux to -nowidelut, but preserve former

This commit is contained in:
Eddie Hung 2019-06-26 09:33:48 -07:00
parent 7389b043c0
commit 4ce329aefd

View file

@ -76,7 +76,7 @@ struct SynthEcp5Pass : public ScriptPass
log(" -nodram\n"); log(" -nodram\n");
log(" do not use distributed RAM cells in output netlist\n"); log(" do not use distributed RAM cells in output netlist\n");
log("\n"); log("\n");
log(" -nomux\n"); log(" -nowidelut\n");
log(" do not use PFU muxes to implement LUTs larger than LUT4s\n"); log(" do not use PFU muxes to implement LUTs larger than LUT4s\n");
log("\n"); log("\n");
log(" -abc2\n"); log(" -abc2\n");
@ -93,7 +93,7 @@ struct SynthEcp5Pass : public ScriptPass
} }
string top_opt, blif_file, edif_file, json_file; string top_opt, blif_file, edif_file, json_file;
bool noccu2, nodffe, nobram, nodram, nomux, flatten, retime, abc2, vpr; bool noccu2, nodffe, nobram, nodram, nowidelut, flatten, retime, abc2, vpr;
void clear_flags() YS_OVERRIDE void clear_flags() YS_OVERRIDE
{ {
@ -105,7 +105,7 @@ struct SynthEcp5Pass : public ScriptPass
nodffe = false; nodffe = false;
nobram = false; nobram = false;
nodram = false; nodram = false;
nomux = false; nowidelut = false;
flatten = true; flatten = true;
retime = false; retime = false;
abc2 = false; abc2 = false;
@ -172,8 +172,8 @@ struct SynthEcp5Pass : public ScriptPass
nodram = true; nodram = true;
continue; continue;
} }
if (args[argidx] == "-nomux") { if (args[argidx] == "-nowidelut" || args[argidx] == "-nomux") {
nomux = true; nowidelut = true;
continue; continue;
} }
if (args[argidx] == "-abc2") { if (args[argidx] == "-abc2") {
@ -264,7 +264,7 @@ struct SynthEcp5Pass : public ScriptPass
run("abc", " (only if -abc2)"); run("abc", " (only if -abc2)");
} }
run("techmap -map +/ecp5/latches_map.v"); run("techmap -map +/ecp5/latches_map.v");
if (nomux) if (nowidelut)
run("abc -lut 4 -dress"); run("abc -lut 4 -dress");
else else
run("abc -lut 4:7 -dress"); run("abc -lut 4:7 -dress");