diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-04-03 16:28:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 16:28:25 -0700 |
commit | d61a6b81fcbc90dba81e136e0de65904f73a859e (patch) | |
tree | 2ef4b8f284c132b89015211a235379a12b87fb2a /techlibs/common/synth.cc | |
parent | cf716e1fff53fe4633dce98ebca04fe36c283106 (diff) | |
parent | 7b38cde2df0631aac0377cd155653ae0e0084ed0 (diff) | |
download | yosys-d61a6b81fcbc90dba81e136e0de65904f73a859e.tar.gz yosys-d61a6b81fcbc90dba81e136e0de65904f73a859e.tar.bz2 yosys-d61a6b81fcbc90dba81e136e0de65904f73a859e.zip |
Merge pull request #1648 from YosysHQ/eddie/cmp2lcu
"techmap -map +/cmp2lcu.v" for decomposing arithmetic compares to $lcu
Diffstat (limited to 'techlibs/common/synth.cc')
-rw-r--r-- | techlibs/common/synth.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index e7a192c07..d6dffdd7f 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)"); - else - run(stringf("techmap -map +/cmp2lut.v -D LUT_WIDTH=%d", lut)); + 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 (!noalumacc) run("alumacc", " (unless -noalumacc)"); if (!noshare) |