SlideShare a Scribd company logo
Chapter 5
Internal Memory
Week 3
Narrated Hasan: Knowledge is of two types. Firstly,
knowledge perceived by the heart, and that is useful
knowledge; secondly, the knowledge at on the tip of
one’s tongue, and that is an argument from Allah, the
Exalted and Glorious, against the children of Adam.
Transmitted by Darimi.
Al-Tirmidhi – Hadith 270
Outline
• Memory and it types
• DRAM vs SRAM
• Memory cell structure
• ROM and its types
• Memory organization
• Error correction
Semiconductor Memory Types
Semiconductor Memory
• RAM
—Misnamed as all semiconductor memory is
random access
—Read/Write
—Volatile
—Temporary storage
—Static or dynamic
Memory Cell Operation
Dynamic RAM
• Bits stored as charge in capacitors
• Charges leak
• Need refreshing even when powered
• Simpler construction
• Smaller per bit
• Less expensive
• Need refresh circuits
• Slower
• Main memory
• Essentially analogue
—Level of charge determines value
Dynamic RAM Structure
DRAM Operation
• Address line active when bit read or written
—Transistor switch closed (current flows)
• Write
—Voltage to bit line
– High for 1 low for 0
—Then signal address line
– Transfers charge to capacitor
• Read
—Address line selected
– transistor turns on
—Charge from capacitor fed via bit line to sense amplifier
– Compares with reference value to determine 0 or 1
—Capacitor charge must be restored
Static RAM
• Bits stored as on/off switches
• No charges to leak
• No refreshing needed when powered
• More complex construction
• Larger per bit
• More expensive
• Does not need refresh circuits
• Faster
• Cache
• Digital
—Uses flip-flops
Stating RAM Structure
Static RAM Operation
• Transistor arrangement gives stable logic
state
• State 1
—C1 high, C2 low
—T1 T4 off, T2 T3 on
• State 0
—C2 high, C1 low
—T2 T3 off, T1 T4 on
• Address line transistors T5 T6 is switch
• Write – apply value to B & compliment to
B
• Read – value is on line B
SRAM v DRAM
• Both volatile
—Power needed to preserve data
• Dynamic cell
—Simpler to build, smaller
—More dense
—Less expensive
—Needs refresh
—Larger memory units
• Static
—Faster
—Cache
Read Only Memory (ROM)
• Permanent storage
—Nonvolatile
• Microprogramming (see later)
• Library subroutines
• Systems programs (BIOS)
• Function tables
Types of ROM
• Written during manufacture
—Very expensive for small runs
• Programmable (once)
—PROM
—Needs special equipment to program
• Read “mostly”
—Erasable Programmable (EPROM)
– Erased by UV
—Electrically Erasable (EEPROM)
– Takes much longer to write than read
—Flash memory
– Erase whole memory electrically
Organisation in detail
• A 16Mbit chip can be organised 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 organised as a 2048
x 2048 x 4bit 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
Refreshing
• Refresh circuit included on chip
• Disable chip
• Count through rows
• Read & Write back
• Takes time
• Slows down apparent performance
Typical 16 Mb DRAM (4M x 4)
Packaging
1MByte Module Organisation
Error Correction
• Hard Failure
—Permanent defect
• Soft Error
—Random, non-destructive
—No permanent damage to memory
• Detected using Hamming error correcting
code
Error Correcting Code Function
Hamming Error correction code
Example (single bit error) at M=8
• Determine code length
• Bit by bit comparison is done using XOR
and the result is called syndrome,
indicating the error bit
• Length of syndrome bits = length of K bits
and range between 0-2^K -1
• Calculate check bits using
• The code just described is known as a
single-error-correcting (SEC)
Assuming M= 00111001
Advanced DRAM Organization
• Basic DRAM same since first RAM chips
• Enhanced DRAM
—Contains small SRAM as well
—SRAM holds last line read (c.f. Cache!)
• Cache DRAM
—Larger SRAM component
—Use as cache or serial buffer
Synchronous DRAM (SDRAM)
• Access is synchronized with an external clock
• Address is presented to RAM
• RAM finds data (CPU waits in conventional
DRAM)
• Since SDRAM moves data in time with system
clock, CPU knows when data will be ready
• CPU does not have to wait, it can do something
else
• Burst mode allows SDRAM to set up stream of
data and fire it out in block
• DDR-SDRAM sends data twice per clock cycle
(leading & trailing edge)
SDRAM
SDRAM Read Timing
RAMBUS
• Adopted by Intel for Pentium & Itanium
• Main competitor to SDRAM
• Vertical package – all pins on one side
• Data exchange over 28 wires < cm long
• Bus addresses up to 320 RDRAM chips at
1.6Gbps
• Asynchronous block protocol
—480ns access time
—Then 1.6 Gbps
RAMBUS Diagram
DDR SDRAM
• SDRAM can only send data once per clock
• Double-data-rate SDRAM can send data
twice per clock cycle
—Rising edge and falling edge
Cache DRAM
• Mitsubishi
• Integrates small SRAM cache (16 kb) onto
generic DRAM chip
• Used as true cache
—64-bit lines
—Effective for ordinary random access
• To support serial access of block of data
—E.g. refresh bit-mapped screen
– CDRAM can prefetch data from DRAM into SRAM
buffer
– Subsequent accesses solely to SRAM
Any Question??

