aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/common
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-07-16 12:45:29 -0700
committerEddie Hung <eddie@fpgeh.com>2019-07-16 12:45:29 -0700
commit7a58ee78dc8bd2c257498dc947081a1bba7bb54f (patch)
tree56df7f3af384b991d1271f7d53b80ee5dd0f0fd4 /techlibs/common
parent8a2a2cd035d5fe931899256711ed972fd1da3a3b (diff)
downloadyosys-7a58ee78dc8bd2c257498dc947081a1bba7bb54f.tar.gz
yosys-7a58ee78dc8bd2c257498dc947081a1bba7bb54f.tar.bz2
yosys-7a58ee78dc8bd2c257498dc947081a1bba7bb54f.zip
gen_lut to return correctly sized LUT mask
Diffstat (limited to 'techlibs/common')
-rw-r--r--techlibs/common/cmp2lut.v2
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;