mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +00:00
enable ABC9 by default except for XO2/3/3D
This commit is contained in:
parent
03df7e352f
commit
567e803f14
1 changed files with 12 additions and 4 deletions
|
@ -113,8 +113,8 @@ struct SynthLatticePass : public ScriptPass
|
||||||
log(" -abc2\n");
|
log(" -abc2\n");
|
||||||
log(" run two passes of 'abc' for slightly improved logic density\n");
|
log(" run two passes of 'abc' for slightly improved logic density\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -abc9\n");
|
log(" -noabc9\n");
|
||||||
log(" use new ABC9 flow (EXPERIMENTAL)\n");
|
log(" disable use of new ABC9 flow\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -iopad\n");
|
log(" -iopad\n");
|
||||||
log(" insert IO buffers\n");
|
log(" insert IO buffers\n");
|
||||||
|
@ -158,7 +158,7 @@ struct SynthLatticePass : public ScriptPass
|
||||||
dff = false;
|
dff = false;
|
||||||
retime = false;
|
retime = false;
|
||||||
abc2 = false;
|
abc2 = false;
|
||||||
abc9 = false;
|
abc9 = true;
|
||||||
iopad = false;
|
iopad = false;
|
||||||
nodsp = false;
|
nodsp = false;
|
||||||
no_rw_check = false;
|
no_rw_check = false;
|
||||||
|
@ -173,6 +173,7 @@ struct SynthLatticePass : public ScriptPass
|
||||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||||
{
|
{
|
||||||
string run_from, run_to;
|
string run_from, run_to;
|
||||||
|
bool force_abc9 = false;
|
||||||
bool force_widelut = false;
|
bool force_widelut = false;
|
||||||
clear_flags();
|
clear_flags();
|
||||||
|
|
||||||
|
@ -254,7 +255,13 @@ struct SynthLatticePass : public ScriptPass
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-abc9") {
|
if (args[argidx] == "-abc9") {
|
||||||
abc9 = true;
|
// removed, ABC9 is on by default.
|
||||||
|
force_abc9 = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (args[argidx] == "-noabc9") {
|
||||||
|
force_abc9 = true;
|
||||||
|
abc9 = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-iopad") {
|
if (args[argidx] == "-iopad") {
|
||||||
|
@ -295,6 +302,7 @@ struct SynthLatticePass : public ScriptPass
|
||||||
brams_map = "_8kc";
|
brams_map = "_8kc";
|
||||||
have_dsp = false;
|
have_dsp = false;
|
||||||
if (!force_widelut) nowidelut = true;
|
if (!force_widelut) nowidelut = true;
|
||||||
|
if (!force_abc9) abc9 = false;
|
||||||
/* } else if (family == "xo" ||
|
/* } else if (family == "xo" ||
|
||||||
family == "pm") {
|
family == "pm") {
|
||||||
} else if (family == "xp" ||
|
} else if (family == "xp" ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue