Blog
DLD Final Past Paper 2013 – UOS Main Campus
University of Sargodha main campus (Department of Computer Science and IT) Digital Logic Design final paper held on 13 June 2013 (100 marks, 2 hours). Retyped from the original paper, with solved answers below.
X’ means the complement of X.
Solved answers
Q1 (a) – Simplify with don’t cares (15)
F = B’C’D’ + BCD’ + ABCD’ → minterms (0, 8), (6, 14), 14 → F = Σ(0, 6, 8, 14). d = B’CD’ + A’BC’D → d = Σ(2, 5, 10).
K-map: the four corners 0, 2, 8, 10 (2 and 10 are don’t cares) give B’D’; cells 2, 6, 10, 14 (column CD = 10) give CD’. Minterm 5 is not needed.
F = B’D’ + CD’ (= D'(B’ + C)).
Q1 (b) – Full adder from two half adders (10)
First half adder: inputs x, y → S₁ = x ⊕ y, C₁ = xy. Second half adder: inputs S₁, z → S = S₁ ⊕ z = x ⊕ y ⊕ z, C₂ = (x ⊕ y)z. OR gate: C = C₁ + C₂ = xy + (x ⊕ y)z, which equals the full-adder carry xy + xz + yz.
Q2 (a) – Tabulation (Quine–McCluskey) for Σ(0, 1, 2, 8, 10, 11, 14, 15) (15)
Group by number of 1s: 0 (0000); 1, 2, 8 (one 1); 10 (two 1s); 11, 14 (three 1s); 15 (four 1s).
Combining: (0,1) 000−, (0,2) 00−0, (0,8) −000, (2,10) −010, (8,10) 10−0, (10,11) 101−, (10,14) 1−10, (11,15) 1−11, (14,15) 111−. Next step: (0,2,8,10) −0−0, (10,11,14,15) 1−1−.
Prime implicants: 000− (A’B’C’), −0−0 (B’D’), 1−1− (AC). All three are essential.
F = A’B’C’ + B’D’ + AC.
Q2 (b) – Four gates only, NAND (10)
F = w’xz + w’yz + x’yz’ + wxy’z → Σ(2, 3, 5, 7, 10, 13), with d = wyz = Σ(11, 15). Using the don’t cares, F = xz + x’y.
NAND implementation with four gates: gate 1 makes x’ (NAND x, x); gate 2 = (x·z)’; gate 3 = (x’·y)’; gate 4 = NAND of gates 2 and 3 = xz + x’y. Only normal inputs are needed because x’ is generated by gate 1.
Q3 (a) – 8, 4, −2, −1 code to BCD (20)
Code words for 0–9: 0000, 0111, 0110, 0101, 0100, 1011, 1010, 1001, 1000, 1111. The other six combinations (0001, 0010, 0011, 1100, 1101, 1110) are don’t cares. With inputs A B C D (weights 8, 4, −2, −1) and BCD outputs w x y z:
- w = AB + AC’D’
- x = B’C + B’D + BC’D’
- y = C ⊕ D (= CD’ + C’D)
- z = D
Check: input 1011 (= 8 − 2 − 1 = 5) → w = 0, x = 1, y = 0, z = 1 → 0101 = 5 ✓.
Q3 (b) – XOR and AND implementation (5)
F = AB’CD’ + A’BCD’ + AB’C’D + A’BC’D = (AB’ + A’B)(CD’ + C’D) = (A ⊕ B)(C ⊕ D): two XOR gates feeding one AND gate.
Q4 – Carry look-ahead (10+15)
- C₂ = G₁ + P₁C₁
- C₃ = G₂ + P₂C₂ = G₂ + P₂G₁ + P₂P₁C₁
- C₄ = G₃ + P₃G₂ + P₃P₂G₁ + P₃P₂P₁C₁
- C₅ = G₄ + P₄G₃ + P₄P₃G₂ + P₄P₃P₂G₁ + P₄P₃P₂P₁C₁
(b) Diagram: each carry is a two-level AND–OR circuit. For C₂: one AND (P₁C₁) and an OR with G₁. For C₃: ANDs P₂G₁ and P₂P₁C₁, OR with G₂. For C₄: ANDs P₃G₂, P₃P₂G₁, P₃P₂P₁C₁, OR with G₃. All carries are produced at the same time (two gate delays), which is why it is called look-ahead.
