Midterm Examination - Computer Architecture | ECS 154A, Exams of Computer Architecture and Organization

Material Type: Exam; Class: Computer Architecture; Subject: Engineering Computer Science; University: University of California - Davis; Term: Fall 2009;

Typology: Exams

Pre 2010

Uploaded on 07/30/2009

koofers-user-bgq
koofers-user-bgq ๐Ÿ‡บ๐Ÿ‡ธ

10 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
๎˜€ ๎˜€
1. (1pts) What is the Hamming distance between these two bit patterns: 1001 and 0101?
2. (3pts) How far apart must valid code words be to allow Single Error Detection (SED)?
Triple Error Correction (DEC)?
Quadruple (4) Error Correction Quintuple (5) Error Detection (QECQED)?
3. (3pts) Write the equation for the carry out of the 3rd adder cell in an ALU using carry-
lookahead, in terms of Pโ€™s and Gโ€™s.
4. (3pts) What is the difference between the Mealy and Moore models of sequential design?
5. (10pts) We know that a single cell of a ripple carry adder implements the functions
Cout =AB+ACin+BCin
and
Sum =A xor B xor Cin
Assuming you have made a 3-bit ripple carry adder using these cells, what is the worst case
path through the adder? In other words, how long does it take for the answer to be correct
in all cases? (I suggest you draw the circuit in order to make doing this problem easier).
Use the following delay values, and assume all input signals become valid at time 0:
2-input AND: 5 ns 2-input OR: 4 ns 2-input XOR: 8 ns
3-input AND: 6 ns 3-input OR: 7 ns 3-input XOR: 11 ns
pf3
pf4
pf5

Partial preview of the text

Download Midterm Examination - Computer Architecture | ECS 154A and more Exams Computer Architecture and Organization in PDF only on Docsity!

  1. (1pts) What is the Hamming distance between these two bit patterns: 1001 and 0101?
  2. (3pts) How far apart must valid code words be to allow Single Error Detection (SED)? Triple Error Correction (DEC)? Quadruple (4) Error Correction Quintuple (5) Error Detection (QECQED)?
  3. (3pts) Write the equation for the carry out of the 3rd adder cell in an ALU using carry- lookahead, in terms of Pโ€™s and Gโ€™s.
  4. (3pts) What is the difference between the Mealy and Moore models of sequential design?
  5. (10pts) We know that a single cell of a ripple carry adder implements the functions Cout = AB + ACin + BCin and Sum = A xor B xor Cin Assuming you have made a 3-bit ripple carry adder using these cells, what is the worst case path through the adder? In other words, how long does it take for the answer to be correct in all cases? (I suggest you draw the circuit in order to make doing this problem easier). Use the following delay values, and assume all input signals become valid at time 0: 2-input AND: 5 ns 2-input OR: 4 ns 2-input XOR: 8 ns 3-input AND: 6 ns 3-input OR: 7 ns 3-input XOR: 11 ns
  1. (25pts) Given the following table, draw the Karnaugh maps for Y1โ€™, Y2โ€™, and Y3โ€™ and Z in terms of X, Y1, Y2 and Y3, and then write minimum boolean equations for each.

Present Next State Output (Z) State X=0 X=1 X=0 X=

(Y1 Y2 Y3)^ (Y1โ€™ Y2โ€™ Y3โ€™)^ (Y1โ€™ Y2โ€™ Y3โ€™)

X

Y

Y

X

Y

Y

X

Y

Y

Y Y

Y

X

Y

Y

X

Y

Y

X

Y

Y

Y Y

Y

  1. (30 pts) You have been (re)hired by the country of Freedonia to design a vending machine to dispense stamps. In Freedonia there are only two types of coins, the 25 Somolian piece and the 10 Somolian piece. Stamps cost 34 Somolians (just like they do here.) Your machine does not give change. Only one coin can be deposited at a time. Let X1= Somolians and X2=10 Somolains. Z=1 indicates the machine should dispense a stamp ( bonus point for correctly identifying who is on the stamp! :-) Z=0 signals No Stamp. Draw the State Transistion Diagram (the circles and the arcs) for this finite state machine. Let S0=nothing deposited (the Start state). Once you have a state transition diagram, minimize the number of states necessary and then assign bit patterns to each state and write down the corresponding state transition table. Assume you are using a Mealy model. Label the transitions on the diagram using the following format:

Z

 X^^1 X^^2

So, for example,

would be used to indicate that a 10 Somolian piece was deposited, and the output at that point should be a 0.