You are on page 1of 7

Conversion of Logical Address

to Physical Address

fb.com/angeles.sti.edu
(045) 625-7667 MADE MORE
TO
BE
Logical Address
▪ It is a virtual address generated by the CPU while
a program is running. It is referred to as a virtual
address because it does not exist physically.

Physical Address
▪ It is the actual address of the data inside the
memory. The logical address is a virtual address
and the program needs physical memory for its
execution.

fb.com/angeles.sti.edu
(045) 625-7667 MADE MORE
TO
BE
Comparison between Logical Address and
Physical Address
LOGICAL ADDRESS PHYSICAL ADDRESS
It is a virtual address. It is the actual location in the memory.
It is visible to the user It is not visible to the user
It is generated by the CPU. It is computed by the MMU.
It is used by the user to access the
It is not accessible directly by the user.
physical address inside the memory.
The set of all physical addresses
The set of all logical addresses
corresponding to the logical addresses
generated by the CPU is called the
in the logical address space is called the
logical address space.
physical address space.

fb.com/angeles.sti.edu
(045) 625-7667 MADE MORE TO
BE
Segmentation
▪ Each process is divided into a number of
segments, wherein a process is loaded by adding
all of its segments into dynamic partitions.

▪ Base address: it contains the starting


physical where the segments reside in
memory.
▪ Limit: it specifies the length of the segment.

fb.com/angeles.sti.edu
(045) 625-7667 MADE MORE
TO
BE
Conversion of Logical Address to
Physical Address

Segment Offset SEGMENT BASE LENGTH


0 99
2 78 0 330 124
1 265 1 876 211
3 222 2 111 99
0 111
3 498 302
LA=Segment No. + Offset
PA=Base + Offset
fb.com/angeles.sti.edu
(045) 625-7667 MADE MORE
TO
BE
In 05:00 minutes, calculate the physical address for
the following logical address

Segment Offset SEGMENT BASE LENGTH


0 430
2 500 0 219 600
1 10 1 2300 14
3 400
4 114 2 90 100
3 1327 580
LA=Segment No. + Offset 4 1952 96
PA=Base + Offset
fb.com/angeles.sti.edu
(045) 625-7667 MADE MORE
TO
BE
End of Presentation!

fb.com/angeles.sti.edu
(045) 625-7667 MADE MORE
TO
BE

You might also like