NivaarExam PrepOfficial exam papers ↗

22-Elec-A4 Digital Systems and Computers · May 2018

Question 1 of 6: Combinational circuit — even / equal-MSB detector and odd-sum detector

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

Notes on this paper

National Exams — May 2018 · 16-Elec-A4 Digital Systems & Computers. Closed book, 3 hours. Six questions, 12 marks each; the rubric requires any five, but all six are solved here as a study resource. Approved Casio/Sharp calculator permitted. A Boolean-identity table and the flip-flop excitation table are supplied with the paper (reproduced where used).

Reference texts. M. M. Mano & M. D. Ciletti, Digital Design (6th ed.) — number systems, Boolean minimization, sequential logic; J. F. Wakerly, Digital Design: Principles and Practices (5th ed.) — counters, registers, PLDs; C. Hamacher, Z. Vranesic, S. Zaky & N. Manjikian, Computer Organization and Embedded Systems (6th ed.) — parallel I/O, handshaking, memory-mapped ports; Motorola M68HC11 Reference Manual — port addressing and instruction set.

Question 1: Combinational circuit — even / equal-MSB detector and odd-sum detector (12 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 three-bit input $ABC$ with $A$ the most significant bit and $C$ the least significant. Two outputs are specified verbally: $E=1$ when the number is even (its LSB $C=0$) or when the two MSBs are equal ($A=B$); $O=1$ when the sum of the two least-significant digits $B$ and $C$ is odd (exactly one of $B,C$ is 1).

Find. (a) the complete truth table; (b) $E$ as a canonical SoP; (c) $O$ as a canonical PoS; (d) the minimal SoP for $E$; (e) the minimal PoS for $O$, using only the supplied Boolean identities.

Approach. Translate each verbal condition into an algebraic expression, tabulate all eight input combinations, read the canonical forms directly from the 1-rows (SoP) and 0-rows (PoS), then reduce with the complementary, distributive and De Morgan identities.

  1. Encode the two conditions algebraically. "Even" means $C=0$, i.e. the literal $\overline{C}$. "$A$ and $B$ equal" is the equivalence (XNOR) $A\odot B=AB+\overline{A}\,\overline{B}$. Hence $$E=\overline{C}+AB+\overline{A}\,\overline{B}.$$ "Sum of $B$ and $C$ is odd" is true when exactly one of them is 1, i.e. the exclusive-OR $O=B\oplus C=\overline{B}C+B\overline{C}.$
  2. Tabulate all eight rows (minterm index $m=4A+2B+C$), evaluating the two expressions above.
(a) Truth table — minterm index, inputs, and both outputs
$m$$A$$B$$C$$E$$O$
000010
100111
201011
301100
410010
510101
611011
711110
  1. (b) Canonical SoP of $E$. $E=1$ at minterms $m=0,1,2,4,6,7$, so the sum of those minterms is $$E=\textstyle\sum m(0,1,2,4,6,7)=\overline{A}\,\overline{B}\,\overline{C}+\overline{A}\,\overline{B}C+\overline{A}B\overline{C}+A\overline{B}\,\overline{C}+AB\overline{C}+ABC.$$
  2. (c) Canonical PoS of $O$. $O=0$ at $m=0,3,4,7$; each 0-row contributes one maxterm (complement every literal that is 1), giving $$O=\textstyle\prod M(0,3,4,7)=(A+B+C)\,(A+\overline{B}+\overline{C})\,(\overline{A}+B+C)\,(\overline{A}+\overline{B}+\overline{C}).$$
  3. (d) Minimal SoP of $E$. It is cleaner to minimize the two 0-cells. $\overline{E}=m_3+m_5=\overline{A}BC+A\overline{B}C=C(\overline{A}B+A\overline{B})=C\,(A\oplus B)$. Complementing with De Morgan and involution, $$E=\overline{C(A\oplus B)}=\overline{C}+\overline{(A\oplus B)}=\overline{C}+AB+\overline{A}\,\overline{B}.$$ This matches the K-map: the two 1-columns $C=0$ form $\overline{C}$, and the equal-MSB cells pair into $AB$ and $\overline{A}\,\overline{B}$. $$\boxed{\,E=\overline{C}+AB+\overline{A}\,\overline{B}\,}$$
  4. (e) Minimal PoS of $O$. Combine the four maxterms in pairs on the absent variable $A$: $(A+B+C)(\overline{A}+B+C)=(B+C)$ and $(A+\overline{B}+\overline{C})(\overline{A}+\overline{B}+\overline{C})=(\overline{B}+\overline{C})$ (identity: $(X+Y)(\overline{X}+Y)=Y$). Hence $$\boxed{\,O=(B+C)(\overline{B}+\overline{C})\,}$$ which multiplies out to $B\overline{C}+\overline{B}C=B\oplus C$, confirming the specification.
BCA000111100110111011K-map for E -> E = C' + A.B + A'.B'
K-map of $E$: the two vertical $C=0$ columns give $\overline{C}$; the corner-and-centre equal-MSB cells give $AB$ and $\overline{A}\,\overline{B}$.
BCA000111100010110101K-map for O = B XOR C (checkerboard: no SoP grouping)
K-map of $O=B\oplus C$: the 1-cells form a checkerboard with no adjacent pair, so no product term can merge — the compact form is the two-factor PoS, not a smaller SoP.
Question 1 — results
ItemResult
(a) $E$ 1-minterms$\sum m(0,1,2,4,6,7)$
(a) $O$ 1-minterms$\sum m(1,2,5,6)$
(b) $E$ canonical SoP6 minterms (above)
(c) $O$ canonical PoS$\prod M(0,3,4,7)$
(d) $E$ minimal SoP$\overline{C}+AB+\overline{A}\,\overline{B}$
(e) $O$ minimal PoS$(B+C)(\overline{B}+\overline{C})$
← Paper overview