InClassActivity01 Sol
InClassActivity01 Sol
InClassActivity01 Sol
4. (5 points) If you add 5610, and –2410 using 8-bit two’s complement arithmetic, do you get an overflow?
Nope – we can never get an overflow adding numbers with opposite signs.
5. (5 points)What is the result of performing an arithmetic right shift on the 8-bit number representing -2410 ?
Answer: In an arithmetic right shift, we shift in the sign bit on the left. The result is about half the original
number, and has the same sign. Result 111101002= -1210, approximately half of –24, and with the same sign,
like we expect.
b. (5 points) Use Boolean algebra to find the equivalent canonical sum-of-products expression:
c. (5 points) Use Boolean algebra to find the equivalent canonical product of sums expression:
f POS ( x, y , z ) = (x + y + z)(x + y + z)(x + y + z)(x + y + z)
d. (5 points) Simplify the above function, into a minimal sum of products form:
ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2014 Page 1 of 3
f min ( x, y, z ) = xz + x y D. (50 points) Logic Systems
(10 points) A NAND latch is constructed as shown. Each gate has a unit delay.
z
m y
0
0/0 1/1
1
1/0
0 1
00
00 01
01
0
0 1
1
0
1 1
0
10
10 11
11
0
0 0
0
0
On the left is a Mealy machine solution, and on the right is a Moore machine.
ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2014 Page 2 of 3
In the Mealy machine, the outputs are indicated on the arrows as input/output.
In a Moore machine, the outputs are associated with each state, rather than with the transitions. Each
circle contains the state and the output.
Grading policy: 8 pts for trying, 12 pts for partial answer, 20 pts full answer.
4. (10 points) If the input x to the following circuit is available at time t=0, and the gate delay is 1ns,
at what time is the output “f” ready? Answer: 3 gate delays (we follow the longest path from input to
output). Grading: 4 pts for trying, 10 pts for correct answer.
x
g
CLOCK f
h
0
ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2014 Page 3 of 3