SlideShare a Scribd company logo
1 of 34
Download to read offline
Madam Raini Hassan
Office: C5 - 23, Level 5, KICT Building
Department: Computer Science
Emails: hrai@iium.edu.my, hraini.iii@gmail.com
1
Du’a for Study
Semester II 2014/2015 2
LECTURE 06
Internal Memory
(Chapter 5)
Outline
• Semiconductor Main
Memory
Organization
DRAM and SRAM
Types of ROM
Chip Logic
Chip Packaging
Module Organization
Interleaved Memory
• Error Correction
• Advanced DRAM
Organization
Synchronous DRAM
Rambus DRAM
DDR SDRAM
Cache DRAM
Semester II 2014/2015 4
5
Organization: Memory Cell
• The basic element of semiconductor memory.
• Properties:
– They exhibit two stable (or semi-stable) states, which can be
used to represent binary 1 and 0.
– They capable of being written into (at least one) to set the
state.
– They are capable of being read to sense the data.
Semester II 2014/2015
6
Organization: Memory Cell
Operation
• The select terminal selects a memory cell for a read or
write operation.
• The control terminal indicated read or write.
Semester II 2014/2015
Semiconductor Memory Types
Table 5.1 Semiconductor Memory Types
The most common is referred to as Random-access Memory (RAM).
7
8
Semiconductor Memory: RAM
• Misnamed as all semiconductor memory is random
access.
• Possible for both Read/Write operation
• Volatile – once the power supply is interrupted, the data
will be lost
• Used for temporary storage
• Has 2 types:
– Dynamic
– Static
Semester II 2014/2015
9
Semiconductor Memory: DRAM
• Constructed by an array of cells, each cell containing 1
transistor and a tiny capacitor.
• These cells store data as charge in capacitors - presence or
absence of charge in a capacitor is interpreted as a binary 1
or 0
• Charges leak; the term dynamic refers to the tendency of
stored charge to leak away even with power continuously
applied.
• 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
• Simpler construction Semester II 2014/2015
10
Semiconductor Memory: DRAM
• Smaller per bit
• Less expensive
• Need refresh circuits
• Slower
• Used for main memory
• Essentially analogue
– The capacitor can store any charge value within a range; level
of charge determines value
Semester II 2014/2015
11
Semiconductor Memory: DRAM Op
• Address line active when bit read or
written
– The transistor acts as a switch that is closed
(allow current to flow) if a voltage is
applied to the address line and open (no
current flow) if no voltage is present on
the address line.
• Write Operation:
– Voltage to bit line
– High voltage = 1; low voltage = 0
– A signal is then applied to the address line
– allowing a charge to be transferred to the
capacitor Semester II 2014/2015
12
Semiconductor Memory: DRAM Op
• Read Operation:
– When address line selected
• transistor turns on
– Charge from capacitor fed via bit line
to sense amplifier
• Sense amplifiers compares capacitor
voltage with reference value to
determine 0 or 1
– Capacitor charge must be restored to
complete the operation.
Semester II 2014/2015
13
Semiconductor Memory: SRAM
• Bits stored as on/off switches
• No charges to leak & no refreshing needed when powered
• More complex construction & larger per bit
• Does not need refresh circuits
• Faster and more expensive
• Used for cache
• Will hold its data as long as power is supplied to it.
• Digital – a digital device, using the same logic elements used
in the processor
– Uses flip-flops – traditional flip-flop logic-gate
configuration. Semester II 2014/2015
14
Semiconductor Memory: SRAM Op
• Transistor arrangement gives stable
logic state (T1..T4)
• In logic State 1
– C1 high, C2 low and T1 T4 off, T2 T3 on
• In logic State 0
– C2 high, C1 low andT2 T3 off, T1 T4 on
• Address line transistors T5 T6 is switch
– when on, allowing a read/write
operation
• Write – apply value to B &
compliment to B
• Read – value is on line B
Semester II 2014/2015
SRAM versus DRAM
• Both volatile
 Power must be continuously supplied to the memory to preserve the bit
values
• 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)
Semester II 2014/2015 15
Semiconductor 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 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
Semester II 2014/2015 16
Semiconductor Memory: Types of
ROM - PROM
• Stands for Programmable ROM
• 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
Semester II 2014/2015 17
Semiconductor Memory: Types of
ROM -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
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
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”
18
• A 16Mbit chip can be organized as 1M of 16 bit words
• A bit per chip system has 16 lots of 1Mbit chip with bit 1 of
each word in chip 1 and so on
• A 16Mbit chip can be organized as a 2048 x 2048 x 4 bit
array
– Reduces number of address pins
– Multiplex row address and column address
– 11 pins to address (211=2048)
– Adding one more pin doubles range of values so x4 capacity
Chip Logic
Semester II 2014/2015 19
Chip Logic:
Typical 16 Mb DRAM (4M x 4)
20
Chip Packaging
Semester II 2014/2015 21
ModuleOrganization
Memory address
register (MAR)
256K, 8-bit word
8 pieces of
256K ×1-bit chip
22
Module Organisation (1M ×8-bit)
23
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.
Semester II 2014/2015 24
25
Error Correction
• A semiconductor memory is subject to errors. 2
categories:
• Hard Failure
– Permanent physical defect so that the memory cell/cells
affected cannot reliably store data but become stuck at 0 or 1
or switch erratically between 0 and 1.
• Soft Error
– Random, non-destructive events that alters the contents of
one or memory cells.
– No permanent damage to memory.
– Can be caused by power supply problem.
Semester II 2014/2015
Semester II 2014/2015 26
Error Correction
• Both are not desirable, and most modern main memory
have systems include logic for both detecting and
correcting errors.
• The simplest of the error-correcting codes is the
Hamming code.
27
Error Correction: Error-
Correcting Code Function
1. When data are to be read into
memory, a calculation depicted as
a function f is performed on the
data to produce a code.
2. Both the code and the data are
stores, thus if an M-bit word of
data is to be stored, and the code
is of length K bits, then the actual
size of the stored word in M + K
bits.
3. When the previously stored
word is read out, the code is used
to detect and possibly correct
errors.
Semester II 2014/2015
28
Error Correction: Error-
Correcting Code Function
4. A new set of K code bits is generated
from the M data bits and compared with
the fetched bits.
5. The comparison yields one of the 3
results:
– 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.
6. A code is characterized by the number
of bits errors in a word that it can correct
and detect.
Semester II 2014/2015
Error
Correction:
Hamming
Error
Correcting
Code
29
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 by 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 30
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 31
RDRAMDeveloped 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
32
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)
Semester II 2014/2015 33
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
Semester II 2014/2015 34

More Related Content

What's hot

Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecture
Piyush Mittal
 
Ram and-rom-chips
Ram and-rom-chipsRam and-rom-chips
Ram and-rom-chips
Anuj Modi
 

What's hot (20)

multiprocessors and multicomputers
 multiprocessors and multicomputers multiprocessors and multicomputers
multiprocessors and multicomputers
 
Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecture
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processor
 
Internal memory
Internal memoryInternal memory
Internal memory
 
Communication model of parallel platforms
Communication model of parallel platformsCommunication model of parallel platforms
Communication model of parallel platforms
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
Ram and-rom-chips
Ram and-rom-chipsRam and-rom-chips
Ram and-rom-chips
 
Communication costs in parallel machines
Communication costs in parallel machinesCommunication costs in parallel machines
Communication costs in parallel machines
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
 
Physical organization of parallel platforms
Physical organization of parallel platformsPhysical organization of parallel platforms
Physical organization of parallel platforms
 
Heterogeneous computing
Heterogeneous computingHeterogeneous computing
Heterogeneous computing
 
Resource management
Resource managementResource management
Resource management
 
program partitioning and scheduling IN Advanced Computer Architecture
program partitioning and scheduling  IN Advanced Computer Architectureprogram partitioning and scheduling  IN Advanced Computer Architecture
program partitioning and scheduling IN Advanced Computer Architecture
 
Cache memory
Cache memoryCache memory
Cache memory
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Cache coherence ppt
Cache coherence pptCache coherence ppt
Cache coherence ppt
 
Multiprocessor architecture
Multiprocessor architectureMultiprocessor architecture
Multiprocessor architecture
 
Semiconductor Memories
Semiconductor MemoriesSemiconductor Memories
Semiconductor Memories
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
Cpu registers
Cpu registersCpu registers
Cpu registers
 

Viewers also liked

Semiconductor memories
Semiconductor memoriesSemiconductor memories
Semiconductor memories
SambitShreeman
 
Ch1-Software Engineering 9
Ch1-Software Engineering 9Ch1-Software Engineering 9
Ch1-Software Engineering 9
Ian Sommerville
 
