chapter 5 - main memory (1).pptxfdjdjgjghdj

227567 23 views 48 slides May 12, 2024
Slide 1
Slide 1 of 48
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48

About This Presentation

computer


Slide Content

Chapter 5 Internal Memory

Memory Cell Operation

Semiconductor Memory Types Table 5.1 Semiconductor Memory Types

Read Only Memory (ROM) Contains a permanent pattern of data that cannot be changed or added to No power source is required to maintain the bit values in memory Data or program is permanently in memory and never needs to be loaded from a secondary storage device

Read Only Memory (ROM) Disadvantages Data is actually wired into the chip as part of the fabrication process No room for error, if one bit is wrong the whole batch of ROMs must be thrown out Data insertion step includes a relatively large fixed cost

Programmable ROM (PROM) Less expensive alternative Nonvolatile and may be written into only once Writing process is performed electrically and may be performed by supplier or customer at a time later than the original chip fabrication Special equipment is required for the writing process Provides flexibility and convenience Attractive for high volume production runs

Read-Mostly Memory

Read-Mostly Memory

Read-Mostly Memory

RAM technology RAM technology is divided into two technologies: Dynamic RAM (DRAM) Static RAM (SRAM)

Dynamic RAM (DRAM) Made with cells that store data as charge on capacitors Presence or absence of charge in a capacitor is interpreted as a binary 1 or 0 Requires periodic charge refreshing to maintain data storage The term dynamic refers to tendency of the stored charge to leak away, even with power continuously applied

Dynamic RAM Structure Figure 5.2a Typical Memory Cell Structures

Static RAM (SRAM) Digital device that uses the same logic elements used in the processor Binary values are stored using traditional flip-flop logic gate configurations Will hold its data as long as power is supplied to it

Static RAM Structure Figure 5.2b Typical Memory Cell Structures

SRAM versus DRAM Both volatile Power must be continuously supplied to the memory to preserve the bit values

SRAM versus DRAM Dynamic cell Simpler to build, smaller More dense (smaller cells = more cells per unit area) Less expensive Requires the supporting refresh circuitry Tend to be favored for large memory requirements Used for main memory Static Faster Used for cache memory (both on and off chip)

Error Correction Hard Failure Permanent physical defect Memory cell or cells affected cannot reliably store data but become stuck at 0 or 1 or switch erratically between 0 and 1 Can be caused by: Harsh environmental abuse Manufacturing defects Wear

Error Correction Soft Error Random, non-destructive event that alters the contents of one or more memory cells No permanent damage to memory Can be caused by: Power supply problems Alpha particles

Error Correcting Code Function

Hamming Error Correcting Code

Layout of Data Bits and Check Bits Stored word is 8 bits length

Check Bit Calculation Stored word  00111001 Fetched word  00111101

Stored word  12 bits (111000101011) Check bits ? C1,c2,c4,c8,c16  5 check bits 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  12+5 17 bits

Single‐Error Correction, Double‐Error Detection The Hamming code can detect and correct only a single error. By adding another parity bit to the coded word, the Hamming code can be used to correct a single error and detect double errors. If we include this additional parity bit, then the previous 12‐bit coded word becomes 001110010100P13, where P13 is evaluated from the exclusive‐OR of the other 12 bits. This produces the 13‐bit word 0011100101001 (even parity). When the 13‐bit word is read from memory, the check bits are evaluated, as is the parity P over the entire 13 bits. If P = 0, the parity is correct (even parity), but if P = 1, then the parity over the 13 bits is incorrect (odd parity).

Single‐Error Correction, Double‐Error Detection If C = 0 and P = 0, no error occurred. If C != 0 and P = 1, a single error occurred that can be corrected. If C != 0 and P =0, a double error occurred that is detected, but that cannot be corrected. If C = 0 and P = 1, an error occurred in the P13 bit. The following four cases can arise:

Examples Suppose an 8-bit data word stored in memory is 11011010. Using the Hamming algorithm, determine what check bits would be stored in memory with the data word. Is there a single /double error(s) in the fetched word (01011010). Show how you got your answer. How many check bits? 4 check bits :  (C1,C2,C4,C8) The stored bits are 12 bits The fetched bits are 12 bits

