Multiplexers as general-purpose logic (cont'd)
Implementing a 2n :1 mux as a function of n–1 variables
- n-1 mux control variables S0 – Sn – 1
- One data variable Sn
- Four possible values for each data input: 0, 1, Sn, Sn'
- Example: F(A,B,C,D) implemented using an 8:1 mux
Choose A,B,C as control variables