diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-07-16 12:45:29 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-07-16 12:45:29 -0700 |
commit | 7a58ee78dc8bd2c257498dc947081a1bba7bb54f (patch) | |
tree | 56df7f3af384b991d1271f7d53b80ee5dd0f0fd4 /techlibs | |
parent | 8a2a2cd035d5fe931899256711ed972fd1da3a3b (diff) | |
download | yosys-7a58ee78dc8bd2c257498dc947081a1bba7bb54f.tar.gz yosys-7a58ee78dc8bd2c257498dc947081a1bba7bb54f.tar.bz2 yosys-7a58ee78dc8bd2c257498dc947081a1bba7bb54f.zip |
gen_lut to return correctly sized LUT mask
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/common/cmp2lut.v | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/techlibs/common/cmp2lut.v b/techlibs/common/cmp2lut.v index 8aa1eb957..0d0757767 100644 --- a/techlibs/common/cmp2lut.v +++ b/techlibs/common/cmp2lut.v @@ -27,7 +27,7 @@ parameter _TECHMAP_CONSTVAL_A_ = 0; parameter _TECHMAP_CONSTMSK_B_ = 0; parameter _TECHMAP_CONSTVAL_B_ = 0; -function automatic integer gen_lut; +function automatic [(1 << `LUT_WIDTH)-1:0] gen_lut; input integer width; input integer operation; input integer swap; |