D8 D7 D6 D5 C8 D4 D3 D2 C4 D1 C2 C1 P13 Bit position 12 11 10 9 8 7 6 5 4 3 2 1 Position number 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001 Stored bits 1 1 1 1 1 1 1 1 Fetched bits 1 1 1 1 1 1 1 1 Checked bits (stored) C1= 0,1,1,1,1  0 C2=0,0,1,0,1 0 C4=1,0,1,1 1 C8=1,0,1,1 1 Checked bits (fetched) C1= 0,1,1,1,1  0 C2=0,0,1,1,1 0 C4=1,0,1,1 1 C8=1,0,1,1 1 C8 C4 C2 C1 1 1 0 0 1 1 0 0 0 0 0 0 P= 0 C=0 There is no errors

D8 D7 D6 D5 C8 D4 D3 D2 C4 D1 C2 C1 P13 Bit position 12 11 10 9 8 7 6 5 4 3 2 1 Position number 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001 Stored bits 1 1 1 1 1 1 1 1 Fetched bits 1 1 1 1 1 1 1 Checked bits (stored) C1= 0,1,1,1,1  0 C2=0,0,1,0,1 0 C4=1,0,1,1 1 C8=1,0,1,1 1 Checked bits (fetched) C1= 0,1,1,1,1  0 C2=0,0,1,0,1 0 C4=1,0,1,0 0 C8=1,0,1,0 0 C8 C4 C2 C1 1 1 0 0 0 0 0 0 1 1 0 0 P= 1 C != 0 There is a single bit errors The bit position 12  D8

D8 D7 D6 D5 C8 D4 D3 D2 C4 D1 C2 C1 P13 Bit position 12 11 10 9 8 7 6 5 4 3 2 1 Position number 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001 Stored bits 1 1 1 1 1 1 1 1 Fetched bits 1 1 1 1 1 1 Checked bits (stored) C1= 0,1,1,1,1  0 C2=0,0,1,0,1 0 C4=1,0,1,1 1 C8=1,0,1,1 1 Checked bits (fetched) C1=  1 C2=  1 C4= 0 C8= 1 C8 C4 C2 C1 1 1 0 0 1 0 1 1 0 1 1 1 P= 0 C != 0 There is double bit errors Can not be corrected!

D8 D7 D6 D5 C8 D4 D3 D2 C4 D1 C2 C1 P13 Bit position 12 11 10 9 8 7 6 5 4 3 2 1 Position number 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001 Stored bits 1 1 1 1 1 1 1 1 Fetched bits 1 1 1 1 1 1 1 Checked bits (stored) C1= 0,1,1,1,1  0 C2=0,0,1,0,1 0 C4=1,0,1,1 1 C8=1,0,1,1 1 Checked bits (fetched) C1= 0,1,1,1,1  0 C2=0,0,1,1,1 0 C4=1,0,1,1 1 C8=1,0,1,1 1 C8 C4 C2 C1 1 1 0 0 1 1 0 0 0 0 0 0 P= 1 C=0 There is an error in P13

Advanced DRAM Organization One of the most critical system bottlenecks when using high-performance processors is the interface to main internal memory The traditional DRAM chip is constrained both by its internal architecture and its interface to the processor’s memory bus A number of enhancements to the basic DRAM architecture have been explored: Table 5.3 Performance Comparison of Some DRAM Alternatives

Synchronous DRAM (SDRAM)

SDRAM

SDRAM Pin Assignments Table 5.4 SDRAM Pin Assignments

SDRAM Read Timing

RDRAM

RDRAM Structure

Double Data Rate SDRAM (DDR SDRAM) SDRAM can only send data once per bus clock cycle Double-data-rate SDRAM can send data twice per clock cycle, once on the rising edge of the clock pulse and once on the falling edge Developed by the JEDEC Solid State Technology Association (Electronic Industries Alliance’s semiconductor-engineering-standardization body)

DDR SDRAM Read Timing

Cache DRAM (CDRAM) Developed by Mitsubishi Integrates a small SRAM cache onto a generic DRAM chip SRAM on the CDRAM can be used in two ways: It can be used as a true cache consisting of a number of 64-bit lines Cache mode of the CDRAM is effective for ordinary random access to memory Can also be used as a buffer to support the serial access of a block of data

Chip Packaging

Typical 16 Mb DRAM (4M x 4)

Chip Packaging

Figure 5.5 256-KByte Memory Organization

Interleaved Memory
Tags