SlideShare a Scribd company logo
Memory Mapping Techniques and
Low Power Memory Design
Presented By:
Babar Shahzaad
14F-MS-CP-12
Department of Computer Engineering ,
Faculty of Telecommunication and Information Engineering ,
University of Engineering and Technology (UET), Taxila
Outline
Memory Mapping Techniques
Direct Mapping
Fully-Associative Mapping
Set-Associative Mapping
Summary of Memory Mapping Techniques
Low-Power Off-Chip Memory Design for Video
Decoder Using Embedded Bus-Invert Coding
Memory Mapping
Techniques
Memory Mapping Techniques
There are three main types of memory mapping
techniques:
1. Direct Mapping
2. Fully-Associative Mapping
3. Set-Associative Mapping
For the coming explanations, let us assume 1GB main
memory, 128KB Cache Memory and Cache Line Size
32B
Direct Mapping
Direct Mapping
Each block of main memory maps to only one cache
line
i.e. if a block is in cache, it must be in one specific place
Address is in two parts
Least Significant w bits identify unique word/byte
Most Significant s bits specify one memory block
The MSBs are split into a cache line field r and a tag
of s-r (most significant)
Direct Mapping (Cont…)
TAG LINE or SLOT(r) OFFSET
S W
For the given example, we have:
1GB Main Memory = 220 bytes
Cache Size = 128KB = 217 bytes
Block Size = 32B = 25 bytes
No. of Cache Line = 217/ 25 = 212 , thus 12 bits are
required to locate 212 lines
Direct Mapping (Cont…)
Also, offset is 25 bytes and thus 5 bits are required to
locate individual byte
Thus Tag bits = 32 – 12 – 5 = 15 bits
15 12 5
Summary
Address Length = (s + w) bits
Number of Addressable Units = 2s+w words or bytes
Block Size = Line Size = 2w words or bytes
No. of Blocks in Main Memory = 2s+w/2w = 2s
Number of Lines in Cache = m = 2r
Size of Tag = (s – r) bits
Fully-Associative
Mapping
Fully-Associative Mapping
A main memory block can load into any line of cache
Memory address is interpreted as tag and word
Tag uniquely identifies block of memory
Every line’s tag is examined for a match
Cache searching gets expensive and power
consumption due to parallel
TAG OFFSET
Fully-Associative Mapping (Cont…)
For the given example, we have:
1GB Main Memory = 220 bytes
Cache Size = 128KB = 217 bytes
Block Size = 32B = 25 bytes
Here, offset is 25 bytes and thus 5 bits are required to
locate individual byte
Thus Tag bits = 32 – 5 = 27 bits
27 5
Summary
Address Length = (s + w) bits
Number of Addressable Units = 2s+w words or bytes
Block Size = Line Size = 2w words or bytes
No. of Blocks in Main Memory = 2s+w/2w = 2s
Number of Lines in Cache = Total Number of Cache
Blocks
Size of Tag = s bits
Set-Associative
Mapping
Set-Associative Mapping
Cache is divided into a number of sets
Each set contains a number of lines
A given block maps to any line in a given set
e.g. Block B can be in any line of set i
If 2 lines per set
2 way set associative mapping
A given block can be in one of 2 lines in only one set
TAG SET(d) OFFSET
S W
Set-Associative Mapping(Cont…)
For the given example, we have:
1GB Main Memory = 220 bytes
Cache Size = 128KB = 217 bytes
Block Size = 32B = 25 bytes
Let be a 2-way Set Associative Cache
No. of Sets = 217/ (2*25)= 211 , thus 11 bits are required
to locate 211 sets and each set containing 2 lines
Set-Associative Mapping(Cont…)
Also, offset is 25 bytes and thus 5 bits are required to
locate individual byte
Thus Tag bits = 32 – 11 – 5 = 16 bits
16 11 5
Summary
Address Length = (s + w) bits
Number of Addressable Units = 2s+w words or bytes
Block Size = Line Size = 2w words or bytes
No. of Blocks in Main Memory = 2s+w/2w = 2s
Number of Lines in Set = k
Number of Sets = v = 2d
Number of Lines in Cache = k*v = k * 2d
Size of Tag = (s-d) bits
Summary of Memory Mapping
Techniques
Number of Misses
Direct Mapping > Set-Associative Mapping > Full-
Associative Mapping
Access Latency
Direct Mapping < Set-Associative Mapping < Full-
Associative Mapping
Low-Power Off-Chip
Memory Design for
Video Decoder Using
Embedded Bus-Invert
Coding
Abstract
Simple, efficient and low power memory design
proposed
Exploits features of DRAM memory and video
application
Overcomes the drawbacks of the algorithm complexity
and system modification of embedded compression
Integration of scheme into video decoder
Simple bus-invert encoding scheme
Fault tolerance of human eyes and lossy processing of
video decoding application
Introduction
High Definition(HD) video applications
Computation optimized
Memory system is still a problem
An external SDRAM chip is always needed for the video
codec
The external memory power consumption is a bottleneck
of video decoder system
Memory mapping techniques and low power memory design
Introduction (Cont…)
Minimizing the power consumption of the external memory
is the key issue for the embedded video application
To decrease the power consumption of off-chip memory:
The most popular way is embedded compression
Two drawbacks:
1. Algorithm complexity
2. System modification
SDRAM Memory
Proposed Method
Proposed Encoding
Scheme
Implementation of Integration
Experiment Results
Experiment Results
(Cont…)
Conclusion
A simple, efficient, low power SDRAM design is proposed
in video coding applications
Firstly, it exploits the features of power consumption of off-
chip SDRAM memory
Secondly, the analysis of video decoding is provided
Thirdly, this scheme is easy to be integrated into complete
video coding system
Memory mapping techniques and low power memory design
Ad

