際際滷

際際滷Share a Scribd company logo
MEMORY
UNIT-3
Mohammad Asif Iqbal
Assistant Professor,
Deptt of ECE,
JETGI, Barabanki
BRAIN vs. MEMORY
WHAT WE WILL LEARN IN THIS LECTURE
Memory technologies
Hierarchal organization
Principle of locality
Analysis of hierarchy
Simple case organizations
TYPICAL SPECIFICATIONS OF COMPUTERS TODAY
MEMORY TECHNOLOGIES
SEMICONDUCTOR
Register
SRAM
DRAM
FLASH
MAGNETIC
FDD
HDD
OPTICAL
CD
DVD
Random access
Random + sequentional
HIERARCHAL STRUCTURE
SPEED
CPU
SIZE COST/ BIT
Fastest
Memory
Slowest
Highest
Fastest
Memory
Memory
Biggest Lowest
DATA TRANSFER BETWEEN LEVELS
PRINCIPLE OF LOCALITY
Temporal locality
References repeated in time
The concept that a resource that is referenced at one point in time will be referenced again sometime in
the near future.
Spatial locality
Reference repeated in space
Special case: sequential locality
The concept that likelihood of referencing a resource is higher if a resource near it was just referenced.
MEMORY HIERARCHY ANALYSIS
CACHE ACCESS EXAMPLE.
Before the reference to Xn After the reference to Xn
X4 X4
X1 X1
Xn-2 Xn-2
Xn-1 Xn-1
X2 X2
X3 X3
DIRECT MAPPED CACHE
CACHE ACCESS MECHANISM
CACHE WITH 4 WORD BLOCKS
QUESTIONS
MM SIZE CACHE
SIZE
BLOCK
SIZE
TAG BITS TAG
DIRECTOR
Y
128 KB 16KB 256 B ------- -------
32 GB 32KB 1KB ------- -------
------- 512 KB 1 KB 7 -------
MORE FLEXIBLE BLOCK ARRANGEMENT
FULLY ASSOCIATIVE CACHE
Question:-
MM:- 32 GB
BLOCK:- 32 KB
TAG= ?
Propagation Delay Of Comparator=10 K ns
PD of OR Gate= 10 ns
HL=?
SET ASSOCIATIVE CACHE
MM SIZE CACHE SIZE BLOCK SIZE TAG BITS TAG
DIRESTOR
Y
SET
ASSOCIATIV
E
128 KB 16KB 256B ----- ----- 2-WAY
32GB 32KB 1KB ----- ----- 4-WAY
----- 512KB 1KB 7 ------ 8-WAY
16 17 18 19
20 21 22 23
24 25 26 27
28 29 30 31
32 33 34 35
36 37 38 39
40 41 42 43
44 45 46 47
48 49 50 51
52 53 54 55
56 57 58 59
60 61 62 63
52 53 54 55
40 41 42 43
12 13 14 15
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
01
11
10
00
01 00 11
01 11 11
11 01 01
10 10 11
MORE EXAMPLE OF DIRECT MAPPING
TAG LINE BO
MORE EXAMPLE OF SET ASSOCIATIVE MAPPING
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
16 17 18 19
20 21 22 23
24 25 26 27
28 29 30 31
32 33 34 35
36 37 38 39
40 41 42 43
44 45 46 47
48 49 50 51
52 53 54 55
56 57 58 59
60 61 62 63
0
1
2
3
4
5
6
7
0,4
1,5
2,6
3,7
TAG SET BO
MORE EXAMPLE OF FULLY ASSOCIATIVE MAPPING
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
16 17 18 19
20 21 22 23
24 25 26 27
28 29 30 31
32 33 34 35
36 37 38 39
40 41 42 43
44 45 46 47
48 49 50 51
52 53 54 55
56 57 58 59
60 61 62 63
TAG BO
THANK YOU!

More Related Content

Viewers also liked (8)

