From 5b87720b16d957765cd26a85633722dc882c24f9 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 5 Feb 2020 14:31:51 -0800 Subject: synth: use +/cmp2lcu.v in generic 'synth' too --- techlibs/common/synth.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'techlibs/common/synth.cc') diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index e7a192c07..513702357 100644 --- a/techlibs/common/synth.cc +++ b/techlibs/common/synth.cc @@ -225,9 +225,9 @@ struct SynthPass : public ScriptPass run("peepopt"); run("opt_clean"); if (help_mode) - run("techmap -map +/cmp2lut.v", " (if -lut)"); + run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)"); else - run(stringf("techmap -map +/cmp2lut.v -D LUT_WIDTH=%d", lut)); + run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut)); if (!noalumacc) run("alumacc", " (unless -noalumacc)"); if (!noshare) -- cgit v1.2.3 From 34c9b83854a09bb90e8b880774b58d91d7ed8ae7 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 6 Feb 2020 08:46:11 -0800 Subject: synth: only techmap cmp2{lut,lcu} if -lut --- techlibs/common/synth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'techlibs/common/synth.cc') diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index 513702357..d6dffdd7f 100644 --- a/techlibs/common/synth.cc +++ b/techlibs/common/synth.cc @@ -226,7 +226,7 @@ struct SynthPass : public ScriptPass run("opt_clean"); if (help_mode) run("techmap -map +/cmp2lut.v -map +/cmp2lcu.v", " (if -lut)"); - else + else if (lut) run(stringf("techmap -map +/cmp2lut.v -map +/cmp2lcu.v -D LUT_WIDTH=%d", lut)); if (!noalumacc) run("alumacc", " (unless -noalumacc)"); -- cgit v1.2.3