RAM and ROM Memory Overview
RAM and ROM Memory OverviewRAM and ROM Memory Overview
RAM and ROM Memory Overview
Pankaj Khodifad
 

Viewers also liked (16)

Internal memory
Internal memoryInternal memory
Internal memory
 
Ch05 coa9e
Ch05 coa9eCh05 coa9e
Ch05 coa9e
 
05 Internal Memory
05  Internal  Memory05  Internal  Memory
05 Internal Memory
 
05 internal memory
05 internal memory05 internal memory
05 internal memory
 
digital logic circuits, digital component memory unit
 digital logic circuits, digital component memory unit digital logic circuits, digital component memory unit
digital logic circuits, digital component memory unit
 
Computer memory
Computer memoryComputer memory
Computer memory
 
Millepede- MEMS based memory device from IBM
Millepede- MEMS based memory device from IBMMillepede- MEMS based memory device from IBM
Millepede- MEMS based memory device from IBM
 
Internal storage of a computer system
Internal storage of a computer systemInternal storage of a computer system
Internal storage of a computer system
 
Semiconductor memories
Semiconductor memoriesSemiconductor memories
Semiconductor memories
 
Semiconductor memory
Semiconductor memorySemiconductor memory
Semiconductor memory
 
Ch1-Software Engineering 9
Ch1-Software Engineering 9Ch1-Software Engineering 9
Ch1-Software Engineering 9
 
RAM and ROM Memory Overview
RAM and ROM Memory OverviewRAM and ROM Memory Overview
RAM and ROM Memory Overview
 
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3
Lec11 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Memory part3
 
Semiconductor memories
Semiconductor memoriesSemiconductor memories
Semiconductor memories
 
Internal memory
Internal memoryInternal memory
Internal memory
 
Basics Of Semiconductor Memories
Basics Of Semiconductor MemoriesBasics Of Semiconductor Memories
Basics Of Semiconductor Memories
 

Similar to Csc1401 lecture06 - internal memory

COMPUTER ARCHITECTURE-2.pptx
COMPUTER ARCHITECTURE-2.pptxCOMPUTER ARCHITECTURE-2.pptx
COMPUTER ARCHITECTURE-2.pptx
ssusere16bd9
 
5_Embedded Systems مختصر.pdf
5_Embedded Systems  مختصر.pdf5_Embedded Systems  مختصر.pdf
5_Embedded Systems مختصر.pdf
aliamjd
 

Similar to Csc1401 lecture06 - internal memory (20)

Memory organization
Memory organizationMemory organization
Memory organization
 
Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
 
computer architecture and organisation
computer architecture and organisationcomputer architecture and organisation
computer architecture and organisation
 
COMPUTER ARCHITECTURE-2.pptx
COMPUTER ARCHITECTURE-2.pptxCOMPUTER ARCHITECTURE-2.pptx
COMPUTER ARCHITECTURE-2.pptx
 
Exploring Of System Hardware
Exploring Of System HardwareExploring Of System Hardware
Exploring Of System Hardware
 
COA (Unit_4.pptx)
COA (Unit_4.pptx)COA (Unit_4.pptx)
COA (Unit_4.pptx)
 
Unit IV Memory.pptx
Unit IV  Memory.pptxUnit IV  Memory.pptx
Unit IV Memory.pptx
 
Multiprocessor.pptx
 Multiprocessor.pptx Multiprocessor.pptx
Multiprocessor.pptx
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation ppt
 
9 semiconductor memory
9 semiconductor memory9 semiconductor memory
9 semiconductor memory
 
sramanddram.ppt
sramanddram.pptsramanddram.ppt
sramanddram.ppt
 
5_Embedded Systems مختصر.pdf
5_Embedded Systems  مختصر.pdf5_Embedded Systems  مختصر.pdf
5_Embedded Systems مختصر.pdf
 
E.s unit 4 and 5
E.s unit 4 and 5E.s unit 4 and 5
E.s unit 4 and 5
 
MEMORY & I/O SYSTEMS
MEMORY & I/O SYSTEMS                          MEMORY & I/O SYSTEMS
MEMORY & I/O SYSTEMS
 
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unitBca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
 
Chapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworldChapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworld
 
ARM architcture
ARM architcture ARM architcture
ARM architcture
 
Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer Architecture
 
unit4 and unit5.pptx
unit4 and unit5.pptxunit4 and unit5.pptx
unit4 and unit5.pptx
 
