22-Elec-A4 Digital Systems and Computers · December 2016
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Paper format. National Exams, December 2016 — 07-Elec-A4 Digital Systems & Computers. Three hours, closed book, one approved Casio or Sharp calculator. Six questions are printed and any five constitute a complete exam; every question is worth 12 points with the per-part breakdown printed on page 1. A flip-flop excitation table and a sheet of Boolean identities are attached as page 6. All six questions are solved below so the set works as a complete study resource.
Reference texts.
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. Four output columns as functions of $(X,Y,Z)$. Find. minimal SoP for each output and the better programmable-logic architecture. Approach. Map each column separately, then compare the number of distinct product terms against the number of term instances to decide PAL vs PLA.
Minimized outputs (part a). On-sets: $A=\sum m(1,3,4,7)$, $B=\sum m(0,3,5,6,7)$, $C=\sum m(0,2,3,4,6)$, $D=\sum m(2,3,4,5,7)$ (minterm index $=4X+2Y+Z$). The four maps give:
$$A=\overline{X}Z+YZ+X\overline{Y}\,\overline{Z}\qquad B=\overline{X}\,\overline{Y}\,\overline{Z}+XY+XZ+YZ$$$$C=\overline{Z}+\overline{X}Y\qquad D=\overline{X}Y+X\overline{Y}+XZ$$
PAL vs PLA (part b). List the product terms used by all four outputs and count sharing:
| Output | Product terms |
|---|---|
| $A$ | $\overline{X}Z$, $YZ$, $X\overline{Y}\,\overline{Z}$ |
| $B$ | $\overline{X}\,\overline{Y}\,\overline{Z}$, $XY$, $XZ$, $YZ$ |
| $C$ | $\overline{Z}$, $\overline{X}Y$ |
| $D$ | $\overline{X}Y$, $X\overline{Y}$, $XZ$ |
There are 12 term instances but only 9 distinct product terms: $YZ$ is shared by $A$ and $B$, $XZ$ by $B$ and $D$, and $\overline{X}Y$ by $C$ and $D$ — three sharing events. A PLA, whose AND array is fully programmable and shared by every OR output, exploits this reuse: 9 AND terms feed all four sums. A PAL dedicates a fixed block of AND terms to each output and cannot share, so it would need all 12 terms (and any output limited to fewer product terms per OR could overflow). Choose the PLA — the shared product terms $YZ,XZ,\overline{X}Y$ make the shared AND plane the economical choice.
PLA implementation. Program the AND plane with the 9 distinct terms (1 = true input, 0 = complemented input, – = not connected) and connect each OR output to the terms it uses (✓):
| # | Term | X | Y | Z | A | B | C | D |
|---|---|---|---|---|---|---|---|---|
| 1 | $\overline{X}Z$ | 0 | – | 1 | ✓ | |||
| 2 | $YZ$ | – | 1 | 1 | ✓ | ✓ | ||
| 3 | $X\overline{Y}\,\overline{Z}$ | 1 | 0 | 0 | ✓ | |||
| 4 | $\overline{X}\,\overline{Y}\,\overline{Z}$ | 0 | 0 | 0 | ✓ | |||
| 5 | $XY$ | 1 | 1 | – | ✓ | |||
| 6 | $XZ$ | 1 | – | 1 | ✓ | ✓ | ||
| 7 | $\overline{Z}$ | – | – | 0 | ✓ | |||
| 8 | $\overline{X}Y$ | 0 | 1 | – | ✓ | ✓ | ||
| 9 | $X\overline{Y}$ | 1 | 0 | – | ✓ |
This is a 3-input, 9-product-term, 4-output PLA; the OR plane carries 12 connections, one per term instance counted above.
| Output | Minimal SoP |
|---|---|
| $A$ | $\overline{X}Z+YZ+X\overline{Y}\,\overline{Z}$ |
| $B$ | $\overline{X}\,\overline{Y}\,\overline{Z}+XY+XZ+YZ$ |
| $C$ | $\overline{Z}+\overline{X}Y$ |
| $D$ | $\overline{X}Y+X\overline{Y}+XZ$ |
| Architecture | PLA (9 shared AND terms vs 12 in a PAL) |