23-Mechatronics-A3 Digital Logic and Embedded Systems · Undated paper
Question 3 of 6: K-map minimisation and PLA implementation of a multi-output circuit
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
Paper format. This paper's cover page prints the exam code
18-Elec-A4, Digital Systems and Computers (National Examinations,
May 2018), a three-hour closed-book exam with one approved calculator model permitted. The cover page states that FIVE of the SIX printed questions constitute a complete exam paper; all six are worked here, each worth 12 marks per the page-1 marking-scheme table.
Reference texts. M.M. Mano & M.D. Ciletti, Digital
Design, 6th ed. (K-map minimisation and static hazards Ch.3; sequential
circuit analysis/design and JK excitation Ch.5–6; PLA/PAL Ch.7); C. Hamacher,
Z. Vranesic, S. Zaky & N. Manjikian, Computer Organization and Embedded
Systems, 6th ed. (address decoding and memory-mapped I/O Ch.1, 8); Motorola/
Freescale, M68HC11 Reference Manual (accumulator-A load/store timing,
port I/O).
Questions are numbered here by matching each question's sub-part count and mark split to the marking scheme on page 1: Q1 (3+3+3+3) is the PoS/SoP K-map question on page 2; Q2 (3+3+3+3) is the JK-flip-flop counter question on page 2, whose printed bullet (c) merges two 3-mark deliverables (K-map and circuit drawing) into one line, split here into (c) and (d) to match the mark count; Q3 (6+6) is the truth-table/PLA question on page 3; Q4 (3+4+3+2) is the RS/T flip-flop question on page 3; Q5 (3+3+3+3) is the question on page 4; Q6 (4.5+4.5+3) is the question on page 5. The flip-flop excitation tables and Boolean identities on page 6 are used throughout as needed.
Question 3: K-map minimisation and PLA implementation of a multi-output circuit [6+6 = 12]
Find. Minimal SoP for each of $W,X,Y,Z$; a PLA implementation, justified against the PAL alternative.
Approach. K-map each output separately over $A,B,C$ (Gray-code $2\times4$ maps), then compare the four minimal covers side-by-side: any product term reused by more than one output is the deciding factor between a PLA (shared, programmable OR plane) and a PAL (fixed OR plane, no sharing).
(a) K-map for $W$. Minterms $\Sigma(4,5,6,7)$ — the four cells where $A{=}1$ form a full quad regardless of $B,C$: $$\boxed{W=A}.$$
K-map for $X$. Minterms $\Sigma(3,4,5,6)$. Groups: $\{4,5\}\Rightarrow A\bar B$; $\{4,6\}\Rightarrow A\bar C$; $\{3\}$ has no adjacent 1 to pair with $\Rightarrow \bar ABC$. $$\boxed{X=A\bar B+A\bar C+\bar ABC}.$$
K-map for $Y$. Minterms $\Sigma(2,3,4,5)$. Groups: $\{2,3\}\Rightarrow \bar AB$; $\{4,5\}\Rightarrow A\bar B$ (this pair is independent of $C$ in both groups, so $Y$ does not depend on $C$ at all — $Y$ is exactly the XOR of $A$ and $B$). $$\boxed{Y=A\bar B+\bar AB}.$$
(b) PLA vs PAL. Collecting the distinct product terms used above: $\{A,\ A\bar B,\ A\bar C,\ \bar ABC,\ \bar AB,\ \bar AC,\ A\bar B\bar C\}$ — 7 distinct terms, but $A\bar B$ is reused by both $X$ and $Y$, and $\bar AB$ is reused by both $Y$ and $Z$. A PAL has a programmable AND plane but a FIXED OR plane, so each output's OR gate can only draw on its own dedicated bank of AND rows — a shared term must be physically duplicated once per output that needs it (9 total AND rows: $1+3+2+3$ for $W,X,Y,Z$ with no reuse). A PLA has a programmable OR plane as well, so a shared product line is computed once and fanned into every output that needs it (7 total AND rows). Since genuine sharing exists here ($A\bar B$, $\bar AB$), the PLA is the more area-efficient choice. $$\boxed{\text{PLA: 7 AND-plane rows} < \text{PAL: 9 AND-plane rows}}.$$
Output
Minimal SoP
$W$
$A$
$X$
$A\bar B+A\bar C+\bar ABC$
$Y$
$A\bar B+\bar AB$
$Z$
$\bar AB+\bar AC+A\bar B\bar C$
Architecture
PLA (7 AND rows, 2 shared terms) over PAL (9 rows)