Docsity

EECS 373 Winter 2008 Final Exam, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
EECS 373 Final Exam
Winter 2008
Name: ____________________________________ unique name: _______________
Sign the honor code:
I have neither given nor received aid on this exam nor observed anyone else doing so.
___________________________________
Scores:
# Points
1 /10
2 /12
3 /12
4 /12
5&6 /14
Design
Part 1 /11
Part 2 /29
Total /100
NOTES:
Open White book and EABI only.
There are 10 pages including this one.
Calculators are allowed, but no PDAs, Portables, Cell phones, etc.
Don’t spend too much time on any one problem and be sure you get to the design
problem with plenty of time to spare.
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.
Page 1 / 10
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

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

EECS 373 Final Exam

Winter 2008

Name: ____________________________________ unique name: _______________

Sign the honor code:

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

___________________________________

Scores:

# Points

Design

Part 1 /

Part 2 /

Total /

NOTES:

 Open White book and EABI only.

 There are 10 pages including this one.

 Calculators are allowed, but no PDAs, Portables, Cell phones, etc.

 Don’t spend too much time on any one problem and be sure you get to the design

problem with plenty of time to spare.

 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.

1. Fill-in-the-blank [10 points, -1 per wrong or blank answer]

a. When building a 128 by 8 bit memory device out of a square memory array, the row

decoder will need _________ bits of the address, while the column MUX will need

__________ bits of the address.

b. If R1=11, then the PowerPC instruction “addi r2, r1, 0xfffa” will cause r2 to have a

value of _____________________ (in hex), but the instruction “andi r2, r1, 0xfffe

will cause r2 to have a value of __________________ (in hex).

c. A “bus mastering” device is capable of initiating / responding to / NACKing /

stalling a transaction, while a “slave device” is not.

d. If a given message scheme allows for 2 bits of error detection, the Hamming distance

of the underlying code must be at least 3/4/5/6/7. If the scheme could correct any

one-bit error and simultaneously detect any two-bit error, the Hamming distance of

the underlying code must be at least 3/4/5/6/.

e. An ideal 4-bit analog to digital converter that has a Vref of 8V has a quantization error

of ______________ volts.

f. A 4-bit D2A converter with an absolute error of ±1/4 LSB and a Vref of 4 volts could

have a step size as small as _____________ volts and as large as ______________

volts.

g. Say you have a 125 bit data packet and you wished to be able to do one bit of error

detection on the packet, you would need to add 1/2/7/8/10/11 parity bits, but if you

wished to do one bit of error correction you’d need to add 1/2/7/8/10/11 parity bits.

3. You’ve been placed in charge of designing an altitude measuring device. You have an air-pressure

sensor that can be used to compute altitude. It outputs 3 volts at sea-level and 1 volt if 4,000m above sea level. Its response is linear within that range (so 2 volts at 2,000m above sea level) and you can assume it has infinite resolution. Your company wants your device to output the current altitude with a resolution of 10 meters and shouldn’t be off by more than 10 meters from the actual value at any given time. It need only be correct from sea-level to 4,000 feet above sea level. It is solely for use by hikers to judge altitude. In addition, for cost reasons, you are restricted to supplying 5V for power and 0V for ground (you can’t use voltage dividers or something else and thus the Vref must be 5V and ground must be 0V). The following A2D devices are on the market:  The Bob. This converter features an 8-bit output, no more than ± 1/8 LSB absolute non- linearity and can do 5000 conversions per second. It costs $1.00 per unit  The Tom. This converter features a 14-bit output, no more than ± 1/3 LSB relative non- linearity, and the ability to do 50,000 conversions per second. It costs $2.00 per unit  The Mary. This converter features a 12-bit output, no more than ± 1/2 LSB absolute non- linearity and can do 500 conversions per second. It costs $1.10 per unit.  The Linda. This converter features a 16-bit output, no more than ± 1/8 LSB absolute non- linearity and can do 2000 conversions per second. It costs $1.30 per unit.  The Bob version 2. This converter features a 16-bit output, no more than ± 1/8 LSB absolute non-linearity and can do 10,000 conversions per second. It costs $2.50 per unit. Assuming that there are no other relevant differences between the converters, which of these would meet the requirements? Which would you recommend? Explain your reasoning. [12]

4. You are given a system which contains an 8-bit timer that consists of three 8-bit registers: a count

register (CNT) which holds the count value of the timer, a reference register (REF), and a control register (CTL). The CTL register consists of the following fields (0 is most significant bit)  EN (bit 0): Must be set to 1 for the timer to be enabled.  RST (bit 1): If this bit is set to 1, CNT will reset to 0 every time the count value reaches the reference value. Otherwise, the timer will continue to increment when the reference value is reached.  DIV (bit 2): Setting this bit to 1 divides the system clock by 16 to produce the input clock frequency. If DIV = 0, then the input clock frequency equals the system clock frequency.  PRE (bits 3-7, 3 is MSB): A 5-bit prescaler which works like the prescalar in the MPC823 (divides the clock by PRE+1). The system clock runs at 1 MHz. a) What is the maximum range of this timer? What is the resolution in that case? [6] Max range: _______________ Resolution: ______________ b) Say you want to generate an interrupt every 64ms. Find values of the CTL register and the REF register that will cause that to happen. [6] CTL register (in binary ): ______________________________ REF register (in decimal ): _____________________________

Design Problem – Fanning the Flames in 373 – 40 points Once again the air circulation in the 373 lab has stopped. This time we’ve decided to take matters in to our own hands. We’ve determined that the room thermostat is broken. When we look up the fan specs on the Internet we discover that it is switched on and off by writing a control bit to a 1-bit latch in the fan’s controller. The controller takes two inputs: one is the data and the other is a “pulse” signal. The data is written to the control register on the rising edge of the pulse. If a one is written to the controller, the fan will turn on. If a zero is written to the controller, the fan will turn off. The timing spec for the fan’s controller interface follows: FAN DATA FAN PULSE We will use one of the lab kits to control the fan. You have been given permission to write the fan control bits directly from the kit test points. Assume the following: Writing a byte to the memory location 0x2600000 specifies that you wish to write the fan’s controller. The least-significant bit of the data written specifies the value desired for FAN DATA. Also, the bus clock is 10 Mhz (100ns). thold 100ns (min) tsetup 100ns (min) 100ns (min pulse width)

Part I – Timing – 11 points

Complete the PPC external bus-timing diagram (on the next page) to write the fan controller’s DATA bit. Provide a minimum wait state solution. Complete all incomplete signals. [8] Label any wait states on the timing diagram What are the setup and hold times for FAN DATA that YOUR solution is providing? [3] FAN DATA setup time__________________________ FAN DATA hold time___________________________

(This page left blank for your answer to part III)