Sie sind auf Seite 1von 28

Computing Platforms

Platform organization.
Busses.
Memory devices.

Computers as Components 3e
© 2012 Marilyn Wolf
Computing platform
architecture

 DMA provides direct memory access.


 Timers used by OS, devices.
 Multiple busses connect CPU, memory to devices.
Computers as Components 3e
© 2012 Marilyn Wolf
PIC16F882

 Harvard architecture---flash memory separately


programmed.
 Multiple I/O devices.
© 2000 Morgan Overheads forComponents
Computers as Computers3eas
Kaufman Components
© 2012 Marilyn Wolf
Platform software

Platform software
provides core
functions, utilities.
Low-level functions
depend on
architecture---
interrupt vectors, etc.

Computers as Components 3e
© 2012 Marilyn Wolf
CPU buses

Bus allows CPU, memory, devices to


communicate.
Shared communication medium.
A bus is:
A set of wires.
A communications protocol.

Computers as Components 3e
© 2012 Marilyn Wolf
Bus protocols

Bus protocol determines how devices


communicate.
Devices on the bus go through sequences
of states.
Protocols are specified by state machines,
one state machine per actor in the protocol.
May contain asynchronous logic behavior.

Computers as Components 3e
© 2012 Marilyn Wolf
Four-cycle handshake

data
device 1 xfer
enq
device 1 device 2
ack
device 2

1 2 3 4
time

Computers as Components 3e
© 2012 Marilyn Wolf
Four-cycle handshake,
cont’d.

1. Device 1 raises enq.


2. Device 2 responds with ack.
3. Device 2 lowers ack once it has finished.
4. Device 1 lowers enq.

Computers as Components 3e
© 2012 Marilyn Wolf
Microprocessor busses
 Clock provides
synchronization.
 R/W is true when
reading (R/W’ is false
when reading).
 Address is a-bit bundle
of address lines.
 Data is n-bit bundle of
data lines.
 Data ready signals
when n-bit data is
ready.

Computers as Components 3e
© 2012 Marilyn Wolf
Timing diagrams

Computers as Components 3e
© 2012 Marilyn Wolf
Bus read

Computers as Components 3e
© 2012 Marilyn Wolf
State diagrams for bus
read

Get Done Send Releas


data data e ack

See Ack
ack Adrs Adrs

Wait Wait

CPU start device

Computers as Components 3e
© 2012 Marilyn Wolf
Bus wait state

Computers as Components 3e
© 2012 Marilyn Wolf
Bus burst read

Computers as Components 3e
© 2012 Marilyn Wolf
Bus multiplexing

data enable device


data
CPU
adrs

adrs

Adrs enable

Computers as Components 3e
© 2012 Marilyn Wolf
DMA

Direct memory access


(DMA) performs data
transfers without
executing
instructions.
CPU sets up transfer.
DMA engine fetches,
writes.
DMA controller is a
separate unit.
Computers as Components 3e
© 2012 Marilyn Wolf
Bus mastership

By default, CPU is bus master and initiates


transfers.
DMA must become bus master to perform
its work.
CPU can’t use bus while DMA operates.
Bus mastership protocol:
Bus request.
Bus grant.
Computers as Components 3e
© 2012 Marilyn Wolf
DMA operation

 CPU sets DMA registers


for start address, length.
 DMA status register
controls the unit.
 Once DMA is bus master,
it transfers automatically.
May run continuously until
complete.
May use every nth bus
cycle.

Computers as Components 3e
© 2012 Marilyn Wolf
Bus transfer sequence
diagram

Computers as Components 3e
© 2012 Marilyn Wolf
System bus configurations

Multiple busses allow


parallelism: CPU slow device
Slow devices on one

bridge
bus.
Fast devices on memory slow device
separate bus.
A bridge connects high-speed
device
two busses.

Overheads forComponents
Computers as Computers3eas
© 2008 Wayne Wolf Components 2nd
© 2012 Marilyn ed.
Wolf
Bridge state diagram

Computers as Components 3e
© 2012 Marilyn Wolf
ARM AMBA bus

 Two varieties:
AHB is high-performance.
APB is lower-speed, lower
cost.
 AHB supports pipelining,
burst transfers, split
transactions, multiple bus
masters.
 All devices are slaves on
APB.

Computers as Components 3e
© 2012 Marilyn Wolf
Memory components

Several different
types of memory:
DRAM.
SRAM.
Flash.
Each type of memory
comes in varying:
Capacities.
Widths.
Computers as Components 3e
© 2012 Marilyn Wolf
Random-access memory

Dynamic RAM is dense, requires refresh.


SDRAM: synchronous DRAM.
EDO DRAM: extended data out.
FPM DRAM: fast page mode.
DDR DRAM: double-data rate.
Static RAM is faster, less dense, consumes
more power.

Overheads forComponents
Computers as Computers3eas
© 2008 Wayne Wolf Components 2nd
© 2012 Marilyn ed.
Wolf
SDRAM read operation

Overheads forComponents
Computers as Computers3eas
© 2008 Wayne Wolf Components 2nd
© 2012 Marilyn ed.
Wolf
Memory packaging

SIMM: single in-line memory module.


DIMM: dual in-ilen memory module.

Computers as Components 3e
© 2012 Marilyn Wolf
Memory systems and
memory controllers

Memory has complex


internal organization.
Memory controller
hides details of
memory interface,
schedules transfers to
maximize
performance.

Computers as Components 3e
© 2012 Marilyn Wolf
Channels and banks

Channels provide
separate connections
to parts of memory.
Banks are separate
memory arrays.

Computers as Components 3e
© 2012 Marilyn Wolf

Das könnte Ihnen auch gefallen