Masking Inputs

Each LUT has three inputs that can be used. When not all the three inputs are needed, the unused input can be masked (tied low). Only the TRUTH bits where the masked input is '0' can be used when looking at the truth table to determine how the bits may be set to get the wanted logic.

When masking one input, the truth table can be simplified to have only two inputs and when masking two inputs it can be reduced to have only one input.

The table below shows an example of the truth table when masking IN[0].

Table 1. LUT Truth Table when IN[0] is Masked
IN[2] IN[1] OUT
0 0 TRUTH[0]
0 1 TRUTH[2]
1 0 TRUTH[4]
1 1 TRUTH[6]

The table below shows an example of the truth table when masking IN[1].

Table 2. LUT Truth Table when IN[1] is Masked
IN[2] IN[0] OUT
0 0 TRUTH[0]
0 1 TRUTH[1]
1 0 TRUTH[4]
1 1 TRUTH[5]

The table below shows an example of the truth table when masking IN[2].

Table 3. LUT Truth Table when IN[2] is Masked
IN[1] IN[0] OUT
0 0 TRUTH[0]
0 1 TRUTH[1]
1 0 TRUTH[2]
1 1 TRUTH[3]

The table below shows an example of the truth table when masking IN[0] and IN[1].

Table 4. LUT Truth Table when IN[0] and IN[1] are Masked
IN[2] OUT
0 TRUTH[0]
1 TRUTH[4]

The table below shows an example of the truth table when masking IN[0] and IN[2].

Table 5. LUT Truth Table when IN[0] and IN[2] are Masked
IN[1] OUT
0 TRUTH[0]
1 TRUTH[2]

The table below shows an example of the truth table when masking IN[1] and IN[2].

Table 6. LUT Truth Table when IN[1] and IN[2] are Masked
IN[0] OUT
0 TRUTH[0]
1 TRUTH[1]

Below are some examples of where various inputs are masked.

Figure 1. Two Input AND Gates, IN[0] Masked
Figure 2. Two Input OR Gates, IN[1] Masked
Figure 3. Two Input XOR Gates, IN[2] Masked