Memory
MemoryMemory
Memory
CMoondog
Psychology Memory and Learning Power Point
Psychology Memory and Learning Power PointPsychology Memory and Learning Power Point
Psychology Memory and Learning Power Point
MrTimBradley
Human Memory (Psychology)
Human Memory (Psychology)Human Memory (Psychology)
Human Memory (Psychology)
Shara Mae Reloj
Memory powerpoint
Memory powerpointMemory powerpoint
Memory powerpoint
CMoondog
Memory PowerPoint
Memory PowerPointMemory PowerPoint
Memory PowerPoint
KRyder
Human Memory - Psychology
Human Memory - PsychologyHuman Memory - Psychology
Human Memory - Psychology
Ryan Braganza
Psychology- Memory
Psychology- MemoryPsychology- Memory
Psychology- Memory
Mya007
Introductory Psychology: Memory
Introductory Psychology: MemoryIntroductory Psychology: Memory
Introductory Psychology: Memory
Brian Piper
Psychology Memory and Learning Power Point
Psychology Memory and Learning Power PointPsychology Memory and Learning Power Point
Psychology Memory and Learning Power Point
MrTimBradley
Human Memory (Psychology)
Human Memory (Psychology)Human Memory (Psychology)
Human Memory (Psychology)
Shara Mae Reloj
Memory powerpoint
Memory powerpointMemory powerpoint
Memory powerpoint
CMoondog
Memory PowerPoint
Memory PowerPointMemory PowerPoint
Memory PowerPoint
KRyder
Human Memory - Psychology
Human Memory - PsychologyHuman Memory - Psychology
Human Memory - Psychology
Ryan Braganza
Psychology- Memory
Psychology- MemoryPsychology- Memory
Psychology- Memory
Mya007
Introductory Psychology: Memory
Introductory Psychology: MemoryIntroductory Psychology: Memory
Introductory Psychology: Memory
Brian Piper

More from Asif Iqbal (20)

IOT WITH NODEMCU13231244425435465645.pptx
IOT WITH NODEMCU13231244425435465645.pptxIOT WITH NODEMCU13231244425435465645.pptx
IOT WITH NODEMCU13231244425435465645.pptx
Asif Iqbal
RaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMING
RaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMINGRaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMING
RaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMING
Asif Iqbal
first day presentation related to iot.pptx
first day presentation related to iot.pptxfirst day presentation related to iot.pptx
first day presentation related to iot.pptx
Asif Iqbal
5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf
Asif Iqbal
11815939.ppt
11815939.ppt11815939.ppt
11815939.ppt
Asif Iqbal
Chandrayaan 3.pptx
Chandrayaan 3.pptxChandrayaan 3.pptx
Chandrayaan 3.pptx
Asif Iqbal
Memory unit 6
Memory unit 6Memory unit 6
Memory unit 6
Asif Iqbal
instruction
instruction instruction
instruction
Asif Iqbal
OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 5OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 5
Asif Iqbal
OPTICAL COMMUNICATION Unit 4
OPTICAL COMMUNICATION Unit 4OPTICAL COMMUNICATION Unit 4
OPTICAL COMMUNICATION Unit 4
Asif Iqbal
optical communication Unit 3
optical communication Unit 3optical communication Unit 3
optical communication Unit 3
Asif Iqbal
OPTICAL COMMUNICATION Unit 2
OPTICAL COMMUNICATION Unit 2OPTICAL COMMUNICATION Unit 2
OPTICAL COMMUNICATION Unit 2
Asif Iqbal
OPTICAL FIBER COMMUNICATION UNIT-1
OPTICAL FIBER COMMUNICATION UNIT-1OPTICAL FIBER COMMUNICATION UNIT-1
OPTICAL FIBER COMMUNICATION UNIT-1
Asif Iqbal
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
Asif Iqbal
Combinational Logic Unit 2
Combinational Logic Unit 2Combinational Logic Unit 2
Combinational Logic Unit 2
Asif Iqbal
Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:
Asif Iqbal
voltage regulater
 voltage regulater voltage regulater
