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(BC+DE) + \overline{A}(FG+\overline{B}\,\overline{E})$ over seven inputs $A\ldots G$, with complemented literals available.
Find. (a) a direct AND/OR/NOT circuit, (b) a NOR-only version, and (c) a six-gate NOR realisation justified by the double-complement identity.
Approach. Draw the expression as written, then flatten it to a two-level sum of products and complement twice so the outer OR and the four product gates become NOR gates.
Expanding the brackets gives the two-level form
$$f = ABC + ADE + \overline{A}FG + \overline{A}\,\overline{B}\,\overline{E}.$$
A gate-by-gate NOR conversion keeps this topology and inserts back-to-back inverters at each wire so that every AND and every OR becomes a NOR. Using the identity that an AND of literals equals a NOR of their complements, $XYZ=\overline{\overline{X}+\overline{Y}+\overline{Z}}$, each product term is one NOR gate; the final OR of the four products becomes a NOR followed by an inverter. Done mechanically this yields a valid NOR-only network (four product NORs, one combining NOR, one output inverter, plus the input inverters already assumed available). Part (c) shows this is already the minimum.
| Stage | Gates |
|---|---|
| Product terms $ABC,ADE,\overline{A}FG,\overline{A}\,\overline{B}\,\overline{E}$ | 4 NOR |
| $\overline{f}$ (combine) | 1 NOR |
| Output inverter | 1 NOR |
| Total | 6 NOR |