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/cmp2lut.v | |
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/cmp2lut.v')
-rw-r--r-- | techlibs/common/cmp2lut.v | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/techlibs/common/cmp2lut.v b/techlibs/common/cmp2lut.v index 1c8192b85..8ecd356cc 100644 --- a/techlibs/common/cmp2lut.v +++ b/techlibs/common/cmp2lut.v @@ -57,10 +57,6 @@ function automatic [(1 << `LUT_WIDTH)-1:0] gen_lut; o_bit = (lhs > rhs); if (operation == 3) o_bit = (lhs >= rhs); - if (operation == 4) - o_bit = (lhs == rhs); - if (operation == 5) - o_bit = (lhs != rhs); gen_lut = gen_lut | (o_bit << n); end end @@ -75,10 +71,6 @@ generate localparam operation = 2; if (_TECHMAP_CELLTYPE_ == "$ge") localparam operation = 3; - if (_TECHMAP_CELLTYPE_ == "$eq") - localparam operation = 4; - if (_TECHMAP_CELLTYPE_ == "$ne") - localparam operation = 5; if (A_WIDTH > `LUT_WIDTH || B_WIDTH > `LUT_WIDTH || Y_WIDTH != 1) wire _TECHMAP_FAIL_ = 1; |