aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-02-06 08:46:11 -0800
committerEddie Hung <eddie@fpgeh.com>2020-04-03 14:28:22 -0700
commit34c9b83854a09bb90e8b880774b58d91d7ed8ae7 (patch)
tree876952c2fd2ebe1e237422f427e1516896522954
parent5b87720b16d957765cd26a85633722dc882c24f9 (diff)
downloadyosys-34c9b83854a09bb90e8b880774b58d91d7ed8ae7.tar.gz
yosys-34c9b83854a09bb90e8b880774b58d91d7ed8ae7.tar.bz2
yosys-34c9b83854a09bb90e8b880774b58d91d7ed8ae7.zip
synth: only techmap cmp2{lut,lcu} if -lut
-rw-r--r--techlibs/common/synth.cc2
1 files changed, 1 insertions, 1 deletions
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)");