80. Five-Input Logic Mapping Using MUXes

Loading simulator…

The circuit implements the five-input Boolean function using four 8:1 MUXes followed by one 4:1 MUX.

Each 8:1 MUX receives an 8-bit LUT configuration bus. All four MUXes share the select inputs A (MSB), B, C (LSB), selecting one of eight stored logic values.

Program the four LUT buses as follows:

LUT[31:0]  = 32'h7BF0CAC8 = 32'b01111011_11110000_11001010_11001000

LUT[7:0]   = 8'hC8 = 8'b11001000
LUT[15:8]  = 8'hCA = 8'b11001010
LUT[23:16] = 8'hF0 = 8'b11110000
LUT[31:24] = 8'h7B = 8'b01111011

Connect the four 8:1 MUX outputs to the final 4:1 MUX in this order:

Final MUX data inputLUT sourceSelect D E
D0LUT[7:0]00
D1LUT[15:8]01
D2LUT[23:16]10
D3LUT[31:24]11

Connect D as the MSB and E as the LSB of the final 4:1 MUX select input.

The first stage selects a logic value using A, B, C. The second stage selects the corresponding LUT group using D, E.

Together, the two MUX stages implement the required five-input function and drive the final output Y.