Docsity

EECS 373 Final Exam Fall 2005, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
1/7
EECS 373 Final Exam
Fall 2005
Name: ____________________________________ unique name: _______________
Sign the honor code:
I have neither given nor received aid on this exam nor observed anyone else doing so.
___________________________________
Scores:
Page # Points
2 /14
3 /21
4 /14
5 /20
6 /16
7 /15
Total /100
NOTES:
• Open White book and EABI only. There are 7 pages including this one.
• Calculators are allowed, but no PDAs, Portables, Cell phones, etc.
• Don’t spend too much time on any one problem.
• You have about 120 minutes for the exam.
• Be sure to show work and explain what you’ve done when asked to do so.
Getting partial credit without showing work will be rare.
pf3
pf4
pf5

Partial preview of the text

Download EECS 373 Final Exam Fall 2005 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

EECS 373 Final Exam

Fall 2005

Name: ____________________________________ unique name: _______________

Sign the honor code:

I have neither given nor received aid on this exam nor observed anyone else doing so.

___________________________________

Scores:

Page # Points

Total /

NOTES:

  • Open White book and EABI only. There are 7 pages including this one.
  • Calculators are allowed, but no PDAs, Portables, Cell phones, etc.
  • Don’t spend too much time on any one problem.
  • You have about 120 minutes for the exam.
  • Be sure to show work and explain what you’ve done when asked to do so. Getting partial credit without showing work will be rare.

Part I: Short answer.

  1. If SIPEND had the hex value 0x06370000 and no interrupts were masked out, what would be the value in the half-word located at the memory location (IMMR & 0xFFFF0000)+0x01C? (SIVEC) [4]
  2. What is the principle advantage of NRZI encoding over NRZ? Explain your answer in a sentence or two. [4]
  3. In this problem we are comparing three different bus protocols, the PCI, P6 and MPC823 busses. We are going to assume that all three busses have a fixed clock frequency of 10MHz.

a. Consider the best-case read latencies of the three busses. Order the busses from fastest (lowest latency) to slowest (highest latency) [3]

i. Fastest: _______

ii. Middle: _______

iii. Slowest: _______

b. Consider the best-case read bandwidth for the three busses. Order the busses from highest-bandwidth to lowest bandwidth. [3]

i. Fastest: _______

ii. Middle: _______

iii. Slowest: _______

Part II – long answer

  1. Consider a packet consisting of 10 bits. There are 6 data bits (A-F) and 4 parity bits (W-Z) in the packet. So a packet looks as follows:

A B C D E F W X Y Z

The intent of the scheme is to be able to correct one bit of error (one bit-flip) in the packet. Let the function P() return a 1 if there are an odd number of 1s provided as arguments, otherwise it is a zero. So P(0,1,0,0) would return a “1”, while P(0,1,1,0) would return a “0”.

Say that W, X, and Y are computed as follows: W=P(A, B, C, D, E, F) X=P(A, B, C, D) Y=P(C, D, E, F)

In order to be able to correct any one-bit error (in the data or parity bits) what should the function for “Z” be? [8]

Given your scheme, if bit “A” gets flipped, which parity bits will be wrong? [3]

Given your scheme, if bits “A” and “F” get flipped, which parity bits will be wrong? [3]

  1. Write an EABI-compliant function using PowerPC assembly which has the following prototype:

int quad(int a, int b, int c)

It is to compute the absolute value of b^2 -4ac, pass that value to an ABI compliant function (which you may assume already exists, but you don’t have access to its code) called int_root. The value returned by int_root() should be returned by your function quad(). [20]

  1. Consider a single LED controlled by a D flip-flop. If the flip-flop is one, the LED is turned on, otherwise the LED is turned off. You are to design a circuit which interfaces to the MPC823 bus and allows a write of “1” to any byte 0x02800000 to 0x0283FFFF to turn on the LED and a write of “0” to turn it off. (No other devices are at those addresses). The device will only be written to and the writing to it will always be a byte operation. Draw the complete interface. The flip-flop and LED are provided. You are responsible for figuring out what the needed inputs and outputs are. You are to assume that no wait states are needed. [15]

D

Q

CLK

LED