mirror of https://github.com/YosysHQ/yosys.git
Add support for synth_xilinx -abc9 and ignore abc9 -dress opt
This commit is contained in:
parent
12c34136ba
commit
3fc474aa73
|
@ -1237,6 +1237,11 @@ struct Abc9Pass : public Pass {
|
||||||
map_mux16 = true;
|
map_mux16 = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (arg == "-dress") {
|
||||||
|
// TODO
|
||||||
|
abc_dress = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (arg == "-g" && argidx+1 < args.size()) {
|
if (arg == "-g" && argidx+1 < args.size()) {
|
||||||
for (auto g : split_tokens(args[++argidx], ",")) {
|
for (auto g : split_tokens(args[++argidx], ",")) {
|
||||||
vector<string> gate_list;
|
vector<string> gate_list;
|
||||||
|
|
|
@ -80,6 +80,9 @@ struct SynthXilinxPass : public Pass
|
||||||
log(" -retime\n");
|
log(" -retime\n");
|
||||||
log(" run 'abc' with -dff option\n");
|
log(" run 'abc' with -dff option\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
|
log(" -abc9\n");
|
||||||
|
log(" use abc9 instead of abc\n");
|
||||||
|
log("\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log("The following commands are executed by this synthesis command:\n");
|
log("The following commands are executed by this synthesis command:\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
|
@ -142,6 +145,7 @@ struct SynthXilinxPass : public Pass
|
||||||
std::string edif_file;
|
std::string edif_file;
|
||||||
std::string blif_file;
|
std::string blif_file;
|
||||||
std::string run_from, run_to;
|
std::string run_from, run_to;
|
||||||
|
std::string abc = "abc";
|
||||||
bool flatten = false;
|
bool flatten = false;
|
||||||
bool retime = false;
|
bool retime = false;
|
||||||
bool vpr = false;
|
bool vpr = false;
|
||||||
|
@ -191,6 +195,10 @@ struct SynthXilinxPass : public Pass
|
||||||
nodram = true;
|
nodram = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (args[argidx] == "-abc9") {
|
||||||
|
abc = "abc9";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
extra_args(args, argidx, design);
|
extra_args(args, argidx, design);
|
||||||
|
@ -267,7 +275,7 @@ struct SynthXilinxPass : public Pass
|
||||||
|
|
||||||
if (check_label(active, run_from, run_to, "map_luts"))
|
if (check_label(active, run_from, run_to, "map_luts"))
|
||||||
{
|
{
|
||||||
Pass::call(design, "abc -luts 2:2,3,6:5,10,20" + string(retime ? " -dff" : ""));
|
Pass::call(design, abc + " -luts 2:2,3,6:5,10,20" + string(retime ? " -dff" : ""));
|
||||||
Pass::call(design, "clean");
|
Pass::call(design, "clean");
|
||||||
Pass::call(design, "techmap -map +/xilinx/lut_map.v");
|
Pass::call(design, "techmap -map +/xilinx/lut_map.v");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue