22-Elec-A4 Digital Systems and Computers · December 2016
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Paper format. National Exams, December 2016 — 07-Elec-A4 Digital Systems & Computers. Three hours, closed book, one approved Casio or Sharp calculator. Six questions are printed and any five constitute a complete exam; every question is worth 12 points with the per-part breakdown printed on page 1. A flip-flop excitation table and a sheet of Boolean identities are attached as page 6. All six questions are solved below so the set works as a complete study resource.
Reference texts.
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 four-variable function as a product of three sum terms (maxterm factors). Find. its truth table, the canonical minterm list, the minimal SoP cover, and a static-hazard-free cover.
Approach. Each sum factor is zero for exactly one setting of the variables it names (a maxterm); collect those zero-rows, the remaining rows are the minterms, then group on a K-map and test adjacent 1-cells for static-1 hazards.
| # | A B C D | f | # | A B C D | f |
|---|---|---|---|---|---|
| 0 | 0 0 0 0 | 0 | 8 | 1 0 0 0 | 0 |
| 1 | 0 0 0 1 | 1 | 9 | 1 0 0 1 | 1 |
| 2 | 0 0 1 0 | 0 | 10 | 1 0 1 0 | 0 |
| 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 | 1 |
| 7 | 0 1 1 1 | 1 | 15 | 1 1 1 1 | 1 |
Minimal SoP (part c). Grouping the 1-cells on the K-map: the whole $A=0,B=1$ row is a quad ($\overline{A}B$), the $B=1,C=1$ column is a quad ($BC$), and $m_1,m_9$ pair as $\overline{B}\,\overline{C}D$. Hence $$\boxed{f=\overline{A}B+BC+\overline{B}\,\overline{C}D}$$ (3 terms, 7 literals).
Hazard analysis (part d). A static-1 hazard occurs when two adjacent 1-cells are covered by different product terms with no common term. Cells $m_1=0001$ (in $\overline{B}\,\overline{C}D$) and $m_5=0101$ (in $\overline{A}B$) are adjacent — they differ only in $B$ — and lie in different loops, so the cover is not hazard-free. Adding the consensus term $\overline{A}\,\overline{C}D$, which spans both cells, bridges the transition:
$$\boxed{f_{\text{hazard-free}}=\overline{A}B+BC+\overline{B}\,\overline{C}D+\overline{A}\,\overline{C}D}$$
All other adjacent 1-cell pairs already share a loop ($m_6,m_7$ share $\overline{A}B$ and $BC$; $m_7,m_{15}$ and $m_6,m_{14}$ share $BC$; $m_1,m_9$ share $\overline{B}\,\overline{C}D$), so this single added term makes the network glitch-free for all single-input changes.
| Part | Result |
|---|---|
| (b) Canonical SoP | $\sum m(1,4,5,6,7,9,14,15)$ |
| (c) Minimal SoP | $\overline{A}B+BC+\overline{B}\,\overline{C}D$ |
| (d) Hazard-free SoP | $\overline{A}B+BC+\overline{B}\,\overline{C}D+\overline{A}\,\overline{C}D$ |