SlideShare a Scribd company logo
THE MEMORY SYSTEM
Introduction
• Memory is one of the most important functional units of a computer.
• Used to store both instructions and data.
• Stores as bits (0’s and 1’s), usually organized in terms of bytes.
• How are the data stored in memory accessed?
• Every memory location has a unique address.
• A memory is said to be byte addressable if every byte of data has a unique
address.
• Some memory systems are word addressable also (every addressed loca8ons
consists of multiple bytes, say, 32 bits or 4 bytes).
Connection between Processor and Memory
• Address bus provides the
address of the memory
location to be accessed.
• Data bus transfers the
data read from memory,
or data to be written into
memory.
• Bidirectional.
• Control bus provides
various signals like READ,
WRITE, etc.
An Example Memory Module
n address lines : The maximum
number of memory locations
that can be accessed is .
• m data lines : The number of
bits stored in every addressable
location is m.
• The RD/WR’ control line selects
the memory for reading or
writing (1: read, 0: write).
• The chip select line (CS’) when
active (=0) will enable the chip;
otherwise, the data bus is in the
high impedance state.
Classification of Memory Systems
a) Volatile versus Non-volatile:
• A volatile memory system is one where the stored data is lost when the
power is switched off.
Examples: CMOS static memory, CMOS dynamic memory.
Dynamic memory in addition requires periodic refreshing.
• A non-volatile memory system is one where the stored data is retained
even when the power is switched off.
Examples: Read-only memory, Magnetic disk, CDROM/DVD, Flash memory,Resistive memory.
b) Random-access versus Direct/Sequential access:
– A memory is said to be random-access when the read/write 8me is
independent of the memory location being accessed.
• Examples: CMOS memory (RAM and ROM).
– A memory is said to be sequential access when the stored data can
only be accessed sequentially in a particular order.
• Examples: Magnetic tape.
– A memory is said to be direct or semi-random access when part of the
access is sequential and part is random.
• Example: Magnetic disk.
• We can directly go to a track after which access will be sequential.
c) Read-only versus Random-access:
– Read-only Memory (ROM) is one where data once stored in permanent
or semi-permanent.
• Data written (programmed) during manufacture or in the laboratory.
• Examples: ROM, PROM, EPROM, EEPROM.
– Random Access Memory (RAM) is one where data access time is the
same independent of the location (address).
• Used in main / cache memory systems.
• Example: Static RAM (SRAM) à data once written are retained as long as
power is on.
• Example: Dynamic RAM (DRAM) à requires periodic refreshing even when
power is on (data stored as charge on tiny capacitors).
• Some important questions?
– How to make the memory system work faster?
– How to increase the data transfer rate between CPU and memory?
– How to address the ever increasing storage needs of applications?
• Some possible solutions:
– Cache Memory: to increase the effective speed of the memory system.
– Virtual Memory: to increase the effective size of the memory system.
Organization of Cells in an 8x4 Memory
Chip
Organization of Cells in an 8x4 Memory Chip (cont..)
• A 32-bit memory chip organized as 8 x 4 is shown.
• Every row of the cell array constitutes a memory word.
• A 3 x 8 decoder is required to access any one of the 8 rows.
• The rows of the cells are connected to the word lines.
• Individual cells are connected to two bit lines.
– Bit b and its complement b’.
– Required for reading and writing.
• Cells in each column are connected to a sense/write circuit by the two bit
lines.
• Other than address and data lines, there are two control lines: R/W’ and
CS’ (Chip Select).
– CS is required to select one single chip in a multi-chip memory system.
Introduction to the memory system embedded.pptx
Static Random Access Memory (SRAM)
• SRAM consists of circuits which can store the data as long as power is applied.
• It is a type of semiconductor memory that uses bistable latching circuitry (flip-flop) to store each
bit.
• SRAM memory arrays can be arranged in rows and columns of memory cells.
– Called word line and bit line.
• SRAM can be built using 4 or 6 MOS transistors.
– Modern SRAM chips in the market uses 6-transistor implementations for CMOS compatibility.
– Widely used in small-scale systems like microcontrollers and embedded systems.
– Also used to implement cache memories in computer systems.
A 1-bit SRAM Cell
• Two inverters are cross connected to form
a latch.
• The latch is connected to two bit lines with
transistors T1 and T2.
• Transistors behave like switches that can
be opened (OFF) or closed (ON) under the
control of the word line.
• To retain the state of the latch, the word
line can be grounded which makes the
transistors off.
READ Operation in SRAM
• To read the content of the cell, the word
line is activated (= 1) to make the
transistors T1 and T2 on.
• The value stored in latch is available on
bit line b and its complement on b’.
• Sense/write circuits connected to the bit
lines monitor the states of b and b’.
WRITE Operation in SRAM
• To write 1: The bit line b is set with 1 and bit
line b’is set with 0. Then the word line is
activated and the data is written to the latch.
• To write 0: The bit line b is set with 0 and bit
line b’is set with 1. Then the word line is
activated and the data is written to the latch.
• The required signals (either 1 or 0) are
generated by the sense/write circuit.
6-Transistor Static Memory cell
• 1-bit SRAM cell with 6-transistors
are used in modern-day SRAM
implementations.
• Transistors (T3 &T5) and (T4 &T6)
form the CMOS inverters in the
latch.
• The data can be read or written in
the same way as explained.
Features of SRAM
• Moderate / High power consumption.
– Current flows in the cells only when the cell is accessed.
– Because of latch operation, power consumption is higher than DRAM.
• Simplicity – refresh circuitry is not needed.
– Volatile :: continuous power supply is required.
• Fast operation.
– Access time is very fast; fast memories (cache) are built using SRAM.
• High cost.
– 6 transistors per cell.
• Limited capacity.
– Not economical to manufacture high-capacity SRAM chips.
Dynamic Random Access Memory (DRAM)
• Dynamic RAM do not retain its state even
if power supply is on.
– Data stored in the form of charge stored
on a capacitor.
• Requires periodic refresh.
– The charge stored cannot be retained
over long 8me (due to leakage).
• Less expensive that SRAM.
– Requires less hardware (one transistor
and one capacitor per cell).
• Address lines are multiplexed.
READ Operation in DRAM
• The transistor of the particular cell is
turned on by activating the word line.
• A sense amplifier connected to bit line
senses the charge stored in the capacitor.
• If the charge is above threshold, the bit
line is maintained at high voltage, which
represents logic 1.
• If the charge is below threshold, the bit
line is grounded, which represent logic 0.
WRITE Operation in DRAM
• The transistor of the particular cell is
turned on by activating the word line.
• Depending on the value to be written (0
or 1), an appropriate voltage is applied
to the bit line.
• The capacitor gets charged to the
required voltage state.
• Refreshing of the capacitor requires
periodic READ-WRITE cycles (every few
msec).
Read-Only Memories
 Read-Only Memory:
 Data are written into a ROM when it is manufactured.
 Programmable Read-Only Memory (PROM):
 Allow the data to be loaded by a user.
 Process of inserting the data is irreversible.
 Storing information specific to a user in a ROM is expensive.
 Providing programming capability to a user may be better.
 Erasable Programmable Read-Only Memory (EPROM):
 Stored data to be erased and new data to be loaded.
 Flexibility, useful during the development phase of digital systems.
 Erasable, reprogrammable ROM.
 Erasure requires exposing the ROM to UV light.
Read-Only Memories (Contd.,)
 Electrically Erasable Programmable Read-Only Memory (EEPROM):
 To erase the contents of EPROMs, they have to be exposed to ultraviolet light.
 Physically removed from the circuit.
 EEPROMs the contents can be stored and erased electrically.
 Flash memory:
 Has similar approach to EEPROM.
 Read the contents of a single cell, but write the contents of an entire block of cells.
 Flash devices have greater density.
▪ Higher capacity and low storage cost per bit.
 Power consumption of flash memory is very low, making it attractive for use in equipment that is
battery-driven.
 Single flash chips are not sufficiently large, so
larger memory modules are implemented using
flash cards and flash drives.
Speed, Size, and Cost
 A big challenge in the design of a computer system is to provide a sufficiently large memory,
with a reasonable speed at an affordable cost.
 Static RAM:
 Very fast, but expensive, because a basic SRAM cell has a complex circuit making it
impossible to pack a large number of cells onto a single chip.
 Dynamic RAM:
 Simpler basic cell circuit, hence are much less expensive, but significantly slower than
SRAMs.
 Magnetic disks:
 Storage provided by DRAMs is higher than SRAMs, but is still less than what is necessary.
 Secondary storage such as magnetic disks provide a large amount
of storage, but is much slower than DRAMs.
Memory Hierarchy
Processor
Primary
cache
Main
memory
Increasing
size
Increasing
speed
Magnetic disk
secondary
memory
Increasing
cost per bit
Registers
L1
Secondary
cache
L2
•Fastest access is to the data held in
processor registers. Registers are at
the top of the memory hierarchy.
•Relatively small amount of memory that
can be implemented on the processor
chip. This is processor cache.
•Two levels of cache. Level 1 (L1) cache
is on the processor chip. Level 2 (L2)
cache is in between main memory and
processor.
•Next level is main memory, implemented
as SIMMs. Much larger, but much slower
than cache memory.
•Next level is magnetic disks. Huge amount
of inexepensive storage.
•Speed of memory access is critical, the
idea is to bring instructions and data
that will be used in the near future as
close to the processor as possible.

More Related Content

PPTX
COMPUTER ORGANIZATION UNIT-II OSMANIA UNIVERSITY
PPT
Computer Organisation and Architecture
PPT
sramanddram.ppt
PPTX
Lecture 09 - Ch No. 05 Internal Memory.pptx
PPTX
Module5-Memory systemModule5-Memory system
PPT
memory systems-module 3 presentation ppt
PPT
chapter5-the memory system chapter .ppt
PPT
computer chapter5-the memory system (1) (2).ppt
COMPUTER ORGANIZATION UNIT-II OSMANIA UNIVERSITY
Computer Organisation and Architecture
sramanddram.ppt
Lecture 09 - Ch No. 05 Internal Memory.pptx
Module5-Memory systemModule5-Memory system
memory systems-module 3 presentation ppt
chapter5-the memory system chapter .ppt
computer chapter5-the memory system (1) (2).ppt

Similar to Introduction to the memory system embedded.pptx (20)

PDF
Computer organization memory
PPTX
Unit 4 Memory Organization_Computer Organization and Architecture
PPT
Chapter5 the memory-system-jntuworld
PPTX
Memory organization
PDF
bec306c Computer Architecture and Organization
PPTX
memory system notes.pptx
PPTX
Unit- 4 Computer Oganization and Architecture
PPTX
Unit IV Memory.pptx
PDF
PPTX
Semi conductor Memories in VLSI design and testing
PPTX
unit4 and unit5.pptx
PDF
COMPUTER ORGANIZATION NOTES Unit 5
PPT
Computer Architecture- University of Dodoma
PPTX
Lec 2 digital electronics - random access memory
PPTX
UNIT IV Computer architecture Analysis.pptx
PPTX
unit 5 M PROGRAMMBLE LOGIC DEVICES (1).pptx
PDF
Week 3 intro to computer organization and assembly language
PPTX
Internal memory
PDF
Esd mod 3
PPTX
Computer Architecture and Organization--Memory and I/O
Computer organization memory
Unit 4 Memory Organization_Computer Organization and Architecture
Chapter5 the memory-system-jntuworld
Memory organization
bec306c Computer Architecture and Organization
memory system notes.pptx
Unit- 4 Computer Oganization and Architecture
Unit IV Memory.pptx
Semi conductor Memories in VLSI design and testing
unit4 and unit5.pptx
COMPUTER ORGANIZATION NOTES Unit 5
Computer Architecture- University of Dodoma
Lec 2 digital electronics - random access memory
UNIT IV Computer architecture Analysis.pptx
unit 5 M PROGRAMMBLE LOGIC DEVICES (1).pptx
Week 3 intro to computer organization and assembly language
Internal memory
Esd mod 3
Computer Architecture and Organization--Memory and I/O
Ad

More from RiniBhandari (6)

PPTX
MODULE-5 ppt-INTRODUCTION TO ELECTRONICD.pptx
PPTX
UNIVERSAL ASYNCRONOUS TRANSMITTER AND RECEIVER.pptx
PPTX
Module-3 ADVANCED MICROCONTROLLER IMP.pptx
PPTX
Module-2 epc mosfet notes important for study.
PPT
Artificial intelligence and machine learning
PDF
ARM IMP
MODULE-5 ppt-INTRODUCTION TO ELECTRONICD.pptx
UNIVERSAL ASYNCRONOUS TRANSMITTER AND RECEIVER.pptx
Module-3 ADVANCED MICROCONTROLLER IMP.pptx
Module-2 epc mosfet notes important for study.
Artificial intelligence and machine learning
ARM IMP
Ad

Recently uploaded (20)

PPTX
web development for engineering and engineering
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Well-logging-methods_new................
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
web development for engineering and engineering
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Well-logging-methods_new................
Embodied AI: Ushering in the Next Era of Intelligent Systems
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
R24 SURVEYING LAB MANUAL for civil enggi
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...

