22-Mec-A5 Electrical and Electronics Engineering · December 2019
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Paper format. PEO / Engineers Canada National Examinations, December 2019 — 16-Mec-A5, Electrical & Electronics Engineering (Mechanical Engineering discipline). Three hours, closed book, one approved Casio or Sharp calculator. Eight questions; any five constitute a complete paper and each question is of equal value, so each counted question carries 20 marks. All eight questions are solved below, because this set is a study resource rather than an exam script. The front page prints the constants $\pi = 3.14159$, $1\text{ hp} = 746\text{ W}$ and $\mu_0 = 4\pi\times10^{-7}\text{ H m}^{-1}$; all three are printed clearly on the front page and are used exactly as given.
Reference texts. A. S. Sedra and K. C. Smith, Microelectronic Circuits, 8th ed. (BJT biasing and load lines, op-amp frequency response); M. M. Mano and M. D. Ciletti, Digital Design, 6th ed. (universal-gate synthesis, DeMorgan reduction); S. J. Chapman, Electric Machinery Fundamentals, 5th ed. (dc machines, transformer magnetic circuits, induction-motor testing and slip); C. K. Alexander and M. N. O. Sadiku, Fundamentals of Electric Circuits, 7th ed. (phasor analysis, power factor, first-order transients); W. H. Hayt and J. A. Buck, Engineering Electromagnetics, 9th ed. (magnetic circuits and induced emf).
the gated-logic array, the transformer magnetic circuit, the op-amp band-pass Bode question, the RC transient and the parallel ac network as printed in December 2014; and the induction-motor slip / speed-torque question as printed in December 2016. The full working is transcribed in place below rather than cross-referenced, so this paper stands on its own as a study document.
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 supplies exactly six 2-input NOR gates and nothing else — no inverters, no complemented inputs. Part II supplies the six-gate array of Figure 2, whose gates are drawn with the flat-backed AND body and an output bubble, i.e. NAND gates: $G_1$ takes $K_0$ and $A$; $G_2$ takes $B$ and $K_1$; $G_3$ takes the outputs of $G_1$ and $G_2$; $G_4$ takes $G_1$ and $G_3$; $G_5$ takes $G_3$ and $G_2$; and $G_6$ takes $G_4$ and $G_5$ to produce $C$.
Find. The exclusive-OR truth table and Boolean expression, a NOR-only gate array realising it within the six-gate budget, and then the general expression for $C$, its DeMorgan reduction, and its four reduced forms over the control pair $(K_0,K_1)$.
The exclusive-OR asserts its output when the two inputs disagree:
| $A$ | $B$ | $Y=A\oplus B$ | Comment |
|---|---|---|---|
| 0 | 0 | 0 | inputs agree |
| 0 | 1 | 1 | inputs disagree |
| 1 | 0 | 1 | inputs disagree |
| 1 | 1 | 0 | inputs agree |
Reading the two rows that produce a 1 gives the sum-of-products form directly:
$$\boxed{\;Y=A\oplus B=\bar{A}B+A\bar{B}\;}$$Approach for the realisation. The NOR gate is functionally complete, so the design reduces to expressing $Y$ in a form built only from ORs and complements. Manipulate the sum of products into a NOR-of-NORs shape and read the gates off.
It is worth noting that the examiner's allowance of six gates is generous by exactly one. A candidate who stops at $G_4$ has built the exclusive-NOR and has answered the wrong question; a candidate who uses a sixth gate has almost certainly built a redundant inverter somewhere upstream. Five is the correct count for a NOR-only exclusive-OR with true inputs only.
[Figure not reproduced: Figure 2 redrawn with the internal nodes labelled. The gates are NAND gates. $G_1$ and $G_2$ gate each data input with its own control bit; $G_3$–$G_6$ form the classic four-NAND exclusive-OR acting on those two gated signals. See the official exam paper.]
[a] General expression. Write each gate output in turn, working left to right:
[b] DeMorgan reduction. The nested form above is unusable as it stands, so peel it apart one layer at a time.
[c] The four control combinations. With the expression in the compact form $C=(AK_0)\oplus(BK_1)$, each control setting simply gates one operand to zero, and $X\oplus 0 = X$ collapses the result immediately.
| $K_0$ | $K_1$ | Expression | Simplest form | Function realised |
|---|---|---|---|---|
| 0 | 0 | $0\oplus 0$ | $C=0$ | output forced low |
| 0 | 1 | $0\oplus B$ | $C=B$ | pass $B$ (input $A$ blocked) |
| 1 | 0 | $A\oplus 0$ | $C=A$ | pass $A$ (input $B$ blocked) |
| 1 | 1 | $A\oplus B$ | $C=A\oplus B$ | exclusive-OR of the two data inputs |
All sixteen input combinations of $(A,B,K_0,K_1)$ were evaluated gate-by-gate against the reduced expression and agree exactly, which is the safest check available on a hand reduction of this size. Functionally the circuit is a small programmable logic cell: the two control bits select between a constant zero, either data input passed straight through, and the exclusive-OR of the pair. That is precisely the arithmetic primitive needed at the heart of a one-bit adder/subtractor slice, where the control bits choose whether an operand participates.
| Item | Result |
|---|---|
| Part I: XOR expression | $Y=\bar{A}B+A\bar{B}$ |
| Part I: NOR-only realisation | 5 gates — $G_1=\overline{A+B}$, $G_2=\overline{A+G_1}$, $G_3=\overline{B+G_1}$, $G_4=\overline{G_2+G_3}$, $G_5=\overline{G_4+G_4}$ (one gate spare) |
| Part II [a]: general expression | $C=\overline{G_4G_5}$ with $G_4=\overline{G_1G_3}$, $G_5=\overline{G_3G_2}$, $G_3=\overline{G_1G_2}$, $G_1=\overline{AK_0}$, $G_2=\overline{BK_1}$ |
| Part II [b]: simplified | $C=(A K_0)\oplus(B K_1)$ |
| Part II [c]: $K_0K_1=00$ | $C=0$ |
| Part II [c]: $K_0K_1=01$ | $C=B$ |
| Part II [c]: $K_0K_1=10$ | $C=A$ |
| Part II [c]: $K_0K_1=11$ | $C=A\oplus B$ |