More Related Content

Similar to Week 3 intro to computer organization and assembly language (20)

PDF
Basics_of_Semiconductor_Memories_Microprocessor_Microcontroller.pdf
drdebarshi1993
 
PPTX
Memory organization
Dhaval Bagal
 
PPTX
Introduction to the memory system embedded.pptx
RiniBhandari
 
PPT
digital logic circuits, digital component memory unit
Rai University
 
PPT
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
Rai University
 
PDF
internal_memory
limyamahgoub
 
PPT
B.sc cs-ii-u-1.7 digital logic circuits, digital component memory unit
Rai University
 
PDF
COMPUTER ORGANIZATION NOTES Unit 5
Dr.MAYA NAYAK
 
PPTX
chapter 5 - main memory (1).pptxfdjdjgjghdj
227567
 
PPTX
Digital electronics and logic design
Toufiq Akbar
 
PPT
Internal Memory FIT NED UNIVERSITY OF EN
moizbhai999
 
DOCX
301378156 design-of-sram-in-verilog
Srinivas Naidu
 
PPTX
Unit IV Memory.pptx
madhukarvnimbalkar
 
PPT
primary memory
Ramya Kotyan
 
PPTX
ICT-Lecture_07(Primary Memory and its types).pptx
muhammadanus20
 
PPTX
ROM (Rhehuiejead Only Mem67😁😁❤ory).pptx
SagniTolasa
 
PPTX
Unit 4 Memory Organization_Computer Organization and Architecture
shivanigarg229353
 
PPTX
CH05 Internal Memory for Computer Organization and Architecture
vaibhavsurana2004
 
PPTX
Memory And Storages
Arsalan Qureshi
 
PPTX
Ch05 coa9e
Thodoris Skylatos
 
Basics_of_Semiconductor_Memories_Microprocessor_Microcontroller.pdf
drdebarshi1993
 
Memory organization
Dhaval Bagal
 
Introduction to the memory system embedded.pptx
RiniBhandari
 
digital logic circuits, digital component memory unit
Rai University
 
Bca 2nd sem-u-1.7 digital logic circuits, digital component memory unit
Rai University
 
internal_memory
limyamahgoub
 
B.sc cs-ii-u-1.7 digital logic circuits, digital component memory unit
Rai University
 
COMPUTER ORGANIZATION NOTES Unit 5
Dr.MAYA NAYAK
 
chapter 5 - main memory (1).pptxfdjdjgjghdj
227567
 
Digital electronics and logic design
Toufiq Akbar
 
Internal Memory FIT NED UNIVERSITY OF EN
moizbhai999
 
301378156 design-of-sram-in-verilog
Srinivas Naidu
 
Unit IV Memory.pptx
madhukarvnimbalkar
 
primary memory
Ramya Kotyan
 
ICT-Lecture_07(Primary Memory and its types).pptx
muhammadanus20
 
ROM (Rhehuiejead Only Mem67😁😁❤ory).pptx
SagniTolasa
 
Unit 4 Memory Organization_Computer Organization and Architecture
shivanigarg229353
 
CH05 Internal Memory for Computer Organization and Architecture
vaibhavsurana2004
 
Memory And Storages
Arsalan Qureshi
 
Ch05 coa9e
Thodoris Skylatos
 

More from AdeelAsghar36 (18)

PDF
Week 3 intro to computer organization and assembly language
AdeelAsghar36
 
