NivaarExam PrepOfficial exam papers ↗

22-Elec-A4 Digital Systems and Computers · December 2018

Question 3 of 6: K-map minimization and PAL/PLA choice

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

Notes on this paper

22-Elec-A4 Digital Systems & Computers — 2018-Dec (Worked Solutions)

National Exams — December 2018 · 16-Elec-A4 Digital Systems & Computers. Closed book, 3 hours. Six questions, 12 marks each; the rubric requires any five, but all six are solved here as a study resource. Approved Casio/Sharp calculator permitted. A Boolean-identity table and the flip-flop excitation table are supplied with the paper and are used where needed.

Reference texts. M. M. Mano & M. D. Ciletti, Digital Design (6th ed.) — Boolean minimization, NAND/NOR realizations, K-maps, synchronous counters; J. F. Wakerly, Digital Design: Principles and Practices (5th ed.) — counters, PAL/PLA devices; C. Hamacher, Z. Vranesic, S. Zaky & N. Manjikian, Computer Organization and Embedded Systems (6th ed.) — CPU registers, endianness, stacks, parallel I/O; Motorola M68HC11 Reference Manual — big-endian storage, PUSH semantics, Port B addressing.

Question 3: K-map minimization and PAL/PLA choice (12 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. Four output functions of $X,Y,Z$: $A=\Sigma m(1,3,4,7)$, $B=\Sigma m(0,3,5,6,7)$, $C=\Sigma m(0,2,3,4,6)$, $D=\Sigma m(2,3,4,5,7)$ (minterm index $m=4X+2Y+Z$).

Find. A minimal SoP for each output and a reasoned PAL-vs-PLA choice.

Approach. Plot each output on its own 3-variable K-map, take the largest legal groups, then count how many distinct product terms the four functions need versus how many term instances a per-output (PAL) array would replicate.

  1. Output A. Groups $\overline{X}Z$ (m1,m3), $YZ$ (m3,m7) and the isolated $X\overline{Y}\,\overline{Z}$ (m4): $$A=\overline{X}Z+YZ+X\overline{Y}\,\overline{Z}.$$
    XYZ00011110010m01m10m21m31m40m50m61m7X'ZYZXY'Z'A = X'Z + YZ + XY'Z'
    K-map for $A$.
  2. Output B. The three majority pairs $XY,XZ,YZ$ cover m3,m5,m6,m7 and the isolated $\overline{X}\,\overline{Y}\,\overline{Z}$ covers m0: $$B=XY+XZ+YZ+\overline{X}\,\overline{Y}\,\overline{Z}.$$
    XYZ00011110011m00m10m21m30m41m51m61m7XYXZYZX'Y'Z'B = XY + XZ + YZ + X'Y'Z'
    K-map for $B$ (majority of $X,Y,Z$ plus the all-zero cell).
  3. Output C. The whole $Z=0$ column is 1 (m0,m2,m4,m6), and $\overline{X}Y$ picks up m3: $$\boxed{C=\overline{Z}+\overline{X}Y.}$$
    XYZ00011110011m00m11m21m31m40m51m60m7Z'X'YC = Z' + X'Y
    K-map for $C$.
  4. Output D. $\overline{X}Y$ (m2,m3), $X\overline{Y}$ (m4,m5) and $XZ$ (m5,m7): $$D=\overline{X}Y+X\overline{Y}+XZ.$$
    XYZ00011110010m00m11m21m31m41m50m61m7X'YXY'XZD = X'Y + XY' + XZ
    K-map for $D$.
  5. (b) PAL vs PLA. The four expressions use $3+4+2+3=12$ product-term instances, but only $9$ are distinct because $YZ$ is shared by $A,B$; $XZ$ by $B,D$; and $\overline{X}Y$ by $C,D$. A PLA has a single programmable AND array that can share those three terms across outputs, needing only $\boxed{9}$ product lines; a PAL gives each output its own fixed AND group (no sharing), so it would spend $12$ terms and must also budget the widest output ($B$, 4 terms) per group. With three genuinely shared terms, the PLA is the more economical choice here.
Question 3 — minimized outputs
OutputMinimal SoPTerms
$A$$\overline{X}Z+YZ+X\overline{Y}\,\overline{Z}$3
$B$$XY+XZ+YZ+\overline{X}\,\overline{Y}\,\overline{Z}$4
$C$$\overline{Z}+\overline{X}Y$2
$D$$\overline{X}Y+X\overline{Y}+XZ$3
DevicePLA — 9 shared product terms vs 12 for a PAL—