COS 301 - COS343 Digital Systems Design Revision Questions
COS 301 - COS343 Digital Systems Design Revision Questions
REVISION QUESTIONS
COS 301/COS343 – DIGITAL SYSTEMS DESIGN
1. A four-input one-output combinational circuit is to be designed, such that the output F
is true if the input is divisible by a multiple of 4, 5, 6, or 7, with the exception of 15,
otherwise the output is false. Note: zero is not divisible by 4, 5, 6, or 7.
i. Draw a truth table to represent the algorithm.
ii. From the truth table obtain a simplified sum of products expression for F by
means of Boolean algebraic techniques.
iii. By means of K-map obtain a simplified SOP expression for F.
iv. Express F in product-of-sums form.
v. Design a logic circuit to implement F using basic gates.
Figure 1
5. Sketch a logic circuit for the expression A.C . (B + C ). B . Choice of logic symbols is
optional.
6. a.Write the truth table for the following functions:
i. F1 = A + A B
ii. F2 = AB + BC
iii. F3 = A + AB + AC
iv. F4 = AC + A B + B C
b. Write the minterms for the switching functions in Q6a (i-iv).
c. Write the maxterms for the switching functions in Q6a (i-iv).
d. State the de-Morgans theorem in words only.
8. A corporation having 100 shares entitles the owner of each share to cast one vote at
the shareholder’s meeting. Assume that A has 40 shares, B has 30 shares, C has 20
shares and D has 10 shares. A two-third majority is required to pass a resolution in a
shareholder’s meeting. Each of these four men has a switch which he closes to vote
YES and opens to vote NO for his percentage of shares. When the resolution is passed
the output, LED must be ON. (i) Draw a truth table for the output function. (ii) Using
K-map, write the minimal SOP expression (iii) Design a logic circuit to control the
voting. Use basic logic gates.
10. Simplify the function: F = m (0, 2, 3, 6, 7) + d (8, 10, 11, 15) and obtain (i) the
minimal SOP expression (ii) the minimal POS expression?
11. Show that the XOR operator is associative, so that
(A B) C = A (B C).
13. In the accompanying figure 2, the outputs of a full subtractor circuit is fed into a full
adder Circuit as shown with the following waveforms for X, Y, and Bin. Determine
the corresponding waveforms for D, Bout, S and Cout?
X D A S
Full Full Adder
Y Bout Bt
Subtractor
Bin Cout
Figure2 Cin
14. Simplify the function: F=m (1, 3, 7, 11, 15) + d (0, 2, 4, 5, 6) and obtain (i) minimal
SOP expression (ii) the minimal POS expression.
15. A simple security system for one door consists of a card reader and a keypad
(see figure3).
3
A
Card Reader B X To Door 1
Logic
C Y To Alarm 1
Circuit
D
Keypad
Figure 3
A person may open a particular door if he or she has a card containing the corresponding
code and enters an authorized keypad code for that card. The outputs from the card reader
are as follows:
A B
0 0 No card inserted
0 1 Valid code for door1
1 1 Invalid code
1 0 Invalid code
To unlock a door, a person must hold down the proper keys on the keypad and then insert the
card in the reader. The authorized keypad codes for door 1 are 10 and 11. If the card has an
invalid code or if the wrong keypad code is entered, the alarm will ring when the card is
inserted. If the correct keypad code is entered, the corresponding door will be unlocked when
the card is inserted. Draw the truth table, Karnaugh maps and write the Boolean expression
for this simple security system.
Your circuit’s inputs will consist of a card code AB, and a keypad code CD. The circuit will
have two outputs XY (X=1 door 1 will be opened, Y = 1 the alarm will sound).
16. For the input waveforms in figure 4, what logic circuit would generate the output
waveform shown?
Input B
Output X
18. A room has one lamp, L and two switches, S1 and S2. It is desired that the lamp be
capable of being switched ON and OFF from either switch. (i) Draw the truth table for
the operation and write the logic expression; (ii) Assume you now have switches, S1,
4
S2, and S3, develop the new truth table to switch the lamp, L ON and OFF from any
of the three switches; (iii) Draw the logic circuit for the three switch arrangement.
21. Design a divide- by- 5 synchronous counter. Use the JK flip flop.
22. Sketch a logic circuit for the expression: A.C . (B + C ). B . Choice of logic symbols
is optional.
23. Implement the function f(ABCD) = m (1, 5, 6, 7, 11, 12, 13, 15). Use basic gates.
24. Design a logic circuit whose input is a four - bit number and whose output is the 2’s
complement of the input number. Use basic gates.
25. Design a divide - by - 4 count- down counter using the JK flip- flops.
Xn Yn
Figure 5
+ an + bn 2
Figure 6
2
+ Sn
28.With the aid of a sketch of the structure of a CPU, Explain the following terms:
i) BIU (ii) EU (iii) Flags (iv) Physical Address
5
29 You have just been hired at the ANAMCO motors. Your job is to design a logic
circuit so that a car can be started only when the automatic transmission is in neutral or
park, and the driver’s seat belt is fastened. (i) Find the truth table, (ii) Write the Boolean
expression for the logic and (iii) Design the logic circuit using 2 – input NAND gate only
(iv) Design the logic circuit using basic gates only.
32Show by appropriate method that if the 0’s and 1’s in the truth table of an AND - gate
are interchanged, it becomes a truth table for an OR – gate.
34. The accompanying figure 7 shows the desired display of the decimal digits.
Draw the truth table for the desired display shown in figure 7 and write the Boolean
expression for a, b, c, d, e, f and g segments.
35Show that the following expression is a tautology: e = (pq) OR (p 7q).
36. Define the following terms: (i) Boolean algebra (ii) Gate (iii) Tautology (iv)
Combinational logic (v) sequential logic (vi) Karnaugh map (vii) Truth table (viii)
Minterm form (ix) maxterm form
37. State the De-Morgan’s theorem in words ONLY.
38. The accompanying figure 8 shows a simple sequential circuit.
S Yn
Xn n
Figure 8