B.sc cs-ii-u-1.7 digital logic circuits, digital component memory unit
B.sc cs-ii-u-1.7 digital logic circuits, digital component memory unitB.sc cs-ii-u-1.7 digital logic circuits, digital component memory unit
B.sc cs-ii-u-1.7 digital logic circuits, digital component memory unit
 

More from IIUM (20)

How to use_000webhost
How to use_000webhostHow to use_000webhost
How to use_000webhost
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Kreydle internship-multimedia
Kreydle internship-multimediaKreydle internship-multimedia
Kreydle internship-multimedia
 
03phpbldgblock
03phpbldgblock03phpbldgblock
03phpbldgblock
 
Chap2 practice key
Chap2 practice keyChap2 practice key
Chap2 practice key
 
Group p1
Group p1Group p1
Group p1
 
Tutorial import n auto pilot blogspot friendly seo
Tutorial import n auto pilot blogspot friendly seoTutorial import n auto pilot blogspot friendly seo
Tutorial import n auto pilot blogspot friendly seo
 
Visual sceneperception encycloperception-sage-oliva2009
Visual sceneperception encycloperception-sage-oliva2009Visual sceneperception encycloperception-sage-oliva2009
Visual sceneperception encycloperception-sage-oliva2009
 
03 the htm_lforms
03 the htm_lforms03 the htm_lforms
03 the htm_lforms
 
Exercise on algo analysis answer
Exercise on algo analysis   answerExercise on algo analysis   answer
Exercise on algo analysis answer
 
Redo midterm
Redo midtermRedo midterm
Redo midterm
 
Heaps
HeapsHeaps
Heaps
 
Report format
Report formatReport format
Report format
 
Edpuzzle guidelines
Edpuzzle guidelinesEdpuzzle guidelines
Edpuzzle guidelines
 
Final Exam Paper
Final Exam PaperFinal Exam Paper
Final Exam Paper
 
Final Exam Paper
Final Exam PaperFinal Exam Paper
Final Exam Paper
 
Group assignment 1 s21516
Group assignment 1 s21516Group assignment 1 s21516
Group assignment 1 s21516
 
Avl tree-rotations
Avl tree-rotationsAvl tree-rotations
Avl tree-rotations
 
