From: Eddie Hung Date: Tue, 16 Jul 2019 19:45:29 +0000 (-0700) Subject: gen_lut to return correctly sized LUT mask X-Git-Tag: working-ls180~1189^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a58ee78dc8bd2c257498dc947081a1bba7bb54f;p=yosys.git gen_lut to return correctly sized LUT mask --- 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;