voltage regulater
Asif Iqbal
special diode
special diodespecial diode
special diode
Asif Iqbal
oscillator unit 3
oscillator unit 3 oscillator unit 3
oscillator unit 3
Asif Iqbal
Nunit 2 feedback
Nunit 2 feedbackNunit 2 feedback
Nunit 2 feedback
Asif Iqbal
IOT WITH NODEMCU13231244425435465645.pptx
IOT WITH NODEMCU13231244425435465645.pptxIOT WITH NODEMCU13231244425435465645.pptx
IOT WITH NODEMCU13231244425435465645.pptx
Asif Iqbal
RaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMING
RaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMINGRaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMING
RaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMING
Asif Iqbal
first day presentation related to iot.pptx
first day presentation related to iot.pptxfirst day presentation related to iot.pptx
first day presentation related to iot.pptx
Asif Iqbal
5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf
Asif Iqbal
11815939.ppt
11815939.ppt11815939.ppt
11815939.ppt
Asif Iqbal
Chandrayaan 3.pptx
Chandrayaan 3.pptxChandrayaan 3.pptx
Chandrayaan 3.pptx
Asif Iqbal
Memory unit 6
Memory unit 6Memory unit 6
Memory unit 6
Asif Iqbal
instruction
instruction instruction
instruction
Asif Iqbal
OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 5OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 5
Asif Iqbal
OPTICAL COMMUNICATION Unit 4
OPTICAL COMMUNICATION Unit 4OPTICAL COMMUNICATION Unit 4
OPTICAL COMMUNICATION Unit 4
Asif Iqbal
optical communication Unit 3
optical communication Unit 3optical communication Unit 3
optical communication Unit 3
Asif Iqbal
OPTICAL COMMUNICATION Unit 2
OPTICAL COMMUNICATION Unit 2OPTICAL COMMUNICATION Unit 2
OPTICAL COMMUNICATION Unit 2
Asif Iqbal
OPTICAL FIBER COMMUNICATION UNIT-1
OPTICAL FIBER COMMUNICATION UNIT-1OPTICAL FIBER COMMUNICATION UNIT-1
OPTICAL FIBER COMMUNICATION UNIT-1
Asif Iqbal
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
Asif Iqbal
Combinational Logic Unit 2
Combinational Logic Unit 2Combinational Logic Unit 2
Combinational Logic Unit 2
Asif Iqbal
Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:
Asif Iqbal
voltage regulater
 voltage regulater voltage regulater
voltage regulater
Asif Iqbal
special diode
special diodespecial diode
special diode
Asif Iqbal
oscillator unit 3
oscillator unit 3 oscillator unit 3
oscillator unit 3
Asif Iqbal
Nunit 2 feedback
Nunit 2 feedbackNunit 2 feedback
Nunit 2 feedback
Asif Iqbal

Recently uploaded (20)

