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
Y | LUT[7:0] in Binary | LUT[7:0] in Hex |
|---|---|---|
A + B·C | 11101010 | 8'hEA |
A·(B' + C)' | 00001000 | 8'h08 |
(A ⊙ B) ⊙ C | 10010110 | 8'h96 |
A·B' + B·C' + A'·C | 01111110 | 8'h7E |
(A·B) ⊕ (B'·C') | 10001011 | 8'h8B |