Internal Memory: William Stallings, Computer Organization and Architecture, 9 Edition
Internal Memory: William Stallings, Computer Organization and Architecture, 9 Edition
Internal Memory: William Stallings, Computer Organization and Architecture, 9 Edition
Organization
All of the memory types that we will explore in this chapter are
random access. That is, individual words of memory are directly
accessed through wired-in addressing logic.
+
Dynamic RAM (DRAM)
Made with cells that store data as charge on capacitors (tụ điện)
The term dynamic refers to tendency of the stored charge to leak away,
even with power continuously applied
+ Static RAM
(SRAM)
Digital device that uses the same logic
elements used in the processor
Dynamic cell
Simpler to build, smaller
(smaller cells = more cells per unit area) DRAM
Less expensive
Static
Faster
Used for cache memory (both on and off chip)
+ 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
Dataor program is permanently in main memory and
never needs to be loaded from a secondary storage device
Data is actually wired into the chip as part of the
fabrication process
Disadvantages of this:
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
Flash
EPROM EEPROM
Memory
Electrically erasable Intermediate between EPROM
Erasable programmable read- programmable read-only memory and EEPROM in both cost and
only memory
functionality
Address lines
Data lines
Chip Packaging
MAR
Figure 5.5
256-KByte
Memory
Organization
Select column
Select row
Data
Enable buffer
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: Phenomenon in which 2
protons and 2 neutrons bound together into a
Alpha particles particle identical to a helium nucleus (Wiki for
more details).
Error Correcting Code (ECC) Function
No error/Correctable
bits
Read
Write M+K
• No errors are detected. The fetched data bits are sent out.
• An error is detected, and it is possible to correct the error. The data bits plus error
correction bits are fed into a corrector, which produces a corrected set of M bits to
be sent out.
• An error is detected, but it is not possible to correct it. This condition is reported.
Next slide: An example for ECC function.
ECC Function: Examples
• The XOR operation is ussually used in ECC functions
• The most simple data for checking is the original data A copy of
original data is written to memory . 8-bit data: 00001111, ECC
data: 00001111 Memory must be increased to double size
• XORs some bits of M-bit original data to K-bit ECC will decrease
memory size.
• Examples:
8 bits 3 bits: 01010110 101
8 bits 2 bits: 01010110 00
8 bits 1 bits: 01010110 0
- Main memory bank usually includes 9 chips. Why?
+ Hamming Data: 4 bits
1 XOR 1 XOR 1 = 1
Error
Correcting
Code
Richard Hamming at
Bell Laboratories
Check positions: 23 22 21 20
The sequence
shows that if
two errors occur
(Figure 5.11c),
the checking
procedure
goes astray –
chệch hướng (d)
and worsens the
problem by
creating a third
error (e).
To overcome the problem, an eighth bit is added that is set so that the total number of
1s in the diagram is even. The extra parity bit catches the error (f).
Table 5.3
Performance Comparison
DRAM Alternatives
With synchronous access the DRAM moves data in and out under control of
the system clock
• The processor or other master issues the instruction and address information which
is latched by the DRAM
• The DRAM then responds after a set number of clock cycles
• Meanwhile the master can safely do other tasks while the SDRAM is processing
SDRAM
+
SDRAM Pin Assignments
+
SDRAM Read Timing
RDRAM Developed by
Rambus
Rambus Dynamic Random Access Memory
Bus delivers address and control
information using an asynchronous
block-oriented protocol Adopted by Intel
Gets a memory request over the
high-speed bus for its Pentium and
Request contains the desired
address, the type of operation, Itanium processors
and the number of bytes in the
operation
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 Mitsubishi
5.3 What is the difference between DRAM and SRAM in terms of application?
5.4 What is the difference between DRAM and SRAM in terms of characteristics such
as speed, size, and cost?
5.5 Explain why one type of RAM is considered to be analog and the other digital.
5.7 What are the differences among EPROM, EEPROM, and flash memory?
5.8 Explain the function of each pin in Figure 5.4b. 182 CHAPTER 5 / INTERNAL
MEMORY