PDF
Week 2 intro to computer organization and assembly language
AdeelAsghar36
 
PDF
Week 1 intro to computer organization and assembly language
AdeelAsghar36
 
PPTX
CC-5 - MOD.pptx Cloud Vertulization nand
AdeelAsghar36
 
PPTX
CC-11 Part b Software as a Service Cloud Architecxture
AdeelAsghar36
 
PPTX
CC-11 Part a Software as a Service Cloud Architecxture
AdeelAsghar36
 
PPTX
CC-9b AWS Infra as a service part 3 (AWS).pptx
AdeelAsghar36
 
PPTX
CC-8-9 Infrastructure as a service slide part b
AdeelAsghar36
 
PPTX
GNCC-9 cloud architecture (infrastructure as a Service).pptx
AdeelAsghar36
 
PPTX
Lecture 10b - Ch No. 04 (Part 02) (1).pptx
AdeelAsghar36
 
PPTX
Lecture 10 - Ch No. 7 Input and Output.pptx
AdeelAsghar36
 
PPTX
Introduction to computer_Lecture 1 of IICT course
AdeelAsghar36
 
PPTX
Chapter 3 part 2 Interconnections Computer organization
AdeelAsghar36
 
PPTX
COAL LAB 2 data addressing modes and register
AdeelAsghar36
 
PDF
Soft Sand Minimalist Modern Thesis Defense Presentation.pdf
AdeelAsghar36
 
PPTX
Simplified AES from information security
AdeelAsghar36
 
PPTX
Hash Functions from Information Security
AdeelAsghar36
 
PDF
lect 03- MIT Addressing Modes.pdf
AdeelAsghar36
 
Week 3 intro to computer organization and assembly language
AdeelAsghar36
 
Week 2 intro to computer organization and assembly language
AdeelAsghar36
 
Week 1 intro to computer organization and assembly language
AdeelAsghar36
 
CC-5 - MOD.pptx Cloud Vertulization nand
AdeelAsghar36
 
CC-11 Part b Software as a Service Cloud Architecxture
AdeelAsghar36
 
CC-11 Part a Software as a Service Cloud Architecxture
AdeelAsghar36
 
CC-9b AWS Infra as a service part 3 (AWS).pptx
AdeelAsghar36
 
CC-8-9 Infrastructure as a service slide part b
AdeelAsghar36
 
GNCC-9 cloud architecture (infrastructure as a Service).pptx
AdeelAsghar36
 
Lecture 10b - Ch No. 04 (Part 02) (1).pptx
AdeelAsghar36
 
Lecture 10 - Ch No. 7 Input and Output.pptx
AdeelAsghar36
 
Introduction to computer_Lecture 1 of IICT course
AdeelAsghar36
 
Chapter 3 part 2 Interconnections Computer organization
AdeelAsghar36
 
COAL LAB 2 data addressing modes and register
AdeelAsghar36
 
Soft Sand Minimalist Modern Thesis Defense Presentation.pdf
AdeelAsghar36
 
Simplified AES from information security
AdeelAsghar36
 
Hash Functions from Information Security
AdeelAsghar36
 
lect 03- MIT Addressing Modes.pdf
AdeelAsghar36
 
Ad

Recently uploaded (20)

PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PPTX
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PPTX
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
PDF
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PPTX
Presentation: Climate Citizenship Digital Education
Karl Donert
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PPTX
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
PPTX
Gall bladder, Small intestine and Large intestine.pptx
rekhapositivity
 
PPTX
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
PPTX
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
PDF
Federal dollars withheld by district, charter, grant recipient
Mebane Rash
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
Presentation: Climate Citizenship Digital Education
Karl Donert
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
Gall bladder, Small intestine and Large intestine.pptx
rekhapositivity
 
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
Federal dollars withheld by district, charter, grant recipient
Mebane Rash
 
Ad

