SlideShare a Scribd company logo
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
EPROM
Erasable programmable read-only memory
Erasure process can be performed
repeatedly
More expensive than PROM but it has the
advantage of the multiple update capability
Read-Mostly Memory
EEPROM
Electrically erasable programmable read-only
memory
Can be written into at any time without erasing
prior contents
Combines the advantage of non-volatility with
the flexibility of being updatable in place
More expensive than EPROM
Read-Mostly Memory
Flash Memory
Intermediate between EPROM and EEPROM in both
cost and functionality
Uses an electrical erasing technology, does not
provide byte-level erasure
Microchip is organized so that a section of memory
cells are erased in a single action or “flash”
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 0 1 1 1 0 1 1 0 0 0 1
Fetched
bits 1 1 0 1 1 1 0 1 1 0 0 0 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 0 1 1 1 0 1 1 0 0 0 1
Fetched
bits 0 1 0 1 1 1 0 1 1 0 0 0 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
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 0 1 1 1 0 1 1 0 0 0 1
Fetched
bits 0 0 0 1 1 1 0 1 1 0 0 0 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 0 1 1 1 0 1 1 0 0 0 1
Fetched
bits 1 1 0 1 1 1 0 1 1 0 0 0 0
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)
One of the most widely used forms of
DRAM
Exchanges data with the processor
synchronized to an external clock
signal and running at the full speed of
the processor/memory bus without
imposing wait states
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
S
D
R
A
M
SDRAM Pin Assignments
Table 5.4 SDRAM Pin Assignments
SDRAM Read Timing
RDRAM Developed by
Rambus
Adopted by Intel
for its Pentium
and Itanium
processors
Has become the
main competitor
to SDRAM
Chips are vertical packages with all pins on one
side
• Exchanges data with the processor over 28 wires no more
than 12 centimeters long
Bus can address up
to 320 RDRAM chips
and is rated at 1.6
GBps
Bus delivers address
and control information
using an asynchronous
block-oriented protocol
• Gets a memory request over
the high-speed bus
• Request contains the
desired address, the type of
operation, and the number
of bytes in the operation
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 Composed of a collection of
DRAM chips
Grouped together to form a
memory bank
Each bank is independently
able to service a memory
read or write request
K banks can service K
requests simultaneously,
increasing memory read or
write rates by a factor of K
If consecutive words of
memory are stored in different
banks, the transfer of a block
of memory is speeded up

More Related Content

Similar to chapter 5 - main memory (1).pptxfdjdjgjghdj

ram.pdf
ram.pdfram.pdf
eMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overvieweMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overview
VijayGESYS
 
Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
 
002079
002079002079
002079
irfantheraj
 
Csc1401 lecture06 - internal memory
Csc1401   lecture06 - internal memoryCsc1401   lecture06 - internal memory
Csc1401 lecture06 - internal memory
IIUM
 
11. Computer Systems Hardware 1
11. Computer Systems   Hardware 111. Computer Systems   Hardware 1
11. Computer Systems Hardware 1
New Era University
 
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Hsien-Hsin Sean Lee, Ph.D.
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II  Embedded Systems MemorySYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II  Embedded Systems Memory
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
Arti Parab Academics
 
Embedded system classes in mumbai
Embedded system classes in mumbaiEmbedded system classes in mumbai
Embedded system classes in mumbai
Vibrant Technologies & Computers
 
Coa presentation3
Coa presentation3Coa presentation3
Coa presentation3
rickypatel151
 
IRJET- Design And VLSI Verification of DDR SDRAM Controller Using VHDL
IRJET- Design And VLSI Verification of DDR SDRAM Controller Using VHDLIRJET- Design And VLSI Verification of DDR SDRAM Controller Using VHDL
IRJET- Design And VLSI Verification of DDR SDRAM Controller Using VHDL
IRJET Journal
 
Embedded system 8051 Microcontroller
Embedded system 8051 MicrocontrollerEmbedded system 8051 Microcontroller
Embedded system 8051 Microcontroller
ankitsharmaj
 
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
Tony Pearson
 
Memory unit 6
Memory unit 6Memory unit 6
Memory unit 6
Asif Iqbal
 
Chapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworldChapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworld
Praveen Kumar
 
Storage Devices
Storage DevicesStorage Devices
Storage Devices
Ashish KC
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
818Farida
 
