






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Name: ____________________________________ unique name: _______________
Sign the honor code:
I have neither given nor received aid on this exam nor observed anyone else doing so.
a) DRAM / SRAM / ROM is non-volatile.
b) A 4 Mbit square memory with 18 address lines would output 2 / 4 / 8 / 16 / 32 / 64
bits of data in a given read. The row decoder would have _________ inputs while
the MUX selector would have _________ inputs.
c) An ISR should be sure to save all Volatile Registers / Non-Volatile Registers /
Registers that it uses. An ABI-compliant leaf function should be sure to save all
Volatile Registers / Non-Volatile Registers / Registers that it uses.
d) When using a PCI bus with a 32-bit AD bus with a 50ns clock, the fastest data
rate you’d expect to get when doing large numbers of 5 byte writes is
______________________ bytes/sec.
e) The ____________ bit of the ____________ determines if an external interrupt
branches to 0x500 or ______________.
f) Say the PC is currently 0x40000. Using the “bc” instruction with AA=0, you
could branch to any location from 0x_______________ to 0x_______________
g) If you want to do DMA rather than _____________________________, your bus
must support bursts / arbitration / atomic read-modify-write operations / a
method for targets to stall the bus.
h) Long / Short / Read / Write transactions are best suited to use DMA.
i) A ____________________ is when a combinational logic device should stay at
a level (0 or 1) but instead changes to the other level for a short period of time.
j) A load word to memory location 0x999 will result in TS going low _________
times.
8. Design problem You are to design a bus interface and write the device driver for a smart temperature sensor. The sensor contains an embedded controller that will convert the analog temperature signal into a digital value. The controller has two 8-bit registers that you need to interface to the PPC.
CS (Command and Status Register) This is a read/write register and is used to initiate temperature controller actions and provide status.
Ready Reserved Reserved Reserved Reserved Reserved Reserved Start Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Start Bit 0 : Writing a one to this register initiates a measurement. The temperature controller will clear the bit after the measurement starts.
Ready Bit 7 : This bit is set to one when the measurement is complete and data is ready in the data register. This bit is automatically cleared when the Start bit is set to one.
DATA (Data Register) Data Data Data Data Data Data Data Data Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
The results of the measurement are placed in this register and are current when the Ready bit is high. The MSB is Bit 0 and the LSB is Bit 7.
IO Control Signals The temperature controller registers are written and read with the following control signals.
An IO macro to the temperature sensor is provided. The sensor is connected to the PROC macro, Temperature Controller macro and an IO Controller Macro as follows.
Part 1: Macros:
Write a device driver in assembler for the temperature controller. The driver is required to do the following:
.