mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Merge pull request #4187 from povik/synth-help
synth: Run script in full in help mode
This commit is contained in:
commit
a1824ba5b6
|
@ -60,7 +60,7 @@ struct SynthPass : public ScriptPass {
|
||||||
log(" do not run abc (as if yosys was compiled without ABC support)\n");
|
log(" do not run abc (as if yosys was compiled without ABC support)\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -booth\n");
|
log(" -booth\n");
|
||||||
log(" run the booth pass to convert $mul to Booth encoded multipliers");
|
log(" run the booth pass to map $mul to Booth encoded multipliers\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -noalumacc\n");
|
log(" -noalumacc\n");
|
||||||
log(" do not run 'alumacc' pass. i.e. keep arithmetic operators in\n");
|
log(" do not run 'alumacc' pass. i.e. keep arithmetic operators in\n");
|
||||||
|
@ -230,13 +230,13 @@ struct SynthPass : public ScriptPass {
|
||||||
|
|
||||||
if (check_label("coarse")) {
|
if (check_label("coarse")) {
|
||||||
run("proc");
|
run("proc");
|
||||||
if (help_mode || flatten)
|
if (flatten || help_mode)
|
||||||
run("flatten", " (if -flatten)");
|
run("flatten", " (if -flatten)");
|
||||||
run("opt_expr");
|
run("opt_expr");
|
||||||
run("opt_clean");
|
run("opt_clean");
|
||||||
run("check");
|
run("check");
|
||||||
run("opt -nodffe -nosdff");
|
run("opt -nodffe -nosdff");
|
||||||
if (!nofsm)
|
if (!nofsm || help_mode)
|
||||||
run("fsm" + fsm_opts, " (unless -nofsm)");
|
run("fsm" + fsm_opts, " (unless -nofsm)");
|
||||||
run("opt");
|
run("opt");
|
||||||
run("wreduce");
|
run("wreduce");
|
||||||
|
@ -246,8 +246,8 @@ struct SynthPass : public ScriptPass {
|
||||||
run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)");
|
run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)");
|
||||||
else if (lut)
|
else if (lut)
|
||||||
run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut));
|
run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut));
|
||||||
if (booth)
|
if (booth || help_mode)
|
||||||
run("booth");
|
run("booth", " (if -booth)");
|
||||||
if (!noalumacc)
|
if (!noalumacc)
|
||||||
run("alumacc", " (unless -noalumacc)");
|
run("alumacc", " (unless -noalumacc)");
|
||||||
if (!noshare)
|
if (!noshare)
|
||||||
|
@ -274,7 +274,7 @@ struct SynthPass : public ScriptPass {
|
||||||
}
|
}
|
||||||
run("opt -fast");
|
run("opt -fast");
|
||||||
|
|
||||||
if (!noabc && !flowmap) {
|
if ((!noabc && !flowmap) || help_mode) {
|
||||||
#ifdef YOSYS_ENABLE_ABC
|
#ifdef YOSYS_ENABLE_ABC
|
||||||
if (help_mode) {
|
if (help_mode) {
|
||||||
run(abc + " -fast", " (unless -noabc, unless -lut)");
|
run(abc + " -fast", " (unless -noabc, unless -lut)");
|
||||||
|
|
Loading…
Reference in a new issue