Week12 graph
Week12   graph Week12   graph
Week12 graph
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Recently uploaded (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 

Csc1401 lecture06 - internal memory

  • 1. Madam Raini Hassan Office: C5 - 23, Level 5, KICT Building Department: Computer Science Emails: hrai@iium.edu.my, hraini.iii@gmail.com 1
  • 2. Du’a for Study Semester II 2014/2015 2
  • 4. Outline • Semiconductor Main Memory Organization DRAM and SRAM Types of ROM Chip Logic Chip Packaging Module Organization Interleaved Memory • Error Correction • Advanced DRAM Organization Synchronous DRAM Rambus DRAM DDR SDRAM Cache DRAM Semester II 2014/2015 4
  • 5. 5 Organization: Memory Cell • The basic element of semiconductor memory. • Properties: – They exhibit two stable (or semi-stable) states, which can be used to represent binary 1 and 0. – They capable of being written into (at least one) to set the state. – They are capable of being read to sense the data. Semester II 2014/2015
  • 6. 6 Organization: Memory Cell Operation • The select terminal selects a memory cell for a read or write operation. • The control terminal indicated read or write. Semester II 2014/2015
  • 7. Semiconductor Memory Types Table 5.1 Semiconductor Memory Types The most common is referred to as Random-access Memory (RAM). 7
  • 8. 8 Semiconductor Memory: RAM • Misnamed as all semiconductor memory is random access. • Possible for both Read/Write operation • Volatile – once the power supply is interrupted, the data will be lost • Used for temporary storage • Has 2 types: – Dynamic – Static Semester II 2014/2015
  • 9. 9 Semiconductor Memory: DRAM • Constructed by an array of cells, each cell containing 1 transistor and a tiny capacitor. • These cells store data as charge in capacitors - presence or absence of charge in a capacitor is interpreted as a binary 1 or 0 • Charges leak; the term dynamic refers to the tendency of stored charge to leak away even with power continuously applied. • 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 • Simpler construction Semester II 2014/2015
  • 10. 10 Semiconductor Memory: DRAM • Smaller per bit • Less expensive • Need refresh circuits • Slower • Used for main memory • Essentially analogue – The capacitor can store any charge value within a range; level of charge determines value Semester II 2014/2015
  • 11. 11 Semiconductor Memory: DRAM Op • Address line active when bit read or written – The transistor acts as a switch that is closed (allow current to flow) if a voltage is applied to the address line and open (no current flow) if no voltage is present on the address line. • Write Operation: – Voltage to bit line – High voltage = 1; low voltage = 0 – A signal is then applied to the address line – allowing a charge to be transferred to the capacitor Semester II 2014/2015
  • 12. 12 Semiconductor Memory: DRAM Op • Read Operation: – When address line selected • transistor turns on – Charge from capacitor fed via bit line to sense amplifier • Sense amplifiers compares capacitor voltage with reference value to determine 0 or 1 – Capacitor charge must be restored to complete the operation. Semester II 2014/2015
  • 13. 13 Semiconductor Memory: SRAM • Bits stored as on/off switches • No charges to leak & no refreshing needed when powered • More complex construction & larger per bit • Does not need refresh circuits • Faster and more expensive • Used for cache • Will hold its data as long as power is supplied to it. • Digital – a digital device, using the same logic elements used in the processor – Uses flip-flops – traditional flip-flop logic-gate configuration. Semester II 2014/2015
  • 14. 14 Semiconductor Memory: SRAM Op • Transistor arrangement gives stable logic state (T1..T4) • In logic State 1 – C1 high, C2 low and T1 T4 off, T2 T3 on • In logic State 0 – C2 high, C1 low andT2 T3 off, T1 T4 on • Address line transistors T5 T6 is switch – when on, allowing a read/write operation • Write – apply value to B & compliment to B • Read – value is on line B Semester II 2014/2015
  • 15. SRAM versus DRAM • Both volatile  Power must be continuously supplied to the memory to preserve the bit values • 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) Semester II 2014/2015 15
  • 16. Semiconductor 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 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 Semester II 2014/2015 16
  • 17. Semiconductor Memory: Types of ROM - PROM • Stands for Programmable ROM • 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 Semester II 2014/2015 17
  • 18. Semiconductor Memory: Types of ROM -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 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 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” 18
  • 19. • A 16Mbit chip can be organized as 1M of 16 bit words • A bit per chip system has 16 lots of 1Mbit chip with bit 1 of each word in chip 1 and so on • A 16Mbit chip can be organized as a 2048 x 2048 x 4 bit array – Reduces number of address pins – Multiplex row address and column address – 11 pins to address (211=2048) – Adding one more pin doubles range of values so x4 capacity Chip Logic Semester II 2014/2015 19
  • 20. Chip Logic: Typical 16 Mb DRAM (4M x 4) 20
  • 22. ModuleOrganization Memory address register (MAR) 256K, 8-bit word 8 pieces of 256K ×1-bit chip 22
  • 23. Module Organisation (1M ×8-bit) 23
  • 24. 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. Semester II 2014/2015 24
  • 25. 25 Error Correction • A semiconductor memory is subject to errors. 2 categories: • Hard Failure – Permanent physical defect so that the memory cell/cells affected cannot reliably store data but become stuck at 0 or 1 or switch erratically between 0 and 1. • Soft Error – Random, non-destructive events that alters the contents of one or memory cells. – No permanent damage to memory. – Can be caused by power supply problem. Semester II 2014/2015
  • 26. Semester II 2014/2015 26 Error Correction • Both are not desirable, and most modern main memory have systems include logic for both detecting and correcting errors. • The simplest of the error-correcting codes is the Hamming code.
  • 27. 27 Error Correction: Error- Correcting Code Function 1. When data are to be read into memory, a calculation depicted as a function f is performed on the data to produce a code. 2. Both the code and the data are stores, thus if an M-bit word of data is to be stored, and the code is of length K bits, then the actual size of the stored word in M + K bits. 3. When the previously stored word is read out, the code is used to detect and possibly correct errors. Semester II 2014/2015
  • 28. 28 Error Correction: Error- Correcting Code Function 4. A new set of K code bits is generated from the M data bits and compared with the fetched bits. 5. The comparison yields one of the 3 results: – 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. 6. A code is characterized by the number of bits errors in a word that it can correct and detect. Semester II 2014/2015
  • 30. 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 by 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 30
  • 31. 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 31
  • 32. RDRAMDeveloped 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 32
  • 33. 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) Semester II 2014/2015 33
  • 34. 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 Semester II 2014/2015 34