NivaarExam PrepOfficial exam papers ↗

25-Nav-B6 Ocean Engineering and Offshore Structures · May 2013

Question 2 of 8: Combinational Logic and a NOR-Only Exclusive-OR

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

Notes on this paper

Paper format. PEO National Examinations, May 2013 — 98-Mar-B6, printed for Electrical & Electronics Engineering / Mechanical Engineering candidates. Three hours, closed book, two approved calculators (Casio or Sharp). Eight questions of equal value; any five constitute a complete paper, and only the first five appearing in the answer book are marked. Constants supplied on the front page: $\pi = 3.14159$, $1\ \text{hp} = 746\ \text{W}$, $\mu_0 = 4\pi\times10^{-7}\ \text{H}\,\text{m}^{-1}$. All eight questions are solved here so the solutions cover whichever five a candidate chooses.

Subject note

This paper, although listed under “Ocean Engineering and Offshore Structures”, is headed 98-Mar-B6 and every question is Electrical & Electronics Engineering content (BJT current mirror, combinational logic, dc machine design, ac power/power-factor correction, op-amp transfer functions, induction-motor dc test and speed-torque, RC-circuit transients, magnetic-circuit impedance) — zero naval-architecture or ocean-engineering content. Solved as the exam actually printed.

Reference texts
  • Sedra & Smith, Microelectronic Circuits, 8th ed. — BJT current mirrors (Ch. 8), op-amp circuits (Ch. 2).
  • Mano & Ciletti, Digital Design, 6th ed. — Boolean algebra and DeMorgan’s theorems (Ch. 2), NAND/NOR universal gates (Ch. 3).
  • Chapman, Electric Machinery Fundamentals, 5th ed. — dc machine emf and torque (Ch. 7–8), induction motors and the dc test (Ch. 6), transformers (Ch. 2).
  • Sadiku & Alexander, Fundamentals of Electric Circuits, 7th ed. — ac power and power-factor correction (Ch. 11), first-order transients (Ch. 7), frequency response (Ch. 14).
  • Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 9th ed. — phasor methods and transfer functions.

Question 2: Combinational Logic and a NOR-Only Exclusive-OR (20 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. Part I: four two-input NAND gates wired as in Figure 2 — $A$ and $B$ drive the first gate whose output is $C$; $A$ and $C$ drive the gate whose output is $D$; $B$ and $C$ drive the gate whose output is $E$; $D$ and $E$ drive the output gate $F$. Part II: only two-input NOR gates are available.

Find. [a] $F(A,B)$; [b] the simplified form and the single equivalent gate; [c] the truth table at $C,D,E,F$; [d]–[g] a NOR-only exclusive-OR, with its truth table, expression, NOR-form algebra, and gate diagram.

[Figure not reproduced: Figure 2 — combinational network redrawn with the internal nodes $C$, $D$, $E$ labelled as in the question paper. See the official exam paper.]

Part I — analysis of the given network

Approach. Propagate the NAND function node by node, then apply DeMorgan to collapse the double inversions.

  1. [a] Write each node. A two-input NAND realises $\overline{XY}$, so reading Figure 2 from left to right: $$C = \overline{AB}, \qquad D = \overline{AC}, \qquad E = \overline{BC}, \qquad F = \overline{DE}.$$ Substituting gives the general expression asked for in [a]: $$F = \overline{\overline{A\,\overline{AB}}\cdot\overline{B\,\overline{AB}}}.$$
  2. [b] Apply DeMorgan. $\overline{DE} = \bar D + \bar E$, and each of $\bar D$, $\bar E$ is a double inversion that collapses: $$F = \bar D + \bar E = A\,\overline{AB} + B\,\overline{AB} = \overline{AB}\,(A + B).$$ Expanding $\overline{AB} = \bar A + \bar B$ and multiplying out: $$F = (\bar A + \bar B)(A+B) = \underbrace{\bar A A}_{0} + \bar A B + A\bar B + \underbrace{\bar B B}_{0},$$ so that $$\boxed{\;F = \bar A B + A \bar B = A \oplus B\;}$$ Yes — a single two-input exclusive-OR (EOR) gate replaces the whole four-NAND network.
  3. [c] Tabulate the internal nodes. Evaluating $C$, then $D$ and $E$, then $F$ for each input combination gives the truth table below. $F$ is high only when the inputs differ, confirming the algebra.
$A$$B$$C=\overline{AB}$$D=\overline{AC}$ $E=\overline{BC}$$F=\overline{DE}$
001110
011101
101011
110110

Part II — exclusive-OR from NOR gates only

Approach. Write the EOR in sum-of-products form, then convert to a NOR-only form by double-inverting and applying DeMorgan, so that every product becomes a NOR of complemented literals. The complements themselves are generated by NOR gates.

  1. [d] Truth table. The exclusive-OR is high when exactly one input is high.
$A$$B$$Y_1=\overline{A+B}$$Y_2=\overline{A+Y_1}$ $Y_3=\overline{B+Y_1}$$Y_4=\overline{Y_2+Y_3}$ $F=\overline{Y_4+Y_4}$
0010010
0100101
1001001
1100010
  1. [e] General expression. Directly from the two rows where the output is high, $$F = A \oplus B = \bar A B + A \bar B.$$
  2. [f] Convert to NOR form. A NOR gate computes $\overline{X+Y}$, so the target is an expression built only from complemented sums. Start with the identity $$\overline{A + \overline{A+B}} = \bar A \,(A+B) = \bar A B,$$ which follows by DeMorgan on the outer bar and then distributing; symmetrically $$\overline{B + \overline{A+B}} = \bar B\,(A+B) = A\bar B.$$ Naming those two results $Y_2$ and $Y_3$ and NOR-ing them, $$Y_4 = \overline{Y_2 + Y_3} = \overline{\bar A B + A\bar B} = \overline{A \oplus B},$$ which is the exclusive-NOR. One final inversion — a NOR gate with both inputs tied together, since $\overline{X+X} = \bar X$ — gives the required function: $$\boxed{\;F = \overline{\overline{\;\overline{A+\overline{A+B}} \;+\;\overline{B+\overline{A+B}}\;}}\;=\;A\oplus B\;}$$ Five two-input NOR gates are needed.
  3. [g] Gate array. $N_1$ forms $Y_1=\overline{A+B}$; $N_2$ and $N_3$ form $Y_2$ and $Y_3$; $N_4$ combines them into the exclusive-NOR $Y_4$; $N_5$, with both inputs tied to $Y_4$, acts as the inverter that produces $F$.
N₁N₂N₃N₄N₅ABY₁Y₂Y₃Y₄F = A⊕Bfive 2-input NOR gates; N₅ is wired as an inverter
Part II [g] — exclusive-OR built from five two-input NOR gates; $N_5$ has both inputs tied together and therefore acts as an inverter.
ItemResult
[a] Output expression$F=\overline{\overline{A\,\overline{AB}}\cdot\overline{B\,\overline{AB}}}$
[b] Simplified$F=\overline{AB}(A+B)=\bar A B + A\bar B = A\oplus B$
[b] Single replacement gateone 2-input exclusive-OR gate
[c] Truth table $F$0, 1, 1, 0 for $AB$ = 00, 01, 10, 11
[e] EOR expression$F=\bar A B + A\bar B$
[f]–[g] NOR-only realisationfive 2-input NOR gates ($N_5$ tied as an inverter)