Download presentation
Presentation is loading. Please wait.
Published byLisa Oliver Modified over 9 years ago
1
© 2000 Morgan Kaufman Overheads for Computers as Components System components Timing diagrams. Memory. Busses and interconnect.
2
© 2000 Morgan Kaufman Overheads for Computers as Components Timing diagrams A timing diagram shows a trace through the operation of a system. Generally used for asynchronous machines with timing constraints. enq ack
3
© 2000 Morgan Kaufman Overheads for Computers as Components Timing diagram syntax Constant value: Stable: Changing: Unknown: 0 1
4
© 2000 Morgan Kaufman Overheads for Computers as Components Timing constraints Minimum time between two events: enq ack 20 ns
5
© 2000 Morgan Kaufman Overheads for Computers as Components Origin of timing constraints Control signals are passed on the bus: a 20 ns c DQ
6
© 2000 Morgan Kaufman Overheads for Computers as Components Memory device organization Memory array n r c
7
© 2000 Morgan Kaufman Overheads for Computers as Components Memory parameters Size. Address width. Aspect ratio. Data width.
8
© 2000 Morgan Kaufman Overheads for Computers as Components Types of memory ROM: Mask-programmable. Flash programmable. RAM: DRAM. SRAM.
9
© 2000 Morgan Kaufman Overheads for Computers as Components SRAM vs. DRAM SRAM: Faster. Easier to integrate with logic. Higher power consumption. DRAM: Denser. Must be refreshed.
10
© 2000 Morgan Kaufman Overheads for Computers as Components Typical generic SRAM SRAM CE’ R/W’ Adrs Data
11
© 2000 Morgan Kaufman Overheads for Computers as Components Generic SRAM timing time CE’ R/W’ Adrs Data readwrite From SRAMFrom CPU
12
© 2000 Morgan Kaufman Overheads for Computers as Components Generic DRAM device DRAM CE’ R/W’ Adrs Data RAS’ CAS’
13
© 2000 Morgan Kaufman Overheads for Computers as Components Generic DRAM timing time CE’ R/W’ RAS’ CAS’ Adrs Data row adrs col adrs data
14
© 2000 Morgan Kaufman Overheads for Computers as Components Page mode access time CE’ R/W’ RAS’ CAS’ Adrs Data row adrs col adrs data col adrs col adrs data
15
© 2000 Morgan Kaufman Overheads for Computers as Components RAM refresh Value decays in approx. 1 ms. Refresh value by reading it. Can’t access memory during refresh. CAS-before-RAS refresh. Hidden refresh.
16
© 2000 Morgan Kaufman Overheads for Computers as Components Flash issues Flash is programmed at system voltages. Erasure time is long. Must be erased in blocks.
17
© 2000 Morgan Kaufman Overheads for Computers as Components Generic bus structure Address: Data: Control: m c n
18
© 2000 Morgan Kaufman Overheads for Computers as Components Electrical bus design Bus signals are usually tri-stated. Address and data lines may be multiplexed. Every device on the bus must be able to drive the maximum bus load: Bus wires. Other bus devices. Bus may include clock signal. Timing is relative to clock.
19
© 2000 Morgan Kaufman Overheads for Computers as Components Four-cycle handshake enq ack 4 1 data 2 3
20
© 2000 Morgan Kaufman Overheads for Computers as Components Busses as communicating machines enq = 1 enq = 0 0 1 1 0 M1 ack = 0 ack = 1 0 1 1 0 M2 ack enq
21
© 2000 Morgan Kaufman Overheads for Computers as Components When should you handshake? When response time cannot be guaranteed in advance: Data-dependent delay. Component variations.
22
© 2000 Morgan Kaufman Overheads for Computers as Components Fixed-delay memory access CPU memory R/W data = mem[adrs] R W mem[adrs] = data R/W data adrs read = 1 adrs = A reg = data
23
© 2000 Morgan Kaufman Overheads for Computers as Components Variable-delay memory access CPU memory read = 1 adrs = A reg = data R/W done = 0 data = mem[adrs] done = 1 mem[adrs] = data done = 1 R W R/W data adrs done y n
24
© 2000 Morgan Kaufman Overheads for Computers as Components Typical bus access time clock R/W’ Address enable adrs Data Ready’ data read write
25
© 2000 Morgan Kaufman Overheads for Computers as Components Bus mastership Bus master controls operations on the bus. CPU is default bus master. Other devices may request bus mastership. Separate set of handshaking lines. CPU can’t use bus when it is not master.
26
© 2000 Morgan Kaufman Overheads for Computers as Components Direct memory access (DMA) DMA provides parallelism on bus by controlling transfers without CPU. CPU memory I/O DMA
27
© 2000 Morgan Kaufman Overheads for Computers as Components DMA operation CPU sets up DMA transfer: Start address. Length. Transfer block length. Style of transfer. DMA controller performs transfer, signals when done: Cycle-stealing. Priority.
28
© 2000 Morgan Kaufman Overheads for Computers as Components ARM busses AMBA: Open standard. Many external devices. Two varieties: AMBA High- Performance Bus (AHB). AMBA Peripherals Bus (APB). CPU bridge memory I/O AHB APB
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.