QUESTION 1 (30 marks)
a)Convert the following 5-bit two's complement readings to decimal. Show your working. (i) 10110₂ (ii) 01001₂ (6 marks)
b)Using 5-bit two's complement, add 10110₂ and 00111₂. Show the binary addition step-by-step, and show whether an overflow occurs. (5 marks)
c)Convert the following decimal numbers into 8421 BCD: (i) 479 (ii) 823 (6 marks)
d)Explain one advantage of using BCD for numerical displays compared to pure binary. (2 marks)
e)Convert the binary number 110101111010₂ [?] to hexadecimal. Show your grouping. (3 marks)
f)Generate the 4-bit Gray code sequence starting from 0000 up to 1111 (all 16 values). (8 marks)
QUESTION 2 (10 marks)
a)Convert the Boolean expression below to a circuit diagram using only AND, OR and NOT gates:
b)Develop the circuit diagram for the expression below. Label all gates and connections.
c)Explain why the expression F = A(A' + B) is not in standard SOP or POS form.
d)Rewrite it in both minimum SOP and minimum POS form.
QUESTION 3 (10 marks)
a)Derive a truth table for F(A, B, C) = A'B + AC' + BC and G(A, B, C) = (A' + B)(A + C'). (8 marks)
b)Justify the equivalence of F and G by comparing their truth tables or by using Boolean algebra. (2 marks)
QUESTION 4 (10 marks)
a)Using truth tables, prove that X + YZ = (X + Y)(X + Z). (4 marks)
b)Derive the SOP expression from the truth table shown in Table 1. (3 marks)
c)Derive the POS expression from the same truth table. (3 marks)
Table 1
| A | B | C | F |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
QUESTION 5 (10 marks)
a)Plot the following POS function on a 4-variable K-map: (2 marks)
b)Circle the largest possible loops for POS minimization. (2 marks)
c)Write the minimum POS expression. (3 marks)
d)Convert your minimum POS expression to an equivalent minimum SOP expression using Boolean algebra or by re-plotting as SOP. (3 marks)
QUESTION 6
A safe has five locks v, w, x, y and z, all of which must be unlocked for the safe to open. The keys to the locks are distributed among five executives in the following manner: A has keys for locks v and x, B has keys for locks v and y, C has keys for locks w and y, D has keys for locks x and z, and E has keys for locks v and z.
a. Determine the minimum number of executives required to open the safe.
b. Find all the combinations of executives that can open the safe.
c. Locate the "essential executive" without whom the safe cannot be opened.
QUESTION 7 (10 marks)
Design a circuit that can be built using AOI logic and outputs 1 when a 4-bit hexadecimal number is an odd number from 0 to 9 only.