More Related Content

What's hot (20)

Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
Nikhil Kumar
 
Counters &amp; time delay
Counters &amp; time delayCounters &amp; time delay
Counters &amp; time delay
Hemant Chetwani
 
Addressing mode Computer Architecture
Addressing mode  Computer ArchitectureAddressing mode  Computer Architecture
Addressing mode Computer Architecture
Haris456
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
SnehalataAgasti
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representation
Ritu Ranjan Shrivastwa
 
Evolution Of Microprocessors
Evolution Of MicroprocessorsEvolution Of Microprocessors
Evolution Of Microprocessors
harinder
 
Parallel processing and pipelining
Parallel processing and pipeliningParallel processing and pipelining
Parallel processing and pipelining
mahesh kumar prajapat
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
SAQUIB AHMAD
 
Evolution of microprocessors
Evolution of microprocessorsEvolution of microprocessors
Evolution of microprocessors
harinder
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
Anuj Modi
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
Piyush Rochwani
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
Poojith Chowdhary
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
Dilum Bandara
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
George Thomas
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
RJ Aniket
 
Advanced Pipelining in ARM Processors.pptx
Advanced Pipelining  in ARM Processors.pptxAdvanced Pipelining  in ARM Processors.pptx
Advanced Pipelining in ARM Processors.pptx
JoyChowdhury30
 
Byte and string manipulation 8086
Byte and string manipulation 8086Byte and string manipulation 8086
Byte and string manipulation 8086
mpsrekha83
 
Bus Interface Unit(BIU) of 8086 Microprocessor
Bus Interface Unit(BIU) of 8086 MicroprocessorBus Interface Unit(BIU) of 8086 Microprocessor
Bus Interface Unit(BIU) of 8086 Microprocessor
Arafat Hossan
 
memory organi.pptx
memory organi.pptxmemory organi.pptx
memory organi.pptx
prakashpacet
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
Nikhil Kumar
 
Counters &amp; time delay
Counters &amp; time delayCounters &amp; time delay
Counters &amp; time delay
Hemant Chetwani
 
Addressing mode Computer Architecture
Addressing mode  Computer ArchitectureAddressing mode  Computer Architecture
Addressing mode Computer Architecture
Haris456
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representation
Ritu Ranjan Shrivastwa
 
Evolution Of Microprocessors
Evolution Of MicroprocessorsEvolution Of Microprocessors
Evolution Of Microprocessors
harinder
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
SAQUIB AHMAD
 
