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.
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)
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.
[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}}}.$$
[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.
[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}$
0
0
1
1
1
0
0
1
1
1
0
1
1
0
1
0
1
1
1
1
0
1
1
0
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.
[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}$
0
0
1
0
0
1
0
0
1
0
0
1
0
1
1
0
0
1
0
0
1
1
1
0
0
0
1
0
[e] General expression. Directly from the two rows where the output
is high,
$$F = A \oplus B = \bar A B + A \bar B.$$
[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.
[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$.
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.