From a98d363d9dc87f0c06b88b1cf8d75f10a4feef29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Thu, 8 Feb 2024 00:03:02 +0100 Subject: [PATCH 1/2] synth: Run script in full in help mode --- techlibs/common/synth.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index 006a3c8dd..b01c5e56c 100644 --- a/techlibs/common/synth.cc +++ b/techlibs/common/synth.cc @@ -230,13 +230,13 @@ struct SynthPass : public ScriptPass { if (check_label("coarse")) { run("proc"); - if (help_mode || flatten) + if (flatten || help_mode) run("flatten", " (if -flatten)"); run("opt_expr"); run("opt_clean"); run("check"); run("opt -nodffe -nosdff"); - if (!nofsm) + if (!nofsm || help_mode) run("fsm" + fsm_opts, " (unless -nofsm)"); run("opt"); run("wreduce"); @@ -246,8 +246,8 @@ struct SynthPass : public ScriptPass { run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)"); else if (lut) run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut)); - if (booth) - run("booth"); + if (booth || help_mode) + run("booth", " (if -booth)"); if (!noalumacc) run("alumacc", " (unless -noalumacc)"); if (!noshare) @@ -274,7 +274,7 @@ struct SynthPass : public ScriptPass { } run("opt -fast"); - if (!noabc && !flowmap) { + if ((!noabc && !flowmap) || help_mode) { #ifdef YOSYS_ENABLE_ABC if (help_mode) { run(abc + " -fast", " (unless -noabc, unless -lut)"); From 7a3316dd78f891a8fd919edf5484583df9152c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Thu, 8 Feb 2024 00:03:15 +0100 Subject: [PATCH 2/2] synth: Tweak phrasing of `-booth` help --- techlibs/common/synth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index b01c5e56c..e5013678a 100644 --- a/techlibs/common/synth.cc +++ b/techlibs/common/synth.cc @@ -60,7 +60,7 @@ struct SynthPass : public ScriptPass { log(" do not run abc (as if yosys was compiled without ABC support)\n"); log("\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(" -noalumacc\n"); log(" do not run 'alumacc' pass. i.e. keep arithmetic operators in\n");