Evolution of microprocessors
Evolution of microprocessorsEvolution of microprocessors
Evolution of microprocessors
harinder
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
Anuj Modi
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
Piyush Rochwani
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
Dilum Bandara
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
George Thomas
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
RJ Aniket
 
Advanced Pipelining in ARM Processors.pptx
Advanced Pipelining  in ARM Processors.pptxAdvanced Pipelining  in ARM Processors.pptx
Advanced Pipelining in ARM Processors.pptx
JoyChowdhury30
 
Byte and string manipulation 8086
Byte and string manipulation 8086Byte and string manipulation 8086
Byte and string manipulation 8086
mpsrekha83
 
Bus Interface Unit(BIU) of 8086 Microprocessor
Bus Interface Unit(BIU) of 8086 MicroprocessorBus Interface Unit(BIU) of 8086 Microprocessor
Bus Interface Unit(BIU) of 8086 Microprocessor
Arafat Hossan
 
memory organi.pptx
memory organi.pptxmemory organi.pptx
memory organi.pptx
prakashpacet
 

Viewers also liked (20)

Memory Mapping Cache
Memory Mapping CacheMemory Mapping Cache
Memory Mapping Cache
Sajith Harshana
 
Cache memory
Cache memoryCache memory
Cache memory
Anuj Modi
 
Address mapping
Address mappingAddress mapping
Address mapping
rockymani
 
cache memory
cache memorycache memory
cache memory
Army Public School and College -Faisal
 
Cache memory
Cache memoryCache memory
Cache memory
Anand Goyal
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Kamal Acharya
 
04 Cache Memory
04  Cache  Memory04  Cache  Memory
04 Cache Memory
Jeanie Delos Arcos
 
Cache memory presentation
Cache memory presentationCache memory presentation
Cache memory presentation
bravehearted1010
 
Solution manual for modern processor design by john paul shen and mikko h. li...
Solution manual for modern processor design by john paul shen and mikko h. li...Solution manual for modern processor design by john paul shen and mikko h. li...
Solution manual for modern processor design by john paul shen and mikko h. li...
neeraj7svp
 
Full solution manual for modern processor design by john paul shen and mikko ...
Full solution manual for modern processor design by john paul shen and mikko ...Full solution manual for modern processor design by john paul shen and mikko ...
Full solution manual for modern processor design by john paul shen and mikko ...
neeraj7svp
 
Translation lookaside buffer
Translation lookaside bufferTranslation lookaside buffer
Translation lookaside buffer
Chetan Mahawar
 
Cache memory
Cache memoryCache memory
Cache memory
Ahsan Ashfaq
 
Instruction pipelining (ii)
Instruction pipelining (ii)Instruction pipelining (ii)
Instruction pipelining (ii)
Sanjivani Sontakke
 
Instruction pipelining
Instruction pipeliningInstruction pipelining
Instruction pipelining
Shoaib Commando
 
Diseño de mapas de memoria
Diseño de mapas de memoriaDiseño de mapas de memoria
Diseño de mapas de memoria
Eduardo Abalo
 
Input output in computer Orgranization and architecture
Input output in computer Orgranization and architectureInput output in computer Orgranization and architecture
Input output in computer Orgranization and architecture
vikram patel
 
Lecture 23
Lecture 23Lecture 23
Lecture 23
RahulRathi94
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
Rachel Hayes
 
Cache memory
Cache memoryCache memory
Cache memory
Ansari Maviya
 
Cache mapping
Cache mappingCache mapping
Cache mapping
Bibek Brahma
 
Cache memory
Cache memoryCache memory
Cache memory
Anuj Modi
 
Address mapping
Address mappingAddress mapping
Address mapping
rockymani
 
Solution manual for modern processor design by john paul shen and mikko h. li...
Solution manual for modern processor design by john paul shen and mikko h. li...Solution manual for modern processor design by john paul shen and mikko h. li...
Solution manual for modern processor design by john paul shen and mikko h. li...
neeraj7svp
 
