Docsity

Digital Electronics: Hamming Distance, Error Correction, Karnaugh Maps, Exams of Computer Architecture and Organization

Toggle sidebar
bg1
1. (1pts) What is the Hamming distance between these two bit patterns: 1101 and 0111?
2. (3pts) How far apart must valid code words be to allow Single Error Detection (SED)?
Triple Error Correction (TEC)?
Sextuple (6) Error Correction Seven-tuple (7) Error Detection (SECSED)?
3. (3pts) Write the equation for the carry out of the 5th adder cell in an ALU using carry-
lookahead, in terms of P’s and G’s.
4. (4pts) What is the difference between the Mealy and Moore models of sequential design?
5. (4pts) What is the difference between a Flip-Flop and a latch?
pf3
pf4
pf5

Partial preview of the text

Download Digital Electronics: Hamming Distance, Error Correction, Karnaugh Maps and more Exams Computer Architecture and Organization in PDF only on Docsity!

1. (1pts) What is the Hamming distance between these two bit patterns: 1101 and 0111?

2. (3pts) How far apart must valid code words be to allow Single Error Detection (SED)?Triple Error Correction (TEC)?Sextuple (6) Error Correction Seven-tuple (7) Error Detection (SECSED)?

3. lookahead, in terms of P’s and G’s.(3pts) Write the equation for the carry out of the 5th adder cell in an ALU using carry-

4. (4pts) What is the difference between the Mealy and Moore models of sequential design?

5. (4pts) What is the difference between a Flip-Flop and a latch?

6. (10 pts) What is the maximum clock frequency possible for the following circuit? (In otherwords, what is the maximum clock frequency that will still guarantee correct behavior?)Use the following delay values, and assume all input signals become valid at time 0:AND: 6 ns MUX: 8 ns Tprop: 9 ns Tsetup: 4ns Thold: 2ns

T Q T Q T Q

P

Clock

(^01) (^01) (^01)

Q

R

8. Unfortunately, the parts department just called and your company is completely out of JKflip-flops.instead. Show the resulting karnaugh map for the modified version of the circuit (the one(5 pts) You have derived the following karnaugh maps for the inputs to a JK flip-flop. All they have left in stock is Toggle flip-flops, which you will have to use

that uses the Toggle instead of the JK flip-flop.)

d dd

d 1

d d^ d d d d d

X

Y2 Y

111 Y

J’

dd^ dd

X

Y2 Y

Y

K’ d d

X

Y2 Y

Y

T’

  1. (20pts) Given the following table, draw the Karnaugh maps for Y1’, Y2’, and Y3’ and Z interms of X, Y1, Y2 and Y3, and then write  minimum boolean equations for each. (Y1 Y2 Y3)^ Present 0 0 0State^ (Y1’ Y2’ Y3’)1 1 0X=0^ Next State^ (Y1’ Y2’ Y3’)^ 1 1 1X=1^ X=0Output (Z) 1 X=1 1

 1 1 01 1 1^ 0 0 00 1 1^ 0 1 00 1 1^01



 



 



 



 



 





X Y

Y3 X

Y2 Y

X

Y2 Y

Y2 Y3 Y

X

Y

Y3 X

Y2 Y

X

Y2 Y

Y2 Y3 Y

11. will take two coins, the 10 Moolah piece and the 20 Moolah piece. A phone call costs 50Moolah.X1=20 Moolah coin and X2= 10 Moolah coin, and assume both coins cannot be inserted(20 pts) Freedonia wants to install a pay phone in the President’s living area. This phone Since this phone will be in the President’s palace, it must give change. Let

simultaneously.Draw the State Transistion Diagram (the circles and the arcs) for this finite state machine.Let S0=no money input (the Start state). Once you have a state transition diagram, minim-ize 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 thetransitions on the diagram using the format we used in class (inputs over outputs).