NivaarExam PrepOfficial exam papers ↗

25-Comp-A2 Digital Systems Design · December 2014

Question 2 of 6: Function Realization with an 8-to-1 Multiplexer

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

98-Comp-A2, Digital Systems Design — National Exams, December 2014. Closed-book, 3 hours; six 20-mark questions, FIVE constitute a complete exam (all six answered below as a complete study resource).

Reference texts: Mano & Ciletti, Digital Design, 6th ed. — combinational logic minimization, multiplexer-based implementation, synchronous sequential circuit (counter) design, and memory/interfacing, covering Questions 1–5; Patterson & Hennessy, Computer Organization and Design, 6th ed. — interrupt-driven I/O, covering Question 6.

Question 2: Function Realization with an 8-to-1 Multiplexer (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. A 3-variable function $F(A,B,C)$ specified by the K-map-style table above (Gray-coded columns $AB=00,01,11,10$; rows $C=0,1$).

Find. (a) $F$ as a Boolean expression in $A,B,C$; (b) a realization of $F$ using one 8-to-1 multiplexer.

Approach. Read the eight cells off the table as minterms of $(A,B,C)$, write the canonical sum, then — because a 3-variable function maps onto an 8-to-1 MUX one-for-one — drive the select lines directly from $A,B,C$ and tie each data input to the truth-table value of its own minterm; no algebraic reduction is needed for this direct implementation.

  1. Part (a) — read the minterms off the table. Taking $A,B$ from the column header and $C$ from the row, the eight cells read as: $(A,B,C){=}(0,0,0){\to}0$, $(0,0,1){\to}1$, $(0,1,0){\to}1$, $(0,1,1){\to}0$, $(1,0,0){\to}0$, $(1,0,1){\to}1$, $(1,1,0){\to}1$, $(1,1,1){\to}0$. The four 1-cells give the canonical sum-of-products directly: $$F(A,B,C)=\boxed{\bar A\bar BC+\bar AB\bar C+A\bar BC+AB\bar C}=\Sigma m(1,2,5,6)$$
  2. Part (b) — map $A,B,C$ onto the MUX select lines. An 8-to-1 MUX has three select lines $S_2,S_1,S_0$ and eight data inputs $D_0\ldots D_7$, with output $=D_i$ where $i=4S_2+2S_1+S_0$. Since $F$ has exactly three variables and the MUX has exactly $2^3=8$ data inputs, connect $S_2{=}A,\ S_1{=}B,\ S_0{=}C$ directly — every possible $(A,B,C)$ combination then selects exactly one data input, so no reduction/Shannon-expansion trick is required.
  3. Tie each data input to its own truth-table value. Reading the minterm index $i=4A+2B+C$ against the table gives the constant to hard-wire onto each $D_i$ (0 to ground, 1 to $V_{CC}$): $$D_0=0,\ D_1=\boxed{1},\ D_2=\boxed{1},\ D_3=0,\ D_4=0,\ D_5=\boxed{1},\ D_6=\boxed{1},\ D_7=0$$ This is exactly the four minterms found in Step 1, confirming the two parts are consistent.
8:1 MUX D0 = 0 D1 = 1 D2 = 1 D3 = 0 D4 = 0 D5 = 1 D6 = 1 D7 = 0 D8..(unused, n/a for n=3) C = S0 B = S1 A = S2 F
Fig. Q2-b — 8:1 MUX realizing $F(A,B,C)=\Sigma m(1,2,5,6)$: select lines $S_2S_1S_0=ABC$ chosen directly; data inputs tied to the truth-table value of their own minterm ($D_1{=}D_2{=}D_5{=}D_6{=}1$, the rest $0$).
Final Results — Question 2
QuantityValue
$F(A,B,C)$ (canonical SOP)$\bar A\bar BC+\bar AB\bar C+A\bar BC+AB\bar C=\Sigma m(1,2,5,6)$
MUX select mapping$S_2{=}A,\ S_1{=}B,\ S_0{=}C$
Data inputs tied HIGH$D_1,D_2,D_5,D_6$
Data inputs tied LOW$D_0,D_3,D_4,D_7$