Practice Problems - 1: Department of Electrical Engineering
Practice Problems - 1: Department of Electrical Engineering
Practice Problems - 1
(Much of this is based on what you studied in ESC 201A)
3. What is the largest decimal number that you can represent using 8 bits? How many bits are
required to represent decimal numbers less than or equal to 106?
4. Determine the number system in which the following arithmetic operations have been carried out.
Give justifications for your answer
a. 24 + 17 = 40 b. 22 x 5 = 132
5. Obtain 1’s and 2’s complement of the following binary numbers
a. 10000000 b. 10101010
c. 01110101 d. 10011100
6. (a) What is the minimum number of bits required to represent -32 in 2’s complement form?
(b) 11011111 is a number in 2’s complement. Is it positive or negative? What is its magnitude?
7. Carry out the following four operations using 8bit 2’s complement representation:
24 32
Verify that operations have been properly carried out.
8. Draw the circuits which will implement the following functions using CMOS technology.
Assume the true and complement of the independent variables are available. [In CMOS technology
digital circuit implementation, the ‘pull down circuit’ consists of NMOSFETs and ‘pull up circuit’
consists of PMOSFETs.]
10. Design a half subtractor circuit with inputs x and y and outputs Diff. and Bout. The circuit
subtracts the bits x-y and places the result in Diff. and borrow in Bout.
11. Show that the Boolean expression x x. y is equivalent to x y using basic postulates and
theorems of Boolean algebra
12. Reduce the following expressions to a minimum number of literals.
a. f ( x y z ).( y z ) b. f ( x y ).( y x )
13. Obtain the truth table for the following function: (x.y+z)(y+x.z) and write it as sum of products
(SOP) and product of sums (POS).
14. Implement an 8 input OR gate using only 2 input AND and 2 input OR gates.
15. Show that you can implement 2 input AND, 2 input OR and NOT gates using only 2 input
NAND gates. Similarly show that you can implement 2 input AND, 2 input OR and NOT gates
using only 2 input NOR gates.
16. Implement a 2-input exclusive OR gate with only 2 input NAND gates .
17. Simplify the following 4-variable functions into sum-of-products form using K-map.
a. (1,3,5,7,13,15) b. (1,3,6,9,11,12,14)
19. Simplify the following expressions into sum-of-products form using the don’t care conditions
into account.
20. For the Boolean expression given below, implement it using two levels of logic first as AND-OR
and then as OR-AND.
F (a, b, c, d ) (ab cd )(ab cd ac )
21. Implement the following expression using only 2-input NAND gates and then repeat the problem
with only 2 input NOR gates.
F (a, b, c, d ) ab abc abcd