Memory Organization in Computer Organization and Architecture

MahendraMunirathnam1 32 views 10 slides May 30, 2024
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

Computer Organization and Architecture


Slide Content

Memory Hierarchy
Main Memory
Auxiliary Memory
Associative Memory
Cache Memory
UNIT-IV MEMORY ORGANIZATION

Classification of Memory

MEMORY HIERARCHY
Memory Hierarchy is to obtain the highest possible access speed while minimizing the total cost
of the memory system
Memory HierarchyMagnetic
tapes
Magnetic
disks
I/O processor
CPU
Main
memory
Cache
memory
Auxiliary memory

MEMORY HIERARCHY
Level Register Cache
Primary
memory
Secondary
memory
Bandwidth
4k to 32k
MB/sec
800 to 5k
MB/sec
400 to 2k
MB/sec
4 to 32 MB/sec
Size
Less than 1KBLess than 4MBLess than 16GBGreater than
100 GB
Access time 2 to 5nsec 3 to 10nsec 80 to 400nsec 5ms
Managed by
Compiler Hardware Operating
system
OS or user
Multiprogramming
enable the CPU to process a number of independent program concurrently

Primary or Main Memory
Theprimarymemoryisfurtherdividedintotwoparts:
RAM(RandomAccessMemory)
ROM(ReadOnlyMemory)
Random Access Memory (RAM)
AccesseddirectlybytheCPU.Itisthehardwareinacomputerdevicetotemporarily
storedata,programsorprogramresults.Itisusedtoread/writedatainmemoryuntilthe
machineisworking.
Itisvolatile,whichmeansifapowerfailureoccursorthecomputeristurnedoff,the
informationstoredinRAMwillbelost.
Alldatastoredincomputermemorycanbereadoraccessedrandomlyatanytime.
There are two types of RAM:
SRAM
DRAM

SRAM:(StaticRandom-AccessMemory)isatypeof
RAMusedtostorestaticdatainthememory.It
meanstostoredatainSRAMremainsactiveaslong
asthecomputersystemhasapowersupply.
However,dataislostinSRAMwhenpowerfailures
haveoccurred.
DRAM:DRAM (DynamicRandom-Access
Memory)isatypeofRAMthatisusedforthe
dynamicstorageofdatainRAM.InDRAM,each
cellcarriesone-bitinformation.Thecellismadeup
oftwoparts:acapacitorandatransistor.Thesizeof
thecapacitorandthetransistorissosmall,requiring
millionsofthemtostoreonasinglechip.Hence,a
DRAMchipcanholdmoredatathananSRAMchip
ofthesamesize.However,thecapacitorneedstobe
continuouslyrefreshedtoretaininformationbecause
DRAMisvolatile.Ifthepowerisswitchedoff,the
datastoreinmemoryislost.
SRAM DRAM
ItisaStaticRandom-
AccessMemory.
ItisaDynamicRandom
AccessMemory.
Theaccesstimeof
SRAMisslow.
Theaccesstimeof
DRAMishigh.
Itusesflip-flopstostore
eachbitofinformation.
Itusesacapacitorto
storeeachbitof
information.
Itdoesnotrequire
periodicrefreshingto
preserve the
information.
Itrequiresperiodically
refreshingtopreserve
theinformation.
Itusesincache
memory.
Itisusedinthemain
memory.
ThecostofSRAMis
expensive.
ThecostofDRAMis
lessexpensive.
Ithasacomplex
structure.
Itsstructureissimple.
Itrequireslowpower
consumption.
Itrequiresmorepower
consumption.

Read-OnlyMemory(ROM):isamemorydeviceorstoragemediumthatisused
topermanentlystoreinformationinsideachip.
Itisaread-onlymemorythatcanonlyreadstoredinformation,dataorprograms,
butwecannotwriteormodifyanything.
AROMcontainssomeimportantinstructionsorprogramdatathatarerequiredto
startorbootacomputer(BootstrapLoader).
Itisanon-volatilememory;itmeansthatthestoredinformationcannotbelost
evenwhenthepoweristurnedofforthesystemisshutdown.
Thereare3typesofReadOnlyMemory
PROM(ProgrammableReadOnlyMemory)
EPROM(ErasableandProgrammable
ReadOnlyMemory)
EEPROM(ElectricallyErasableand
ProgrammableReadOnlyMemory)

MAIN MEMORY
RAM and ROM Chips
Typical RAM chip
Typical ROM chip
Chip select 1
Chip select 2
Read
Write
7-bit address
CS1
CS2
RD
WR
AD 7
128 x 8
RAM
8-bit data bus
1 0 1 x
Read
High-impedenceInhibit1 1 x x
Output data from RAM
Memory function State of data busCS1 CS2 RD WR
0 0 x x
0 1 x x
1 0 0 0
1 0 0 1
Inhibit
Inhibit
Inhibit
Write
High-impedence
High-impedence
High-impedence
Input data to RAM
Chip select 1
Chip select 2
9-bit address
CS1
CS2
AD 9
512 x 8
ROM
8-bit data bus

MEMORY ADDRESS MAP
RAM 1
RAM 2
RAM 3
RAM 4
ROM
0000 -007F
0080 -00FF
0100 -017F
0180 -01FF
0200 -03FF
Component
Hexa
address
0 0 0 x x x x x x x
0 0 1 x x x x x x x
0 1 0 x x x x x x x
0 1 1 x x x x x x x
1 x x x x x x x x x
10 9 8 7 6 5 4 3 2 1
Address bus
Memory Connection to CPU
-RAM and ROM chips are connected to a CPU through the data
and address buses
-The low-order lines in the address bus select the byte within the
chips and other lines in the address bus select a particular chip
through its chip select inputs
Address space assignment to each memory chip
Example: 128 bytes RAM and 512 bytes ROM
Main Memory

CONNECTION OF MEMORY TO CPU}
CS1
CS2
RD
WR
AD7
128 x 8
RAM 1
CS1
CS2
RD
WR
AD7
128 x 8
RAM 2
CS1
CS2
RD
WR
AD7
128 x 8
RAM 3
CS1
CS2
RD
WR
AD7
128 x 8
RAM 4
Decoder
3210
WRRD9 8 7-11016-11
Address bus
Data bus
CPU
CS1
CS2
512 x 8
ROM
AD9
1-7
9
8
Data
Data
Data
Data
Data
Tags