3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-05 21:53:24 +00:00

gen_lut to return correctly sized LUT mask

This commit is contained in:
Eddie Hung 2019-07-16 12:45:29 -07:00
parent 8a2a2cd035
commit 7a58ee78dc

View file

@ -27,7 +27,7 @@ parameter _TECHMAP_CONSTVAL_A_ = 0;
parameter _TECHMAP_CONSTMSK_B_ = 0; parameter _TECHMAP_CONSTMSK_B_ = 0;
parameter _TECHMAP_CONSTVAL_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 width;
input integer operation; input integer operation;
input integer swap; input integer swap;