22-Elec-A4 Digital Systems and Computers · December 2017
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
National Exams — 16-Elec-A4 Digital Systems & Computers — December 2017. Closed book; 3 hours; six questions of 12 marks each, of which any five constitute a complete paper. All six are solved below as a study resource. Permitted aids: Casio or Sharp approved calculator; a sheet of Boolean identities and a flip-flop excitation table are supplied with the paper.
Reference texts. M. Morris Mano & M. D. Ciletti, Digital Design (Pearson); C. H. Roth & L. L. Kinney, Fundamentals of Logic Design (Cengage); J. F. Wakerly, Digital Design: Principles and Practices (Pearson); Hamacher, Vranesic & Zaky, Computer Organization (McGraw-Hill) for the interrupt / timer material.
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. $f(A,B,C,D)=\sum m(0,1,2,4,5,6,7,8,10)$ over four inputs.
Find. The truth table, a classification of implicants (non-prime / prime-non-essential / essential), and the minimal SoP.
Approach. Plot the on-set, read every prime implicant off the map, mark the cells that a single implicant alone covers (these force the essential PIs), then check the essentials already cover every minterm.
| m | A | B | C | D | f | m | A | B | C | D | f | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 1 | 8 | 1 | 0 | 0 | 0 | 1 | |
| 1 | 0 | 0 | 0 | 1 | 1 | 9 | 1 | 0 | 0 | 1 | 0 | |
| 2 | 0 | 0 | 1 | 0 | 1 | 10 | 1 | 0 | 1 | 0 | 1 | |
| 3 | 0 | 0 | 1 | 1 | 0 | 11 | 1 | 0 | 1 | 1 | 0 | |
| 4 | 0 | 1 | 0 | 0 | 1 | 12 | 1 | 1 | 0 | 0 | 0 | |
| 5 | 0 | 1 | 0 | 1 | 1 | 13 | 1 | 1 | 0 | 1 | 0 | |
| 6 | 0 | 1 | 1 | 0 | 1 | 14 | 1 | 1 | 1 | 0 | 0 | |
| 7 | 0 | 1 | 1 | 1 | 1 | 15 | 1 | 1 | 1 | 1 | 0 |
| AB \ CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 10 | 11 | 03 | 12 |
| 01 | 14 | 15 | 17 | 16 |
| 11 | 012 | 013 | 015 | 014 |
| 10 | 18 | 09 | 011 | 110 |
The complete set of prime implicants (largest legal groups) is
$$\overline{A}B\;(m_4,m_5,m_6,m_7),\quad \overline{A}\,\overline{C}\;(m_0,m_1,m_4,m_5),\quad \overline{A}\,\overline{D}\;(m_0,m_2,m_4,m_6),\quad \overline{B}\,\overline{D}\;(m_0,m_2,m_8,m_{10}).$$
The three essential PIs together cover $\{0,1,4,5\}\cup\{4,5,6,7\}\cup\{0,2,8,10\}$ = every minterm, so the non-essential $\overline{A}\,\overline{D}$ is not needed:
$$\boxed{f = \overline{A}B + \overline{A}\,\overline{C} + \overline{B}\,\overline{D}}$$ — three product terms, six literals.
| Item | Answer |
|---|---|
| Prime implicants | $\overline{A}B,\ \overline{A}\,\overline{C},\ \overline{A}\,\overline{D},\ \overline{B}\,\overline{D}$ |
| Non-prime implicant (example) | $\overline{A}\,\overline{B}\,\overline{C}\ (m_0,m_1)$ |
| Prime, not essential | $\overline{A}\,\overline{D}$ |
| Essential PIs | $\overline{A}B,\ \overline{A}\,\overline{C},\ \overline{B}\,\overline{D}$ |
| Minimal SoP | $\overline{A}B + \overline{A}\,\overline{C} + \overline{B}\,\overline{D}$ |