Multiplexers as general-purpose logic (cont'd)
Implementing a function of n variables using a 2n-1 :1 mux
- n-1 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