Introduction to the memory system embedded.pptx

  • 2. Introduction • Memory is one of the most important functional units of a computer. • Used to store both instructions and data. • Stores as bits (0’s and 1’s), usually organized in terms of bytes. • How are the data stored in memory accessed? • Every memory location has a unique address. • A memory is said to be byte addressable if every byte of data has a unique address. • Some memory systems are word addressable also (every addressed loca8ons consists of multiple bytes, say, 32 bits or 4 bytes).
  • 3. Connection between Processor and Memory • Address bus provides the address of the memory location to be accessed. • Data bus transfers the data read from memory, or data to be written into memory. • Bidirectional. • Control bus provides various signals like READ, WRITE, etc.
  • 4. An Example Memory Module n address lines : The maximum number of memory locations that can be accessed is . • m data lines : The number of bits stored in every addressable location is m. • The RD/WR’ control line selects the memory for reading or writing (1: read, 0: write). • The chip select line (CS’) when active (=0) will enable the chip; otherwise, the data bus is in the high impedance state.
  • 5. Classification of Memory Systems a) Volatile versus Non-volatile: • A volatile memory system is one where the stored data is lost when the power is switched off. Examples: CMOS static memory, CMOS dynamic memory. Dynamic memory in addition requires periodic refreshing. • A non-volatile memory system is one where the stored data is retained even when the power is switched off. Examples: Read-only memory, Magnetic disk, CDROM/DVD, Flash memory,Resistive memory.
  • 6. b) Random-access versus Direct/Sequential access: – A memory is said to be random-access when the read/write 8me is independent of the memory location being accessed. • Examples: CMOS memory (RAM and ROM). – A memory is said to be sequential access when the stored data can only be accessed sequentially in a particular order. • Examples: Magnetic tape. – A memory is said to be direct or semi-random access when part of the access is sequential and part is random. • Example: Magnetic disk. • We can directly go to a track after which access will be sequential.
  • 7. c) Read-only versus Random-access: – Read-only Memory (ROM) is one where data once stored in permanent or semi-permanent. • Data written (programmed) during manufacture or in the laboratory. • Examples: ROM, PROM, EPROM, EEPROM. – Random Access Memory (RAM) is one where data access time is the same independent of the location (address). • Used in main / cache memory systems. • Example: Static RAM (SRAM) à data once written are retained as long as power is on. • Example: Dynamic RAM (DRAM) à requires periodic refreshing even when power is on (data stored as charge on tiny capacitors).
  • 8. • Some important questions? – How to make the memory system work faster? – How to increase the data transfer rate between CPU and memory? – How to address the ever increasing storage needs of applications? • Some possible solutions: – Cache Memory: to increase the effective speed of the memory system. – Virtual Memory: to increase the effective size of the memory system.
  • 9. Organization of Cells in an 8x4 Memory Chip
  • 10. Organization of Cells in an 8x4 Memory Chip (cont..) • A 32-bit memory chip organized as 8 x 4 is shown. • Every row of the cell array constitutes a memory word. • A 3 x 8 decoder is required to access any one of the 8 rows. • The rows of the cells are connected to the word lines. • Individual cells are connected to two bit lines. – Bit b and its complement b’. – Required for reading and writing. • Cells in each column are connected to a sense/write circuit by the two bit lines. • Other than address and data lines, there are two control lines: R/W’ and CS’ (Chip Select). – CS is required to select one single chip in a multi-chip memory system.
  • 12. Static Random Access Memory (SRAM) • SRAM consists of circuits which can store the data as long as power is applied. • It is a type of semiconductor memory that uses bistable latching circuitry (flip-flop) to store each bit. • SRAM memory arrays can be arranged in rows and columns of memory cells. – Called word line and bit line. • SRAM can be built using 4 or 6 MOS transistors. – Modern SRAM chips in the market uses 6-transistor implementations for CMOS compatibility. – Widely used in small-scale systems like microcontrollers and embedded systems. – Also used to implement cache memories in computer systems.
  • 13. A 1-bit SRAM Cell • Two inverters are cross connected to form a latch. • The latch is connected to two bit lines with transistors T1 and T2. • Transistors behave like switches that can be opened (OFF) or closed (ON) under the control of the word line. • To retain the state of the latch, the word line can be grounded which makes the transistors off.
  • 14. READ Operation in SRAM • To read the content of the cell, the word line is activated (= 1) to make the transistors T1 and T2 on. • The value stored in latch is available on bit line b and its complement on b’. • Sense/write circuits connected to the bit lines monitor the states of b and b’.
  • 15. WRITE Operation in SRAM • To write 1: The bit line b is set with 1 and bit line b’is set with 0. Then the word line is activated and the data is written to the latch. • To write 0: The bit line b is set with 0 and bit line b’is set with 1. Then the word line is activated and the data is written to the latch. • The required signals (either 1 or 0) are generated by the sense/write circuit.
  • 16. 6-Transistor Static Memory cell • 1-bit SRAM cell with 6-transistors are used in modern-day SRAM implementations. • Transistors (T3 &T5) and (T4 &T6) form the CMOS inverters in the latch. • The data can be read or written in the same way as explained.
  • 17. Features of SRAM • Moderate / High power consumption. – Current flows in the cells only when the cell is accessed. – Because of latch operation, power consumption is higher than DRAM. • Simplicity – refresh circuitry is not needed. – Volatile :: continuous power supply is required. • Fast operation. – Access time is very fast; fast memories (cache) are built using SRAM. • High cost. – 6 transistors per cell. • Limited capacity. – Not economical to manufacture high-capacity SRAM chips.
  • 18. Dynamic Random Access Memory (DRAM) • Dynamic RAM do not retain its state even if power supply is on. – Data stored in the form of charge stored on a capacitor. • Requires periodic refresh. – The charge stored cannot be retained over long 8me (due to leakage). • Less expensive that SRAM. – Requires less hardware (one transistor and one capacitor per cell). • Address lines are multiplexed.
  • 19. READ Operation in DRAM • The transistor of the particular cell is turned on by activating the word line. • A sense amplifier connected to bit line senses the charge stored in the capacitor. • If the charge is above threshold, the bit line is maintained at high voltage, which represents logic 1. • If the charge is below threshold, the bit line is grounded, which represent logic 0.
  • 20. WRITE Operation in DRAM • The transistor of the particular cell is turned on by activating the word line. • Depending on the value to be written (0 or 1), an appropriate voltage is applied to the bit line. • The capacitor gets charged to the required voltage state. • Refreshing of the capacitor requires periodic READ-WRITE cycles (every few msec).
  • 21. Read-Only Memories  Read-Only Memory:  Data are written into a ROM when it is manufactured.  Programmable Read-Only Memory (PROM):  Allow the data to be loaded by a user.  Process of inserting the data is irreversible.  Storing information specific to a user in a ROM is expensive.  Providing programming capability to a user may be better.  Erasable Programmable Read-Only Memory (EPROM):  Stored data to be erased and new data to be loaded.  Flexibility, useful during the development phase of digital systems.  Erasable, reprogrammable ROM.  Erasure requires exposing the ROM to UV light.
  • 22. Read-Only Memories (Contd.,)  Electrically Erasable Programmable Read-Only Memory (EEPROM):  To erase the contents of EPROMs, they have to be exposed to ultraviolet light.  Physically removed from the circuit.  EEPROMs the contents can be stored and erased electrically.  Flash memory:  Has similar approach to EEPROM.  Read the contents of a single cell, but write the contents of an entire block of cells.  Flash devices have greater density. ▪ Higher capacity and low storage cost per bit.  Power consumption of flash memory is very low, making it attractive for use in equipment that is battery-driven.  Single flash chips are not sufficiently large, so larger memory modules are implemented using flash cards and flash drives.
  • 23. Speed, Size, and Cost  A big challenge in the design of a computer system is to provide a sufficiently large memory, with a reasonable speed at an affordable cost.  Static RAM:  Very fast, but expensive, because a basic SRAM cell has a complex circuit making it impossible to pack a large number of cells onto a single chip.  Dynamic RAM:  Simpler basic cell circuit, hence are much less expensive, but significantly slower than SRAMs.  Magnetic disks:  Storage provided by DRAMs is higher than SRAMs, but is still less than what is necessary.  Secondary storage such as magnetic disks provide a large amount of storage, but is much slower than DRAMs.
  • 24. Memory Hierarchy Processor Primary cache Main memory Increasing size Increasing speed Magnetic disk secondary memory Increasing cost per bit Registers L1 Secondary cache L2 •Fastest access is to the data held in processor registers. Registers are at the top of the memory hierarchy. •Relatively small amount of memory that can be implemented on the processor chip. This is processor cache. •Two levels of cache. Level 1 (L1) cache is on the processor chip. Level 2 (L2) cache is in between main memory and processor. •Next level is main memory, implemented as SIMMs. Much larger, but much slower than cache memory. •Next level is magnetic disks. Huge amount of inexepensive storage. •Speed of memory access is critical, the idea is to bring instructions and data that will be used in the near future as close to the processor as possible.