Practice Problems
Practice Problems
Practice Problems
2. (a) Convert the following 8421 BCD numbers to their decimal equivalents
i. 010101000011
ii. 00110010.10010100
(b) Convert the following decimal numbers to their 8421 BCD equivalents
i. 99.9
ii. 21.001
3. Convert the following Gray code numbers to their straight binary equivalents:
(a) 0100
(b) 11111
(c) 10101
(d) 110011
4. Determine the Boolean function for the output F of the circuit in Fig.1. Obtain equivalent
circuit with fewer NOR gates.
1
Figure 1:
Figure 2:
7. Four large tanks at a chemical plant contain different liquids being heated. Liquid-level sensors
are being used to detect whenever the level in tank A or tank B rises above a predetermined
level. Temperature sensors in tanks C and D detect when the temperature in either of these
tanks drops below a prescribed temperature limit. Assume that the liquid-level sensor outputs
A and B are LOW when the level is satisfactory and HIGH when the level is too high. Also,
the temperature-sensor outputs C and D are LOW when the temperature is satisfactory and
HIGH when the temperature is too low. Design a logic circuit that will detect whenever the
level in tank A or tank B is too high at the same time that the temperature in either tank C
or tank D is too low.
8. Fig.3. shows the intersection of a main highway with a secondary access road. Vehicle-
detection sensors are placed along lanes C and D (main road) and lanes A and B (access
road). These sensor outputs are LOW (0) when no vehicle is present and HIGH (1) when a
vehicle is present. The intersection traffic light is to be controlled according to the following
logic:
(a) The east-west (E-W) traffic light with be green whenever both lanes C and D are occu-
pied.
(b) The E-W light with be green whenever either C or D is occupied but lanes A and B are
not both occupied.
(c) The north-south (N-S) light will be green whenever both lanes A and B are occupied but
C and D are not both occupied.
9. Design a logic circuit that controls an elevator door in a three-story building. The circuit
in Fig.4. has four inputs. M is a logic signal that indicates when the elevator is moving
2
Figure 3:
Figure 4:
(M=1) or stopped (M=0). F1, F2 and F3 are floor indicator signals that are normally LOW,
and they go HIGH only when the elevator is positioned at the level of that particular floor.
For example, when the elevator is lined up level with the second floor, F2=1 and F1=F3=0.
The circuit output is the OPEN signal, which is normally LOW and will go HIGH when the
elevator door is to be opened.
11. It is necessary to multiply two binary numbers, each two bits long, in order to form their
product in binary. Let the two numbers be represented by a1 , a0 and b1 , b0 , where subscript
0 denotes the least significant bit.
12. Show how a full-adder can be converted to a full-subtractor with the addition of one inverter
circuit.
3
Figure 5:
Figure 6:
15. Consider the multiplexer-based circuit illustrated in Fig.6.. Show how the function f =
w2 w3 + w1 w3 + w2 w3 can be implemented using only one instance of this circuit.
References:
• Brown, Stephen D. Fundamentals of digital logic with Verilog design. Tata McGraw-Hill
Education, 3rd edition (Chapter 3, 4 and 5)
• Mano, M. Morris. Digital logic and computer design. Pearson Education India, 2017.
• Tocci, Ronald J. Digital Systems: principles and applications. Pearson Education India, 1980.