Imd 203 - Ch07
Imd 203 - Ch07Imd 203 - Ch07
Imd 203 - Ch07
ALBAKRI MOHAMMAD
 
Chapter 7 Memory
Chapter 7 MemoryChapter 7 Memory
Chapter 7 Memory
Patty Ramsey
 
Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1
Kshitij Singh
 

Similar to chapter 5 - main memory (1).pptxfdjdjgjghdj (20)

ram.pdf
ram.pdfram.pdf
ram.pdf
 
eMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overvieweMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overview
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
002079
002079002079
002079
 
Csc1401 lecture06 - internal memory
Csc1401   lecture06 - internal memoryCsc1401   lecture06 - internal memory
Csc1401 lecture06 - internal memory
 
11. Computer Systems Hardware 1
11. Computer Systems   Hardware 111. Computer Systems   Hardware 1
11. Computer Systems Hardware 1
 
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II  Embedded Systems MemorySYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II  Embedded Systems Memory
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Embedded Systems Memory
 
Embedded system classes in mumbai
Embedded system classes in mumbaiEmbedded system classes in mumbai
Embedded system classes in mumbai
 
Coa presentation3
Coa presentation3Coa presentation3
Coa presentation3
 
IRJET- Design And VLSI Verification of DDR SDRAM Controller Using VHDL
IRJET- Design And VLSI Verification of DDR SDRAM Controller Using VHDLIRJET- Design And VLSI Verification of DDR SDRAM Controller Using VHDL
IRJET- Design And VLSI Verification of DDR SDRAM Controller Using VHDL
 
Embedded system 8051 Microcontroller
Embedded system 8051 MicrocontrollerEmbedded system 8051 Microcontroller
Embedded system 8051 Microcontroller
 
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
 
Memory unit 6
Memory unit 6Memory unit 6
Memory unit 6
 
Chapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworldChapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworld
 
Storage Devices
Storage DevicesStorage Devices
Storage Devices
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
 
Imd 203 - Ch07
Imd 203 - Ch07Imd 203 - Ch07
Imd 203 - Ch07
 
Chapter 7 Memory
Chapter 7 MemoryChapter 7 Memory
Chapter 7 Memory
 
Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1
 

More from 227567

lab2sql222222222222222222222222222222222
lab2sql222222222222222222222222222222222lab2sql222222222222222222222222222222222
lab2sql222222222222222222222222222222222
227567
 
lab14444444444444444444444444444444444444444
lab14444444444444444444444444444444444444444lab14444444444444444444444444444444444444444
lab14444444444444444444444444444444444444444
227567
 
constraints2100000000000000000000000000000
constraints2100000000000000000000000000000constraints2100000000000000000000000000000
constraints2100000000000000000000000000000
227567
 
Users66666666666666666666666666666666666666
Users66666666666666666666666666666666666666Users66666666666666666666666666666666666666
Users66666666666666666666666666666666666666
227567
 
DBMS_ddlVFSBFSBS22222222222222222222222222222222222
DBMS_ddlVFSBFSBS22222222222222222222222222222222222DBMS_ddlVFSBFSBS22222222222222222222222222222222222
DBMS_ddlVFSBFSBS22222222222222222222222222222222222
227567
 
Computer Organization and Architecture (1) (1) (1).pptx
Computer Organization and Architecture (1) (1) (1).pptxComputer Organization and Architecture (1) (1) (1).pptx
Computer Organization and Architecture (1) (1) (1).pptx
227567
 
CH03 COMBUTER 000000000000000000000.pptx
CH03 COMBUTER 000000000000000000000.pptxCH03 COMBUTER 000000000000000000000.pptx
CH03 COMBUTER 000000000000000000000.pptx
227567
 

More from 227567 (7)

lab2sql222222222222222222222222222222222
lab2sql222222222222222222222222222222222lab2sql222222222222222222222222222222222
lab2sql222222222222222222222222222222222
 
lab14444444444444444444444444444444444444444
lab14444444444444444444444444444444444444444lab14444444444444444444444444444444444444444
lab14444444444444444444444444444444444444444
 
constraints2100000000000000000000000000000
constraints2100000000000000000000000000000constraints2100000000000000000000000000000
constraints2100000000000000000000000000000
 
Users66666666666666666666666666666666666666
Users66666666666666666666666666666666666666Users66666666666666666666666666666666666666
Users66666666666666666666666666666666666666
 
