gen_lut to return correctly sized LUT mask
authorEddie Hung <eddie@fpgeh.com>
Tue, 16 Jul 2019 19:45:29 +0000 (12:45 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 16 Jul 2019 19:45:29 +0000 (12:45 -0700)
techlibs/common/cmp2lut.v

index 8aa1eb957592c2c071f5e1cced4bd7a6a313103d..0d0757767c5b0570f94ded85d209fe10d068b8ca 100644 (file)
@@ -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;