Beruflich Dokumente
Kultur Dokumente
Spring 2010
You have 50 minutes to complete this exam. It is closed book, closed notes.
Put away your cell phones, programmable watches, and calculators. Show
all of your work and circle your final answer (additional paper will be
provided if necessary) and make sure it is organized and readable. Review
the exam before you begin.
1/5
EE 280-001 Ashley Exam 2 Name_________________
Spring 2010
2) (10 points) ADDITION/SUBTRACTION Perform addition (part d – subtraction)
of the following 5-bit 2’s complement numbers. Check and note whether an overflow
has occurred (put a YES besides “Overflow=” if an overflow occurred, otherwise put a
NO). Additionally write down the result in decimal (i.e. base 10) for values that
didn’t overflow.
a) 11110 b) 10100
+00010 Overflow = +01111 Overflow =
c) 00101 d) 00101
+01100 Overflow = - 11001 Overflow =
3) (10 points) RIPPLE CARRY ADDER – First derive and draw the circuit diagram
for a 1-bit adder (using any gates you like). Then draw a 4-bit 2’s complement adder
(subtraction not required) labeling all of your inputs and outputs accordingly. Make
sure to include overflow detection. You can use a block diagram approach for drawing
the adder circuit.
Cin X Y | S | Cout
----------------------
0 0 0 | 0 | 0
0 0 1 | 1 | 0
0 1 0 | 1 | 0
0 1 1 | 0 | 1
1 0 0 | 1 | 0
1 0 1 | 0 | 1
1 1 0 | 0 | 1
1 1 1 | 1 | 1
2/5
EE 280-001 Ashley Exam 2 Name_________________
Spring 2010
4) (10 points) MULTIPLICATION. Perform the following binary multiplications of
unsigned numbers. Show and check your work. Determine the answer for each in
binary and in decimal.
a) 1010 b) 10110
* 0110 * 0100
5) VERILOG (5 points) a)Given inputs (v,w,x,y,z) and output (f) write a Verilog
module Vprob that implements the following function. AND = & , OR = | , NOT = ~
f(v, w, x, y, z) v xz v( wz wy)
module Vprob(v,w,x,y,z,f);
endmodule
3/5
EE 280-001 Ashley Exam 2 Name_________________
Spring 2010
f ( w, x, y, z ) y z w xz wxz xz
7) (10 points) ANALYSIS. Consider the following circuit. What are the values of
the outputs (f,g,h,i) of this circuit given the following input valuations.
1
1 w0
0 y0 f
1 w1
y1 g
y2
h
1 EN y3
i
S E M
Sign
0 denotes+ 8-bit 23 bits of mantissa
1 denotes– excess-127
exponent
ANSWER = __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ ……
S E M
4/5
EE 280-001 Ashley Exam 2 Name_________________
Spring 2010
9) (5 points) CARRY LOOKAHEAD ADDER. What is the primary advantage of
the Carry Lookahead adder over the Ripple Carry Adder?
10) (5 points) DECODERS AND ENCODERS. What does one-hot encoding mean
within the context of the devices covered in Chapter 6 of the textbook?
12) (5 points) BUILD A MUX. Derive a minimum cost 2:1 Multiplexer circuit using
only NOR gates given the following truth truth table.
s w0 w1 | f
----------------------
0 0 0 | 0
0 0 1 | 0
0 1 0 | 1
0 1 1 | 1
1 0 0 | 0
1 0 1 | 1
1 1 0 | 0
1 1 1 | 1
5/5