FOR FREE YEAR SOLVED

Address Translation:

 

Important note: This chapter is very important for examination GATE/NET/SET/Engineering/Degree Courses.

 

Address Translation 

When the CPU tries to fetch a word or data from the main memory, the CPU generates a Logical address (Relocatable address) for this word or data but this address is not the actual location of the memory. Memory Management Unit (MMU) converts the Logical address (Relocatable address) to the corresponding Physical address (Absolute address) to map the actual location of main memory for this word or data. 

 

 

Here logical address contains two parts: page number and  Offset

 

and physical address contains two parts:  frame number and Offset

 

Page table and Pages both reside in the main memory. 

 

Offset

Here offset is the same for logical address and physical address space because offset means particular which word CPU wants to get from main memory.

 

So, logical address to physical address conversion means only convert page number to frame number.

 

Apart from the logical address CPU provides two more information to MMU 

1. Page Table Base Register (PTBR): It gives you the base address of the memory of the page table.

 

2. Page Table length Register (PTLR): It indicates the size of the table.

 

# Offset is the same for both page number and frame number. From the offset, MMU gets to know which word CPU wants from the memory location. 

 

# So, conversion of the logical address to physical address means only converts page number to frame number because the offset is the same for both cases.