Full solution manual for modern processor design by john paul shen and mikko ...
Full solution manual for modern processor design by john paul shen and mikko ...Full solution manual for modern processor design by john paul shen and mikko ...
Full solution manual for modern processor design by john paul shen and mikko ...
neeraj7svp
 
Translation lookaside buffer
Translation lookaside bufferTranslation lookaside buffer
Translation lookaside buffer
Chetan Mahawar
 
Diseño de mapas de memoria
Diseño de mapas de memoriaDiseño de mapas de memoria
Diseño de mapas de memoria
Eduardo Abalo
 
Input output in computer Orgranization and architecture
Input output in computer Orgranization and architectureInput output in computer Orgranization and architecture
Input output in computer Orgranization and architecture
vikram patel
 
Ad

Similar to Memory mapping techniques and low power memory design (20)

CACHEMAPPING POLICIE AND MERITS & DEMERITS
CACHEMAPPING POLICIE AND MERITS & DEMERITSCACHEMAPPING POLICIE AND MERITS & DEMERITS
CACHEMAPPING POLICIE AND MERITS & DEMERITS
AnkitPandey440
 
Lecture 6 - Address Mapping & Replacement.pptx
Lecture 6 - Address Mapping & Replacement.pptxLecture 6 - Address Mapping & Replacement.pptx
Lecture 6 - Address Mapping & Replacement.pptx
ChintuKashyap
 
Cmp.pptx
Cmp.pptxCmp.pptx
Cmp.pptx
foff3
 
waserdtfgfiuerhiuerwehfiuerghzsdfghyguhijdrtyunit5.pptx
waserdtfgfiuerhiuerwehfiuerghzsdfghyguhijdrtyunit5.pptxwaserdtfgfiuerhiuerwehfiuerghzsdfghyguhijdrtyunit5.pptx
waserdtfgfiuerhiuerwehfiuerghzsdfghyguhijdrtyunit5.pptx
abcxyz19691969
 
Ag32224229
Ag32224229Ag32224229
Ag32224229
IJERA Editor
 
Chapter 4 Lossless Compression Algorithims.pptx
Chapter 4 Lossless Compression Algorithims.pptxChapter 4 Lossless Compression Algorithims.pptx
Chapter 4 Lossless Compression Algorithims.pptx
MedinaBedru
 
Cache memory
Cache  memoryCache  memory
Cache memory
Prasenjit Dey
 
Mpeg 2
Mpeg 2Mpeg 2
Mpeg 2
Minakshi Atre
 
memory.ppt
memory.pptmemory.ppt
memory.ppt
RohitPaul71
 
memory.ppt
memory.pptmemory.ppt
memory.ppt
ibmlenovo2021
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
sathish sak
 
memory management powerpoint presentation
memory management powerpoint presentationmemory management powerpoint presentation
memory management powerpoint presentation
Nune SrinivasRao
 
Xdr ppt
Xdr pptXdr ppt
Xdr ppt
Nidhi Thakkar
 
RAM Design
RAM DesignRAM Design
RAM Design
Allegorised Akshay
 
Cache memory
Cache memoryCache memory
Cache memory
Shailesh Tanwar
 
A Simplied Bit-Line Technique for Memory Optimization
A Simplied Bit-Line Technique for Memory OptimizationA Simplied Bit-Line Technique for Memory Optimization
A Simplied Bit-Line Technique for Memory Optimization
ijsrd.com
 
Memory Design of embedded system engineering.pptx
Memory Design of embedded system engineering.pptxMemory Design of embedded system engineering.pptx
Memory Design of embedded system engineering.pptx
AbdulWaseKhan10
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
mkazree
 
Lecture 10b - Ch No. 04 (Part 02) (1).pptx
Lecture 10b - Ch No. 04 (Part 02) (1).pptxLecture 10b - Ch No. 04 (Part 02) (1).pptx
Lecture 10b - Ch No. 04 (Part 02) (1).pptx
AdeelAsghar36
 
Cache management
Cache managementCache management
Cache management
UET Taxila
 
