Professional Documents
Culture Documents
CM 303
CM 303
ANDHRA PRADESH
Name : U.Rajya Lakshmi
Designation : Lecturer
Branch : Computer Engg.,
Institute : Govt.Polytechnic for Women,
PALAMANER.
Year/Semester : III Semester
Subject : Computer Architecture
Subject Code : CM-303
Topic : Memory Organization
Duration : 50 Min
Sub Topic : Address Mapping in Virtual System
Teaching aids : PPT,drawings
CM303.43 1
Do you Know
CM303.43 2
Recap of previous lesson
• Virtual address
• address used by the programmer to indicate the
position of instructions and data
• Virtual address space
• Set of virtual addresses
• Physical address
• Address of a word in main memory
• Physical address space
• Set of physical addresses
CM303.43 3
Virtual memory
CM303.43 4
Objectives
CM303.43 5
Introduction
• Virtual addresses
– Refer to instructions and data stored in secondary
memory
– Generated by CPU
– Must be translated in to physical addresses
CM303.43 6
Address mapping
Contd..
• Let V be the set of virtual addresses generated by
the program
• Let M be the set of physical addresses allocated to
run program
• To execute the program the virtual addresses must
be mapped on to physical address space
• This process of translation is called address mapping
or address binding
• Mapping process can be viewed as a function
f: V M
CM303.43 7
Address mapping Contd..
CM303.43 8
Address mapping Contd..
• Relation between address and memory space in
a virtual memory system is shown in the fig 4.8.
Auxiliary memory
Main memory
program1
Data 1,1
program1
Data 1,2
Data 2,1
memory space M=4 K
Address space V=8 K
Fig 1
CM303.43 9
Address mapping Contd..
Main
Virtual Memory Main
memory
address mapping memory
address
register table register
• Paging scheme
• Segmentation scheme
CM303.43 12
Summary
• In this class you have studied that
• Address mapping
• Translation of virtual addresses in to physical
addresses
• various mapping techniques
• Paging scheme
• Segmentation scheme
CM303.43 13
QUIZ
CM303.43 14
1. Translation of virtual address in to physical
address is called
a) data mapping
b) Address mapping
c) Instruction binding
d) Control information
CM303.43 15
1. Translation of virtual address in to physical
address is called
• data mapping
• Address mapping
• Instruction binding
• Control information
CM303.43 16
2. One virtual address mapping scheme is
a) Associative scheme
b) Segmentation scheme
c) Both a and b
d) None of the above
CM303.43 17
2. One virtual address mapping scheme is
• Associative scheme
• Segmentation scheme
• Both a and b
• None of the above
CM303.43 18
Short Answer Questions
CM303.43 19
Assignment Questions
CM303.43 20