Week 3 intro to computer organization and assembly language

  • 2. Narrated Hasan: Knowledge is of two types. Firstly, knowledge perceived by the heart, and that is useful knowledge; secondly, the knowledge at on the tip of one’s tongue, and that is an argument from Allah, the Exalted and Glorious, against the children of Adam. Transmitted by Darimi. Al-Tirmidhi – Hadith 270
  • 3. Outline • Memory and it types • DRAM vs SRAM • Memory cell structure • ROM and its types • Memory organization • Error correction
  • 5. Semiconductor Memory • RAM —Misnamed as all semiconductor memory is random access —Read/Write —Volatile —Temporary storage —Static or dynamic
  • 7. Dynamic RAM • Bits stored as charge in capacitors • Charges leak • Need refreshing even when powered • Simpler construction • Smaller per bit • Less expensive • Need refresh circuits • Slower • Main memory • Essentially analogue —Level of charge determines value
  • 9. DRAM Operation • Address line active when bit read or written —Transistor switch closed (current flows) • Write —Voltage to bit line – High for 1 low for 0 —Then signal address line – Transfers charge to capacitor • Read —Address line selected – transistor turns on —Charge from capacitor fed via bit line to sense amplifier – Compares with reference value to determine 0 or 1 —Capacitor charge must be restored
  • 10. Static RAM • Bits stored as on/off switches • No charges to leak • No refreshing needed when powered • More complex construction • Larger per bit • More expensive • Does not need refresh circuits • Faster • Cache • Digital —Uses flip-flops
  • 12. Static RAM Operation • Transistor arrangement gives stable logic state • State 1 —C1 high, C2 low —T1 T4 off, T2 T3 on • State 0 —C2 high, C1 low —T2 T3 off, T1 T4 on • Address line transistors T5 T6 is switch • Write – apply value to B & compliment to B • Read – value is on line B
  • 13. SRAM v DRAM • Both volatile —Power needed to preserve data • Dynamic cell —Simpler to build, smaller —More dense —Less expensive —Needs refresh —Larger memory units • Static —Faster —Cache
  • 14. Read Only Memory (ROM) • Permanent storage —Nonvolatile • Microprogramming (see later) • Library subroutines • Systems programs (BIOS) • Function tables
  • 15. Types of ROM • Written during manufacture —Very expensive for small runs • Programmable (once) —PROM —Needs special equipment to program • Read “mostly” —Erasable Programmable (EPROM) – Erased by UV —Electrically Erasable (EEPROM) – Takes much longer to write than read —Flash memory – Erase whole memory electrically
  • 16. Organisation in detail • A 16Mbit chip can be organised 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 organised as a 2048 x 2048 x 4bit 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
  • 17. Refreshing • Refresh circuit included on chip • Disable chip • Count through rows • Read & Write back • Takes time • Slows down apparent performance
  • 18. Typical 16 Mb DRAM (4M x 4)
  • 21. Error Correction • Hard Failure —Permanent defect • Soft Error —Random, non-destructive —No permanent damage to memory • Detected using Hamming error correcting code
  • 24. Example (single bit error) at M=8 • Determine code length • Bit by bit comparison is done using XOR and the result is called syndrome, indicating the error bit • Length of syndrome bits = length of K bits and range between 0-2^K -1 • Calculate check bits using • The code just described is known as a single-error-correcting (SEC)
  • 26. Advanced DRAM Organization • Basic DRAM same since first RAM chips • Enhanced DRAM —Contains small SRAM as well —SRAM holds last line read (c.f. Cache!) • Cache DRAM —Larger SRAM component —Use as cache or serial buffer
  • 27. Synchronous DRAM (SDRAM) • Access is synchronized with an external clock • Address is presented to RAM • RAM finds data (CPU waits in conventional DRAM) • Since SDRAM moves data in time with system clock, CPU knows when data will be ready • CPU does not have to wait, it can do something else • Burst mode allows SDRAM to set up stream of data and fire it out in block • DDR-SDRAM sends data twice per clock cycle (leading & trailing edge)
  • 28. SDRAM
  • 30. RAMBUS • Adopted by Intel for Pentium & Itanium • Main competitor to SDRAM • Vertical package – all pins on one side • Data exchange over 28 wires < cm long • Bus addresses up to 320 RDRAM chips at 1.6Gbps • Asynchronous block protocol —480ns access time —Then 1.6 Gbps
  • 32. DDR SDRAM • SDRAM can only send data once per clock • Double-data-rate SDRAM can send data twice per clock cycle —Rising edge and falling edge
  • 33. Cache DRAM • Mitsubishi • Integrates small SRAM cache (16 kb) onto generic DRAM chip • Used as true cache —64-bit lines —Effective for ordinary random access • To support serial access of block of data —E.g. refresh bit-mapped screen – CDRAM can prefetch data from DRAM into SRAM buffer – Subsequent accesses solely to SRAM