NivaarExam PrepOfficial exam papers ↗

22-Elec-A4 Digital Systems and Computers · December 2013

Question 1 of 6: K-map Minimisation and Static Hazards

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

Notes on this paper

Paper format. National Exams, December 2013 — 07-Elec-A4 Digital Systems & Computers. Three hours, closed book (one approved Casio or Sharp calculator). Six questions are printed; any five constitute a complete exam and every question is worth 12 marks, with the per-part split printed in the marking scheme on page 1 (Q1 and Q5 are 3+3+3+3; Q2 is 4+4+4; Q3 and Q6 are 6+6; Q4 is 8+2+2). An excitation table for the RS/JK/T/D flip-flops and a table of 22 basic Boolean identities are supplied on the last page. All six questions are solved below, because this set is a study resource rather than a timed sitting.

Reference texts.

Notation used throughout. A prime and an overbar both denote complement: \(\overline{A}\) in the mathematics, A′ in the figures, where SVG text cannot carry an overbar. The variable order in every K-map is the order printed in the question, with the leftmost variable as the most significant bit, so minterm and maxterm indices match the question's numbering exactly.

Question 1: K-map Minimisation and Static Hazards (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 four-variable function specified by its maxterm list, \(f(A,B,C,D)=\prod M_i(0,2,6,7,8,10,14,15)\), with \(A\) the most significant variable. A maxterm list names the input combinations at which \(f=0\); the eight remaining combinations are therefore the minterms at which \(f=1\):

$$f = \sum m_i(1,3,4,5,9,11,12,13)$$

Find. The minimum PoS and minimum SoP forms, a justified static-hazard analysis of each, and the smallest hazard-free version of each where a hazard exists.

Approach. Plot the function once on a four-variable K-map, loop the zeros to read the PoS and the ones to read the SoP, then test each two-level form for static hazards by looking for adjacent cells of the same value that no single loop covers, and close each such gap with the corresponding consensus term.

(a) Minimum product-of-sums (3 marks)

Q1(a) K-map of f - loops drawn on the ZEROS give the PoSCDAB000111100001111000111302141507061121130150140819111010(B + D) covers 0,2,8,10(B' + C') covers 6,7,14,15
Figure 1.1 — the K-map of \(f\). Looping the ZEROS into the two largest groups gives the minimum PoS directly; a group of four zeros yields a two-literal sum term.
  1. Plot the eight zeros and group them. The zeros fall into exactly two groups of four. The corner group \(\{0,2,8,10\}\) has \(B=0\) and \(D=0\) throughout while \(A\) and \(C\) both change; the block \(\{6,7,14,15\}\) has \(B=1\) and \(C=1\) throughout while \(A\) and \(D\) both change.
  2. Convert each zero-group to a sum term. In PoS a variable that is constant at 0 over the group enters uncomplemented and a variable constant at 1 enters complemented, because the sum term must evaluate to zero on exactly those cells: $$\{0,2,8,10\}:\ B=0,\ D=0 \ \Longrightarrow\ (B+D), \qquad \{6,7,14,15\}:\ B=1,\ C=1 \ \Longrightarrow\ (\overline{B}+\overline{C})$$
  3. Assemble and confirm the cover. Two groups of four cover all eight zeros with no zero left over and no group removable, so this is the minimum PoS: $$\boxed{\,f = (B+D)\,(\overline{B}+\overline{C})\,}$$

Evaluating this expression on all sixteen input combinations reproduces the given maxterm list exactly, which is the check worth doing before any hazard analysis: a hazard-free version of the wrong function earns nothing.

(b) Static-hazard analysis of the PoS form (3 marks)

A two-level PoS network can exhibit a static-0 hazard: the output should stay at 0 across a single-variable change, but momentarily glitches to 1. This happens when the two zero-cells at the ends of that change are covered by different sum terms, because the gate leaving its zero-covering region and the gate entering it switch at slightly different times, and for an instant neither holds the output down.

  1. Search for adjacent zero-cells that share no loop. Comparing every pair of zeros that differ in exactly one variable against the two loops of part (a) leaves two uncovered transitions: $$m_2 = 0010 \leftrightarrow m_6 = 0110 \quad\text{and}\quad m_{10} = 1010 \leftrightarrow m_{14} = 1110$$ Both are changes in \(B\) alone, taken with \(C=1\) and \(D=0\). Cell 2 lies only in \((B+D)\) and cell 6 only in \((\overline{B}+\overline{C})\); likewise for 10 and 14. The minimised expression is therefore not hazard-free.
  2. Identify the consensus sum term. The four cells 2, 6, 10 and 14 share \(C=1,\ D=0\), so the implicate that covers both hazardous transitions in one loop is $$C=1,\ D=0 \ \Longrightarrow\ (\overline{C}+D)$$ This is the consensus of \((B+D)\) and \((\overline{B}+\overline{C})\) with respect to \(B\), which is exactly the term Boolean identity 18 on the supplied identity sheet declares redundant in value — redundant logically, essential for timing.
  3. Write the hazard-free PoS. Adding the redundant loop leaves the function unchanged but guarantees that some sum term holds the output at 0 throughout each single-variable change: $$\boxed{\,f_{\text{hf}} = (B+D)\,(\overline{B}+\overline{C})\,(\overline{C}+D)\,}$$ Re-running the adjacency search with the third loop present returns no uncovered zero-pair, so three sum terms suffice and no smaller hazard-free PoS exists.
Q1(b) the consensus loop removes both static-0 hazardsCDAB000111100001111000111302141507061121130150140819111010(B + D)(B' + C')(C' + D) consensus - bridges 2-6 and 10-14
Figure 1.2 — the consensus loop \((\overline{C}+D)\) bridges the 2–6 and 10–14 boundaries, so every single-variable change between two zeros now stays inside one loop.

(c) Minimum sum-of-products (3 marks)

Q1(c) the same K-map, now looped on the ONES for the SoPCDAB000111100001111000111302141507061121130150140819111010B'D covers 1,3,9,11BC' covers 4,5,12,13
Figure 1.3 — the same map, now looped on the ONES. Two groups of four again suffice.
  1. Group the ones. The eight minterms form two groups of four: \(\{1,3,9,11\}\) holds \(B=0,\ D=1\) with \(A\) and \(C\) free, and \(\{4,5,12,13\}\) holds \(B=1,\ C=0\) with \(A\) and \(D\) free.
  2. Convert each one-group to a product term. Here the convention reverses: a variable constant at 1 enters uncomplemented and one constant at 0 enters complemented, giving \(\overline{B}D\) and \(B\overline{C}\). Both groups are prime and both are essential (minterm 1 lies in no other prime implicant, and neither does minterm 4), so $$\boxed{\,f = \overline{B}D + B\overline{C}\,}$$

The two forms are of course the same function; the PoS of part (a) is simply the complement of the minimum SoP of \(\overline{f} = \overline{B}\,\overline{D} + BC\), de Morganised.

(d) Static-hazard analysis of the SoP form (3 marks)

The dual failure mode applies to a two-level SoP network: a static-1 hazard, where the output should hold at 1 across a single-variable change but momentarily dips to 0 because the AND gate that was holding it high releases before the incoming one asserts.

  1. Search for adjacent one-cells that share no product term. Two transitions are uncovered: $$m_1 = 0001 \leftrightarrow m_5 = 0101 \quad\text{and}\quad m_9 = 1001 \leftrightarrow m_{13} = 1101$$ Both are changes in \(B\) alone with \(C=0\) and \(D=1\). Cells 1 and 9 belong only to \(\overline{B}D\); cells 5 and 13 belong only to \(B\overline{C}\). The minimised SoP is therefore not hazard-free either.
  2. Add the consensus product. Cells 1, 5, 9 and 13 share \(C=0,\ D=1\), so the covering implicant is \(\overline{C}D\) — again the consensus term of the two product terms with respect to \(B\): $$\boxed{\,f_{\text{hf}} = \overline{B}D + B\overline{C} + \overline{C}D\,}$$ With the third product present, every pair of adjacent ones lies inside a common loop, so this is the smallest hazard-free SoP.
Q1(d) the consensus product removes both static-1 hazardsCDAB000111100001111000111302141507061121130150140819111010B'DBC'C'D consensus - bridges 1-5 and 9-13
Figure 1.4 — the consensus product \(\overline{C}D\) bridges 1–5 and 9–13. Note the pleasing symmetry with Figure 1.2: hazard removal is a self-dual operation.
PartResultTerms
(a) minimum PoS\(f = (B+D)(\overline{B}+\overline{C})\)2
(b) static-0 hazardspresent, on \(B\) at cells 2–6 and 10–14—
(b) hazard-free PoS\(f = (B+D)(\overline{B}+\overline{C})(\overline{C}+D)\)3
(c) minimum SoP\(f = \overline{B}D + B\overline{C}\)2
(d) static-1 hazardspresent, on \(B\) at cells 1–5 and 9–13—
(d) hazard-free SoP\(f = \overline{B}D + B\overline{C} + \overline{C}D\)3
← Paper overview