CACHEMAPPING POLICIE AND MERITS & DEMERITS
CACHEMAPPING POLICIE AND MERITS & DEMERITSCACHEMAPPING POLICIE AND MERITS & DEMERITS
CACHEMAPPING POLICIE AND MERITS & DEMERITS
AnkitPandey440
 
Lecture 6 - Address Mapping & Replacement.pptx
Lecture 6 - Address Mapping & Replacement.pptxLecture 6 - Address Mapping & Replacement.pptx
Lecture 6 - Address Mapping & Replacement.pptx
ChintuKashyap
 
Cmp.pptx
Cmp.pptxCmp.pptx
Cmp.pptx
foff3
 
waserdtfgfiuerhiuerwehfiuerghzsdfghyguhijdrtyunit5.pptx
waserdtfgfiuerhiuerwehfiuerghzsdfghyguhijdrtyunit5.pptxwaserdtfgfiuerhiuerwehfiuerghzsdfghyguhijdrtyunit5.pptx
waserdtfgfiuerhiuerwehfiuerghzsdfghyguhijdrtyunit5.pptx
abcxyz19691969
 
Chapter 4 Lossless Compression Algorithims.pptx
Chapter 4 Lossless Compression Algorithims.pptxChapter 4 Lossless Compression Algorithims.pptx
Chapter 4 Lossless Compression Algorithims.pptx
MedinaBedru
 
memory management powerpoint presentation
memory management powerpoint presentationmemory management powerpoint presentation
memory management powerpoint presentation
Nune SrinivasRao
 
A Simplied Bit-Line Technique for Memory Optimization
A Simplied Bit-Line Technique for Memory OptimizationA Simplied Bit-Line Technique for Memory Optimization
A Simplied Bit-Line Technique for Memory Optimization
ijsrd.com
 
Memory Design of embedded system engineering.pptx
Memory Design of embedded system engineering.pptxMemory Design of embedded system engineering.pptx
Memory Design of embedded system engineering.pptx
AbdulWaseKhan10
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
mkazree
 
Lecture 10b - Ch No. 04 (Part 02) (1).pptx
Lecture 10b - Ch No. 04 (Part 02) (1).pptxLecture 10b - Ch No. 04 (Part 02) (1).pptx
Lecture 10b - Ch No. 04 (Part 02) (1).pptx
AdeelAsghar36
 
Cache management
Cache managementCache management
Cache management
UET Taxila
 
Ad

Recently uploaded (20)

railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdfRICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
MohamedAbdelkader115
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
The Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLabThe Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLab
Journal of Soft Computing in Civil Engineering
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdffive-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
AdityaSharma944496
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdfRICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
MohamedAbdelkader115
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdffive-year-soluhhhhhhhhhhhhhhhhhtions.pdf
five-year-soluhhhhhhhhhhhhhhhhhtions.pdf
AdityaSharma944496
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 

