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

More Related Content

What's hot (20)

PPTX
Timing Diagram of MVI Instruction of 8085 Microprocessor
Dhrumil Panchal
 
PDF
UVM_TB_20220621_slides-1.pdf
SamHoney6
 
PPTX
HDL (hardware description language) presentation
Digital Marketing Evangelist
 
PPTX
8155 Basic Concepts
Srinath Kalikivayi
 
PDF
SOC Chip Basics
Dr. A. B. Shinde
 
PDF
Lexical analysis - Compiler Design
Kuppusamy P
 
PPTX
Unit 4 sp macro
Deepmala Sharma
 
PPT
Assembly Language Programming Of 8085
techbed
 
PPTX
Fiduccia mattheyses
Tanvi Prabhu Dessai
 
PPT
Data representation moris mano ch 03
thearticlenow
 
PPTX
Assemblers
Dattatray Gandhmal
 
PPTX
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
PDF
Chapter4 - The Continuous-Time Fourier Transform
Attaporn Ninsuwan
 
PPTX
Verilog
Mohamed Rayan
 
PDF
8085 branching instruction
prashant1271
 
PDF
Delays in verilog
JITU MISTRY
 
PPT
Programmable Logic Devices Plds
Gaditek
 
PDF
Automatic Test Pattern Generation (Testing of VLSI Design)
Usha Mehta
 
PPTX
The dag representation of basic blocks
Shabeen Taj
 
PPTX
ARM Processors
Mathivanan Natarajan
 
Timing Diagram of MVI Instruction of 8085 Microprocessor
Dhrumil Panchal
 
UVM_TB_20220621_slides-1.pdf
SamHoney6
 
HDL (hardware description language) presentation
Digital Marketing Evangelist
 
8155 Basic Concepts
Srinath Kalikivayi
 
SOC Chip Basics
Dr. A. B. Shinde
 
Lexical analysis - Compiler Design
Kuppusamy P
 
Unit 4 sp macro
Deepmala Sharma
 
Assembly Language Programming Of 8085
techbed
 
Fiduccia mattheyses
Tanvi Prabhu Dessai
 
Data representation moris mano ch 03
thearticlenow
 
Assemblers
Dattatray Gandhmal
 
ARITHMETIC OPERATIONS IN 8085 MICROPROCESSOR
RamaPrabha24
 
Chapter4 - The Continuous-Time Fourier Transform
Attaporn Ninsuwan
 
Verilog
Mohamed Rayan
 
8085 branching instruction
prashant1271
 
Delays in verilog
JITU MISTRY
 
Programmable Logic Devices Plds
Gaditek
 
Automatic Test Pattern Generation (Testing of VLSI Design)
Usha Mehta
 
The dag representation of basic blocks
Shabeen Taj
 
ARM Processors
Mathivanan Natarajan
 

Viewers also liked (20)

PPT
Memory Mapping Cache
Sajith Harshana
 
PPS
Cache memory
Anuj Modi
 
PPTX
Address mapping
rockymani
 
PPTX
Mapping
Syed Ali Sherazi
 
PPTX
Cache memory
Anand Goyal
 
PPTX
Memory Organization
Kamal Acharya
 
PPT
04 Cache Memory
Jeanie Delos Arcos
 
PPT
Cache memory presentation
bravehearted1010
 
PDF
Solution manual for modern processor design by john paul shen and mikko h. li...
neeraj7svp
 
PDF
Full solution manual for modern processor design by john paul shen and mikko ...
neeraj7svp
 
PPTX
Translation lookaside buffer
Chetan Mahawar
 
PPTX
Cache memory
Ahsan Ashfaq
 
PDF
Instruction pipelining (ii)
Sanjivani Sontakke
 
PPT
Instruction pipelining
Shoaib Commando
 
PPT
Diseño de mapas de memoria
Eduardo Abalo
 
PPTX
Input output in computer Orgranization and architecture
vikram patel
 
PPTX
Lecture 23
RahulRathi94
 
PPTX
Memory mapping
Rachel Hayes
 
PPTX
Cache memory
Ansari Maviya
 
Memory Mapping Cache
Sajith Harshana
 
Cache memory
Anuj Modi
 
Address mapping
rockymani
 
Cache memory
Anand Goyal
 
Memory Organization
Kamal Acharya
 
04 Cache Memory
Jeanie Delos Arcos
 
Cache memory presentation
bravehearted1010
 
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 ...
neeraj7svp
 
Translation lookaside buffer
Chetan Mahawar
 
Cache memory
Ahsan Ashfaq
 
Instruction pipelining (ii)
Sanjivani Sontakke
 
Instruction pipelining
Shoaib Commando
 
Diseño de mapas de memoria
Eduardo Abalo
 
Input output in computer Orgranization and architecture
vikram patel
 
Lecture 23
RahulRathi94
 
Memory mapping
Rachel Hayes
 
Cache memory
Ansari Maviya
 
Ad

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

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

Recently uploaded (20)

PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PPTX
Big Data and Data Science hype .pptx
SUNEEL37
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PPTX
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PDF
Zilliz Cloud Demo for performance and scale
Zilliz
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PPTX
MATLAB : Introduction , Features , Display Windows, Syntax, Operators, Graph...
Amity University, Patna
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
Design Thinking basics for Engineers.pdf
CMR University
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
Thermal runway and thermal stability.pptx
godow93766
 
Big Data and Data Science hype .pptx
SUNEEL37
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Zilliz Cloud Demo for performance and scale
Zilliz
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
MATLAB : Introduction , Features , Display Windows, Syntax, Operators, Graph...
Amity University, Patna
 

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