79. Universal 3-Input LUT

Loading simulator…

The solution adds one 8:1 MUX to the pre-defined inputs and output.

Connect LUT[0] through LUT[7] to D0 through D7.

Connect inputs C, B, A to the select inputs S2, S1, S0. The MUX output drives Y.

Each LUT bit stores the truth-table output at the address formed by CBA.

For example, input A = 1, B = 0, C = 1 selects address 101, so the MUX returns LUT[5].

To implement another function, write its eight truth-table outputs into LUT[0] through LUT[7] in address order; no circuit rewiring is required.

LUT Values for the given functions

YLUT[7:0] in BinaryLUT[7:0] in Hex
A + B·C111010108'hEA
A·(B' + C)'000010008'h08
(A ⊙ B) ⊙ C100101108'h96
A·B' + B·C' + A'·C011111108'h7E
(A·B) ⊕ (B'·C')100010118'h8B