Professional Documents
Culture Documents
Chapter 5
Internal Memory
+
Memory Cell Operation
Semiconductor Memory Types
DRAM
The term dynamic refers totendency 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
Figure 5.2b
Typical Memory Cell Structures
SRAM versusDRAM
SRAM
Both volatile
Power must be continuously supplied to the memory to
preserve the bit values
Dynamic cell
Simpler to build, smaller
DRAM
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
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)
EEPRO Flash
EPROM
M Memory
Electrically erasable
programmable read-only Intermediate between
Erasable programmable read-
memory EPROM and EEPROM in
only memory
both cost and functionality
256-KByte
Memory
Organization
+
1MByte Module Organization
Interleaved Memory Composed of a collection of
DRAM chips
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
+
BATAS KELOMPOK
+
Hamming
Error
Correcting
Code
Sistem yang dikembangkan
dari error detection code
dengan menggunakan parity
bit
Data bit D4 D3 D2 D1
Check Bit C3 C2 C1
Jika K = 3 Jika K = 2
2 3– 1 > 4 + 2 22 – 1 < 4 + 2
Banyak check bit (K) yang diperlukan :
C1 = D1 XOR D2 XOR D4 (POSISI 3, 5, 7)
C2 = D1 XOR D3 XOR D4 (POSISI 3, 6, 7)
C3 = D2 XOR D3 XOR D4 (POSISI 5, 6, 7)
Posisi7 :
CONTOH
(decimal)
6 5 4 3 2 1
Posisi
(decimal)
7 6 5 4 3 2 1
Data bit 1 0 1 0
Check Bit 0 1 0
+
Layout of Data Bits and Check Bits
Check Bit Calculation
+
Hamming SEC-DED Code
Organisasi DRAM SDRAM
Pada synchrous akses, transfer data SDRAM terjadi dengan control dari
sistem clock.
• Processor akan memberikan perintah
• DRAM akan merespon setelah beberapa set clock system tertentu
• Sementara itu, processor dapat menjalankan tugas dan instruksi lainnya selama
terjadi pemprosesan pada SDRAM
Table 5.3
Perbandingan DRAM
dengan Alternatifnya
Ini bisa digunakkan sebagai cache yang terdiri dari sejumlah baris 64-
bit