Memory mapping techniques and low power memory design

  • 1. Memory Mapping Techniques and Low Power Memory Design Presented By: Babar Shahzaad 14F-MS-CP-12 Department of Computer Engineering , Faculty of Telecommunication and Information Engineering , University of Engineering and Technology (UET), Taxila
  • 2. Outline Memory Mapping Techniques Direct Mapping Fully-Associative Mapping Set-Associative Mapping Summary of Memory Mapping Techniques Low-Power Off-Chip Memory Design for Video Decoder Using Embedded Bus-Invert Coding
  • 4. Memory Mapping Techniques There are three main types of memory mapping techniques: 1. Direct Mapping 2. Fully-Associative Mapping 3. Set-Associative Mapping For the coming explanations, let us assume 1GB main memory, 128KB Cache Memory and Cache Line Size 32B
  • 6. Direct Mapping Each block of main memory maps to only one cache line i.e. if a block is in cache, it must be in one specific place Address is in two parts Least Significant w bits identify unique word/byte Most Significant s bits specify one memory block The MSBs are split into a cache line field r and a tag of s-r (most significant)
  • 7. Direct Mapping (Cont…) TAG LINE or SLOT(r) OFFSET S W For the given example, we have: 1GB Main Memory = 220 bytes Cache Size = 128KB = 217 bytes Block Size = 32B = 25 bytes No. of Cache Line = 217/ 25 = 212 , thus 12 bits are required to locate 212 lines
  • 8. Direct Mapping (Cont…) Also, offset is 25 bytes and thus 5 bits are required to locate individual byte Thus Tag bits = 32 – 12 – 5 = 15 bits 15 12 5
  • 9. Summary Address Length = (s + w) bits Number of Addressable Units = 2s+w words or bytes Block Size = Line Size = 2w words or bytes No. of Blocks in Main Memory = 2s+w/2w = 2s Number of Lines in Cache = m = 2r Size of Tag = (s – r) bits
  • 11. Fully-Associative Mapping A main memory block can load into any line of cache Memory address is interpreted as tag and word Tag uniquely identifies block of memory Every line’s tag is examined for a match Cache searching gets expensive and power consumption due to parallel TAG OFFSET
  • 12. Fully-Associative Mapping (Cont…) For the given example, we have: 1GB Main Memory = 220 bytes Cache Size = 128KB = 217 bytes Block Size = 32B = 25 bytes Here, offset is 25 bytes and thus 5 bits are required to locate individual byte Thus Tag bits = 32 – 5 = 27 bits 27 5
  • 13. Summary Address Length = (s + w) bits Number of Addressable Units = 2s+w words or bytes Block Size = Line Size = 2w words or bytes No. of Blocks in Main Memory = 2s+w/2w = 2s Number of Lines in Cache = Total Number of Cache Blocks Size of Tag = s bits
  • 15. Set-Associative Mapping Cache is divided into a number of sets Each set contains a number of lines A given block maps to any line in a given set e.g. Block B can be in any line of set i If 2 lines per set 2 way set associative mapping A given block can be in one of 2 lines in only one set TAG SET(d) OFFSET S W
  • 16. Set-Associative Mapping(Cont…) For the given example, we have: 1GB Main Memory = 220 bytes Cache Size = 128KB = 217 bytes Block Size = 32B = 25 bytes Let be a 2-way Set Associative Cache No. of Sets = 217/ (2*25)= 211 , thus 11 bits are required to locate 211 sets and each set containing 2 lines
  • 17. Set-Associative Mapping(Cont…) Also, offset is 25 bytes and thus 5 bits are required to locate individual byte Thus Tag bits = 32 – 11 – 5 = 16 bits 16 11 5
  • 18. Summary Address Length = (s + w) bits Number of Addressable Units = 2s+w words or bytes Block Size = Line Size = 2w words or bytes No. of Blocks in Main Memory = 2s+w/2w = 2s Number of Lines in Set = k Number of Sets = v = 2d Number of Lines in Cache = k*v = k * 2d Size of Tag = (s-d) bits
  • 19. Summary of Memory Mapping Techniques Number of Misses Direct Mapping > Set-Associative Mapping > Full- Associative Mapping Access Latency Direct Mapping < Set-Associative Mapping < Full- Associative Mapping
  • 20. Low-Power Off-Chip Memory Design for Video Decoder Using Embedded Bus-Invert Coding
  • 21. Abstract Simple, efficient and low power memory design proposed Exploits features of DRAM memory and video application Overcomes the drawbacks of the algorithm complexity and system modification of embedded compression Integration of scheme into video decoder Simple bus-invert encoding scheme Fault tolerance of human eyes and lossy processing of video decoding application
  • 22. Introduction High Definition(HD) video applications Computation optimized Memory system is still a problem An external SDRAM chip is always needed for the video codec The external memory power consumption is a bottleneck of video decoder system
  • 24. Introduction (Cont…) Minimizing the power consumption of the external memory is the key issue for the embedded video application To decrease the power consumption of off-chip memory: The most popular way is embedded compression Two drawbacks: 1. Algorithm complexity 2. System modification
  • 31. Conclusion A simple, efficient, low power SDRAM design is proposed in video coding applications Firstly, it exploits the features of power consumption of off- chip SDRAM memory Secondly, the analysis of video decoding is provided Thirdly, this scheme is easy to be integrated into complete video coding system