Question 1 (30 marks)
1a. A full adder has three inputs A, B and a carry-in C, such that multiple adders can be used to add larger numbers. To remove ambiguity between the input and output carry lines, the carry-in is labelled Cᵢ or C_in while the carry-out is labelled C_out.
i. Construct the truth table for the full adder. (4 marks)
ii. Generate the expressions for S and C_in. (4 marks)
iii. Construct the circuit diagram for the generated expressions. (4 marks)
1b. Reduce the following expressions:
i. A[B + C′(AB + AC′)′] (2 marks)
ii. A + B[AC + (B + C′)D] (2 marks)
iii. (B + BC)(B + B′C)(B + D) (2 marks)
1c. Convert the following AOI logic to (i) NAND logic and (ii) NOR logic. (6 marks)
[Figure: inputs A–D; an AND gate (A, B) and an OR gate (C, D) feed a second AND gate, whose output is inverted and fed with A into a final OR gate.]
1d. Expand A(A′ + B)(A′ + B + C′) to maxterms and minterms. (4 marks)
Question 2 (10 marks)
2a. A lawn sprinkling system is controlled automatically by certain combinations of the following variables:
Season (S = 1 if summer; 0 otherwise); Moisture content of soil (M = 1 if high; 0 if low); Outside temperature (T = 1 if high; 0 if low); Outside humidity (H = 1 if high; 0 if low).
The sprinkler is turned on under any of the following circumstances:
- The moisture content is low in winter.
- The temperature is high and the moisture content is low in summer.
- The temperature is high and the humidity is high in summer.
- The temperature is low and the moisture content is low in summer.
- The temperature is high and the humidity is low.
Use a K-map to find the simplest possible logic expression involving the variables S, M, T and H for turning on the sprinkler system.
Question 3 (10 marks)
The waveforms A, B and C shown in Figure 1 are applied to a 3-input NAND gate.
i. Determine the output waveform X. (3 marks)
ii. Determine a new output waveform Y when X is applied to an inverter. (3 marks)
iii. Determine a new output waveform Z when X and Y are applied to an OR gate. (4 marks)
[Figure 1: HIGH/LOW waveforms A, B and C.]
Question 4 (10 marks)
4a. Determine the output waveform for the circuit shown in Figure 2 when the inputs A and B shown in Figure 3 are applied to it. (4 marks)
[Figure 2: A and B feed an OR gate (A + B); inverted A and B feed an AND gate (Ā·B̄); these feed a final gate giving Y = ĀB + AB̄ as labelled.]
[Figure 3: HIGH/LOW waveforms A, B, A + B and Ā·B̄.]
4b. Use mapping to reduce the following expressions and implement them in universal logic:
i. ∑m(0, 1, 2, 3, 5, 7, 8, 9, 10, 12, 13) (3 marks)
ii. ∏M(2, 8, 9, 10, 12, 13) (3 marks)
Question 5 (10 marks)
Five soldiers A, B, C, D and E volunteer to perform an important military task if the following conditions are satisfied:
-
Either A or B or both must go.
-
Either C or E but not both must go.
-
Either both A and C go or neither goes.
-
If D goes, then E must also go.
-
If B goes, then A and C must also go.
(a)Define the variables A, B, C, D and E so that an unprimed variable will mean that the corresponding soldier has been selected to go.
(b)Determine the expression which specifies the combinations of volunteers who can get the assignment.
Question 6 (10 marks)
A staircase light is controlled by two switches, one at the top of the stairs and the other at the bottom of the stairs.
i. Construct a truth table for the system.
ii. Write the logic equation in SOP form.
iii. Realize the circuit using AOI logic.
iv. Realize the circuit using a minimum number of NAND gates and NOR gates.
Question 7 (10 marks)
An air-conditioning unit is controlled by four variables: temperature T, humidity H, the time of the day D, and the day of the week W. The unit is turned on under any of the following circumstances:
-
The temperature exceeds 78 °F, and the time of the day is between 8 a.m. and 5 p.m.
-
The humidity exceeds 85%, the temperature exceeds 78 °F, and it is a weekend.
-
The humidity exceeds 85%, the temperature exceeds 78 °F, and the time of day is between 8 a.m. and 5 p.m.
-
It is Saturday or Sunday and the humidity exceeds 85%.
(a)Write a logic expression for controlling the air-conditioning unit.
(b)Simplify the expression obtained as far as possible.

