Professional Documents
Culture Documents
There are four Questions in the booklet each has several parts, please answer all parts of the 4 questions to
the best of your ability.
Notes
1. This booklet contains (12) pages including this one. Make sure you have all these pages
2. Closed Book Examination
3. Programmable calculator not allowed
4. Do not take the staple out. The exam booklet must remain intact
5. The cheating penalty will be “F” in the exam
Good Luck
Page 1 of 12
Question 1: multiple choices (25 points) Select the one best correct answer and give your
justification when asked for. 2.5 points for each question, 1 point for the justification
Justify: ______________________________________________________________________
3. What is the two input logic gate that gives 1 when the two inputs are equal and zero when the two
inputs are different?
a) NOR c) NAND
b) NXOR d) XOR
5. We want to design a logic system that opens a door. The door opens when it receives 1 from the
logic system. The logic system is connected to two buttons. Each button gives 0 when it is pushed.
When both buttons are pushed together, the door opens. If you were to use only one logic gate to
build this system, which one would you use?
x y x (selected gate) y
a) AND c) XOR 0 0
b) OR d) NOR 0 1
1 0
1 1
Justify your answer by filling the truth table to the left using the selected
gate.
Page 2 of 12
6. A researcher is performing an experiment and has output voltages falling between -5 and 6 volts.
What is the size and type of the register he should use?
a) 3 bits signed register c) 3 bits unsigned register
b) 4 bits signed register d) 4 bits unsigned register
Justify: ____________________________________________________________
Justify: ______________________________________________________________
Justify: ______________________________________________________________
Justify: ______________________________________________________________
10. The output will be a Zero for any case when one or more inputs are zero in a(n)
a. OR gate c. AND gate
b. NOT gate d. NAND gate
Justify: ______________________________________________________________
Page 3 of 12
Question 2: Boolean algebra (20 points)
Page 4 of 12
3- (10 points) Consider the function
f=w’x’y + x’y’z’ + w’xy’z’ + x’y’z + w’y
a. Reduce f to 3 terms, 6 literals using algebraic manipulation (5 points)
b. Construct the KMAP of f (3 points) and prove the answer of part a (5 points)
Page 5 of 12
Question 3: K-Map and function implementation (30 points)
1- A circuit that controls a given digital system has three inputs: x1, x2, and x3. It has to recognize
three different conditions:
• Condition A is true if x3 is true and either x1 is true or x2 is false
• Condition B is true if x1 is true and either x2 or x3 is false
• Condition C is true if x2 is true and either x1 is true or x3 is false
The control circuit must produce an output of 1 if at least two of the conditions A, B, and C are
true. The objective is to design the simplest circuit that can be used for this purpose.
f(A,B,C) =
Page 6 of 12
Page 7 of 12
2- Consider the following Boolean function:
Page 8 of 12
3- Design a control circuit for an irrigation system that reads the values from a humidity sensor, and
a temperature sensor. The humidity sensor gives 4 levels (0, 1, 2, and 3) where level 0 means that
the soil is totally dry and need watering while level 3 means that the soil is damped (wet). The
temperature sensor also provides 4 levels (0, 1, 2 and 3) where level 0 means low temperature and
level 3 means high temperature.
- If humidity is level 0, the system should work regardless of the temperature reading
- If humidity is level 1 or higher, the system works only if the temperature level is higher
than the humidity level.
a. How many input and how many output bits are needed for this system? Justify your
answer (3 points)
Page 9 of 12
c. Reduce the circuit using K-map
Page 10 of 12
Question 4: Binary, decimal and hexadecimal (25 points)
0 1 1 0 0 1 0 0
0 1 1 1 0 1 1 1
0 1 0 1 0 1 0 0
- 0 0 1 1 0 1 1 1
-25
18
-32
Page 11 of 12
4- (6 points) Consider a 5 bit register
5- Convert from the indicated base to Binary. Detail your steps. (3 points each)
41010 = __________________
A0B02HEX = _________________________________________
Page 12 of 12