Unformatted text preview:

Chapter 7 The Memory Hierarchy Part I The slides of Part I are taken in large part from V Heuring H Jordan Computer Systems Design and Architecture S07 Mark Franklin 1 Memory Hierarchy Outline 1 Memory components RAM memory cells cell arrays Static RAM more expensive but less complex Tree and matrix decoders needed for large RAM chips Dynamic RAM less expensive but needs refreshing Chip organization Timing ROM Read only memory Memory boards Arrays of chips give more addresses and or wider words 2 D and 3 D chip arrays Memory modules Large systems can benefit by partitioning memory for separate access by system components fast access to multiple words S07 Mark Franklin 2 Memory Hierarchy Outline 2 The Memory Hierarchy from fast expensive to slow cheap Registers Cache Main Memory Disk Cache High speed expensive 1st level on chip 2nd level off chip Design Types Direct mapped associative set associative Virtual memory Makes the hierarchy to disk transparent Address translation logical address physical address Memory management control of information movement between levels Multiprogramming multithreading computation while waiting for memory improve efficiency and resource utilization The TLB For speeding up the address translation process Memory as a subsystem Overall performance S07 Mark Franklin 3 Memory Technology Characteristics Level Memory Type Average Access Time 1 Cache on chip Main Memory 2 Typical Size Unit of Transfer Block Size 25 10ns 8KB 8MB Word 16 64bits 40 200ns 2MB 32GB Cache line 8B 32B 3 Disk 5 10ms 1 000Gb Page 4KB 16KB 4 Magnetic Tape 1 5sec 1 000Gb Record 16KB S07 Mark Franklin 4 AMD Athlon S07 Mark Franklin 5 Typical Disk Drive SATA 750Gb S07 Mark Franklin 6 Memory Performance Gap Processor DRAM Memory Gap latency Proc 60 yr Moore s Law 2X 1 5yr Processor Memory Performance Gap grows 50 year DRAM DRAM 9 yr 2X 10 yrs Performance 1000 CPU 100 10 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 1 Time S07 Mark Franklin 7 Levels of the Memory Hierarchy Capacity Access Time Cost Staging Xfer Unit CPU Registers 100s Bytes 2s ns Registers Cache 100s K Bytes 3 2 ns 1 0 1 cents bit Cache Instr Operands Blocks Main Memory 1000s M Bytes 100ns 400ns 0001 00001 cents bit Disk 100sG Bytes 10 ms 10 6 10 7 cents bit Tape infinite sec min 10 8 cents bit S07 Mark Franklin Upper Level faster prog compiler 1 8 bytes cache 16 256 bytes Memory Pages OS 512 8K bytes Files user operator Mbytes Disk Tape Larger Lower Level 8 The CPU Memory Interface Sequence of events Read 1 CPU loads MAR then issues Read REQUEST 2 Main memory transmits words to MDR 3 Main memory asserts COMPLETE Write 1 CPU loads MAR MDR asserts Write REQUEST 2 MDR MAR 3 Main memory asserts COMPLETE S07 Mark Franklin Data bus Address bus CPU M ain memory m MAR s 1 m A0 A m 1 w MDR Register file 0 1 b w Address D0 Db 1 2 2 3 1 R W 1 REQUEST 2 2m 1 CO MPLETE Control signals 9 The CPU Memory Interface cont d Data bu s Address bus CPU m MAR Main memory s m A0 Am 1 w MDR b D0 Db 1 Address 0 1 2 3 w R W Register file REQUEST 2m 1 COMPLETE Control signals Additional points Multiple Data Transfers If b w w b b bit transfers Fractional Word Transfers Some CPUs Can transfer w bits Exp Intel 8088 m 20 8 and 16 bit values can be read written For very fast memory or known response time then COMPLETE may be omitted Separate R W lines may be used REQUEST line omitted S07 Mark Franklin 10 Memory Performance Parameters Symbol Definition Units Meaning ta Access timetime Time to access a memory word tc Cycle time time Time from start of access to start of next access k Block size words Number of words per block Bandwidth words time Word transmission rate tl Latency time Time to access first word of a sequence of words tbl Block time Time to access an entire block of words tl k access time Information is stored moved in blocks at the cache disk level S07 Mark Franklin 11 Memories Basic Technologies SRAM value is stored on a pair of inverting gates very fast but takes up more space than DRAM 4 to 6 transistors Cross Coupled gates more later DRAM value is stored as a charge on capacitor must be refreshed very small hence higher density but slower than SRAM factor of 5 to 10 Wordline Selects bit Passtransistor Capacitor Bit line Writes reads S07 Mark Franklin bit 12 Memory Cell Structure Basic D Latch RAM memory cells must provide 1 Select 2 DataIn 3 DataOut 4 R W Select DataIn DataOut R W S07 Mark Franklin 13 An 8 Bit Register as a 1 D RAM Array The entire register is selected with one select line and uses one R W line Select DataIn D DataOut R W Select D D D D D D D D d0 d1 d2 d3 d4 d5 d6 d7 R W S07 Mark Franklin 14 A 4 x 8 2 D Memory Cell Array 2 4 line decoder selects one of the four 8 bit arrays 2 bit address 2 4 decoder A1 D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D d0 d1 d2 d3 d4 d5 d6 d7 A0 R W R W is common to all Bidirectional 8 bit buffered data bus S07 Mark Franklin How does this scale 15 A 64 K x 1 Static RAM Chip square array fits IC Design paradigm Row address A0 A7 8 Select rows separately from columns 256 x 2 512 circuit logic components instead of 65 536 8 256 row decoder 256 256 256 cell array 256 Column address A8 A15 CS Chip Select allows chips in arrays to be selected individually R W CS 8 1 256 1 mux 1 1 256 demux Data Input 1 output This chip requires 21 pins including power and ground and so will fit in a 22 pin package S07 Mark Franklin 16 A 16 K x 4 SRAM Chip Row address A0 A7 Total number of bits previous design Here there are 4 64 1 muxes instead of 1 256 1 mux Output is 4 words each 64 bits 8 8 256 row decoder 256 4 64 256 cell arrays 64 each Column address A8 A13 R W 6 4 64 1 muxes 4 1 64 demuxes 4 Data Input output CS This chip requires 24 pins including power and ground and so will require a 24 pin package Package size and pin count can dominate chip cost S07 Mark Franklin 17 Matrix Tree Decoders 2 level decoders are limited in size because of gate fan in fan in 8 Decoders built with fan in 8 require additional gate levels When fan in …


View Full Document

WUSTL CSE 362M - Chapter 7 The Memory Hierarchy – Part

Loading Unlocking...
Login

Join to view Chapter 7 The Memory Hierarchy – Part and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Chapter 7 The Memory Hierarchy – Part and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?