DBMS_ddlVFSBFSBS22222222222222222222222222222222222
DBMS_ddlVFSBFSBS22222222222222222222222222222222222DBMS_ddlVFSBFSBS22222222222222222222222222222222222
DBMS_ddlVFSBFSBS22222222222222222222222222222222222
 
Computer Organization and Architecture (1) (1) (1).pptx
Computer Organization and Architecture (1) (1) (1).pptxComputer Organization and Architecture (1) (1) (1).pptx
Computer Organization and Architecture (1) (1) (1).pptx
 
CH03 COMBUTER 000000000000000000000.pptx
CH03 COMBUTER 000000000000000000000.pptxCH03 COMBUTER 000000000000000000000.pptx
CH03 COMBUTER 000000000000000000000.pptx
 

Recently uploaded

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
melliereed
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Vivekanand Anglo Vedic Academy
 

Recently uploaded (20)

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
 

chapter 5 - main memory (1).pptxfdjdjgjghdj

  • 3. Semiconductor Memory Types Table 5.1 Semiconductor Memory Types
  • 4. + 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
  • 5. + 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
  • 6. + 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
  • 7. Read-Mostly Memory EPROM Erasable programmable read-only memory Erasure process can be performed repeatedly More expensive than PROM but it has the advantage of the multiple update capability
  • 8. Read-Mostly Memory EEPROM Electrically erasable programmable read-only memory Can be written into at any time without erasing prior contents Combines the advantage of non-volatility with the flexibility of being updatable in place More expensive than EPROM
  • 9. Read-Mostly Memory Flash Memory Intermediate between EPROM and EEPROM in both cost and functionality Uses an electrical erasing technology, does not provide byte-level erasure Microchip is organized so that a section of memory cells are erased in a single action or “flash”
  • 10. RAM technology  RAM technology is divided into two technologies:  Dynamic RAM (DRAM)  Static RAM (SRAM)
  • 11. 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
  • 13. 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
  • 15. SRAM versus DRAM Both volatile  Power must be continuously supplied to the memory to preserve the bit values
  • 16. 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)
  • 17. 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
  • 18. 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
  • 21. Layout of Data Bits and Check Bits Stored word is 8 bits length
  • 22.
  • 23. Check Bit Calculation Stored word 00111001 Fetched word  00111101
  • 24.
  • 25.
  • 26.  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
  • 27. 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).
  • 28. 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:
  • 29. 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 
  • 30. 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 0 1 1 1 0 1 1 0 0 0 1 Fetched bits 1 1 0 1 1 1 0 1 1 0 0 0 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
  • 31. 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 0 1 1 1 0 1 1 0 0 0 1 Fetched bits 0 1 0 1 1 1 0 1 1 0 0 0 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 The bit position 12  D8
  • 32. 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 0 1 1 1 0 1 1 0 0 0 1 Fetched bits 0 0 0 1 1 1 0 1 1 0 0 0 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!
  • 33. 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 0 1 1 1 0 1 1 0 0 0 1 Fetched bits 1 1 0 1 1 1 0 1 1 0 0 0 0 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
  • 34. 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
  • 35. Synchronous DRAM (SDRAM) One of the most widely used forms of DRAM Exchanges data with the processor synchronized to an external clock signal and running at the full speed of the processor/memory bus without imposing wait states 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
  • 37. SDRAM Pin Assignments Table 5.4 SDRAM Pin Assignments
  • 39. RDRAM Developed by Rambus Adopted by Intel for its Pentium and Itanium processors Has become the main competitor to SDRAM Chips are vertical packages with all pins on one side • Exchanges data with the processor over 28 wires no more than 12 centimeters long Bus can address up to 320 RDRAM chips and is rated at 1.6 GBps Bus delivers address and control information using an asynchronous block-oriented protocol • Gets a memory request over the high-speed bus • Request contains the desired address, the type of operation, and the number of bytes in the operation
  • 41. 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)
  • 43. 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
  • 45. Typical 16 Mb DRAM (4M x 4)
  • 48. Interleaved Memory Composed of a collection of DRAM chips Grouped together to form a memory bank Each bank is independently able to service a memory read or write request K banks can service K requests simultaneously, increasing memory read or write rates by a factor of K If consecutive words of memory are stored in different banks, the transfer of a block of memory is speeded up