t:right">[source]</a></h4><blockquote><p><code>lut_mask</code>(<strong><code>lut</code></strong>=<em><code>&lt;lambda&gt;</code></em>, <strong><code>N</code></strong>=<em><code>4</code></em>)</p>
</blockquote>
<p>Quartus LUT mask for primitive logic cell, takes function to input and returns hex encoding
in:
    lut (callable or list or numpy.array or dict) : function mapping over the port entry.
    N (int) : number of ports. for standard 4-input LUT, 0=d, 1=c, 2=b, 3=a
out:
    mask (str) : hex string enco