Industrial Valves, Instruments Products Profile
Industrial Valves, Instruments Products ProfileIndustrial Valves, Instruments Products Profile
Industrial Valves, Instruments Products Profile
zebcoeng
Lectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).pptLectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).ppt
SherifElGohary7
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
slayshadow705
AI, Tariffs and Supply Chains in Knowledge Graphs
AI, Tariffs and Supply Chains in Knowledge GraphsAI, Tariffs and Supply Chains in Knowledge Graphs
AI, Tariffs and Supply Chains in Knowledge Graphs
Max De Marzi
Cloud Computing concepts and technologies
Cloud Computing concepts and technologiesCloud Computing concepts and technologies
Cloud Computing concepts and technologies
ssuser4c9444
04 MAINTENANCE OF CONCRETE PAVEMENTS.ppt
04  MAINTENANCE OF CONCRETE PAVEMENTS.ppt04  MAINTENANCE OF CONCRETE PAVEMENTS.ppt
04 MAINTENANCE OF CONCRETE PAVEMENTS.ppt
sreenath seenu
CFOT Fiber Optics FOA CERTIFICATION.pptx
CFOT Fiber Optics FOA CERTIFICATION.pptxCFOT Fiber Optics FOA CERTIFICATION.pptx
CFOT Fiber Optics FOA CERTIFICATION.pptx
MohamedShabana37
Water Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control Monthly - March 2025.pdfWater Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
Thane Heins NOBEL PRIZE WINNING ENERGY RESEARCHER
Unit II: Design of Static Equipment Foundations
Unit II: Design of Static Equipment FoundationsUnit II: Design of Static Equipment Foundations
Unit II: Design of Static Equipment Foundations
Sanjivani College of Engineering, Kopargaon
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptxRAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
JenTeruel1
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
TM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdfTM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdf
ChungLe60
Wireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdfWireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdf
AbhinandanMishra30
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
ASHISHDESAI85
google_developer_group_ramdeobaba_university_EXPLORE_PPT
google_developer_group_ramdeobaba_university_EXPLORE_PPTgoogle_developer_group_ramdeobaba_university_EXPLORE_PPT
google_developer_group_ramdeobaba_university_EXPLORE_PPT
JayeshShete1
Cyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptxCyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptx
Harshith A S
Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...
dhanashree78
Env and Water Supply Engg._Dr. Hasan.pdf
Env and Water Supply Engg._Dr. Hasan.pdfEnv and Water Supply Engg._Dr. Hasan.pdf
Env and Water Supply Engg._Dr. Hasan.pdf
MahmudHasan747870
Industrial Valves, Instruments Products Profile
Industrial Valves, Instruments Products ProfileIndustrial Valves, Instruments Products Profile
Industrial Valves, Instruments Products Profile
zebcoeng
Lectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).pptLectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).ppt
SherifElGohary7
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
Structural QA/QC Inspection in KRP 401600 | Copper Processing Plant-3 (MOF-3)...
slayshadow705
AI, Tariffs and Supply Chains in Knowledge Graphs
AI, Tariffs and Supply Chains in Knowledge GraphsAI, Tariffs and Supply Chains in Knowledge Graphs
AI, Tariffs and Supply Chains in Knowledge Graphs
Max De Marzi
Cloud Computing concepts and technologies
Cloud Computing concepts and technologiesCloud Computing concepts and technologies
Cloud Computing concepts and technologies
ssuser4c9444
04 MAINTENANCE OF CONCRETE PAVEMENTS.ppt
04  MAINTENANCE OF CONCRETE PAVEMENTS.ppt04  MAINTENANCE OF CONCRETE PAVEMENTS.ppt
04 MAINTENANCE OF CONCRETE PAVEMENTS.ppt
sreenath seenu
CFOT Fiber Optics FOA CERTIFICATION.pptx
CFOT Fiber Optics FOA CERTIFICATION.pptxCFOT Fiber Optics FOA CERTIFICATION.pptx
CFOT Fiber Optics FOA CERTIFICATION.pptx
MohamedShabana37
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptxRAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
JenTeruel1
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
TM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdfTM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdf
ChungLe60
Wireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdfWireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdf
AbhinandanMishra30
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
Integration of Additive Manufacturing (AM) with IoT : A Smart Manufacturing A...
ASHISHDESAI85
google_developer_group_ramdeobaba_university_EXPLORE_PPT
google_developer_group_ramdeobaba_university_EXPLORE_PPTgoogle_developer_group_ramdeobaba_university_EXPLORE_PPT
google_developer_group_ramdeobaba_university_EXPLORE_PPT
JayeshShete1
Cyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptxCyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptx
Harshith A S
Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...Air pollution is contamination of the indoor or outdoor environment by any ch...
Air pollution is contamination of the indoor or outdoor environment by any ch...
dhanashree78
Env and Water Supply Engg._Dr. Hasan.pdf
Env and Water Supply Engg._Dr. Hasan.pdfEnv and Water Supply Engg._Dr. Hasan.pdf
Env and Water Supply Engg._Dr. Hasan.pdf
MahmudHasan747870

Memory basic concept hierarchy and cache memory 1

Editor's Notes

  • #3: Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems.