2,342 views
2 votes
2 votes
a) What is address translation table??

b) is it converting virtual adress to physical address??

c) if so Then for a system having no virtual memory , will not have aaddress translation table??

1 Answer

Best answer
4 votes
4 votes
If your user program directly deals with Physical memory , then certainly the Security of our system is in danger. This is one of the reason for 'why virtual memory'.When our system uses this technique , the whole physical memory services are abstracted , what we can see is 'Virtual addresses'. We can never know the actual physical address which our program uses.

Now when there are virtual addresses and physical addresses then question arises , who will translate a virtual address to physical address , Here MMU comes in picture.MMU is hardware usually inside CPU (or sometimes separate IC)that converts virtual addresses to physical addresses. Now CPU sends this physical address through buses to Memory controller and this memory controller takes this physical address supplied by CPU and uses it to interact with DRAM.SO that's the story of MMU.

Page tables are basically data structures corresponds to particular process and they contains mappings between virtual addresses and physical addresses.our OS maintains these tables.When CPU generates a logical address , it must br translated and most of the time (say ~99%) this this logical to physical address translation available in TLB which is a Cache (reside on MMU).THe reason behind using TLB is , to get the translation work as fast and possible and if we access memory every time for this translation (in case of Page table , if they are stored in memory) then it's a drastically time consuming.If there is TLB miss then MMU will access the page table through PTBR.

If page table size is small enough(which is generally not) then we can store them in registers.

If there is no virtual memory concept then No MMU,no page table nothing needed because now we are accessing DRAM directly.
edited by

Related questions

0 votes
0 votes
2 answers
1
2 votes
2 votes
1 answer
2
srestha asked Dec 22, 2017
949 views
16 bit virtual address space20 bit physical address spacePage Table 0x1F 0x3F 0x23 0x17What are the physical address for virtual address 0xF0F0 and 0x...
2 votes
2 votes
0 answers
3
srestha asked Nov 24, 2017
1,258 views
Which one is TRUE? Give explaination1)The main reason to have multilevel page to speed up address translation2)The main reason to have hardware TLB to speed up address tr...
0 votes
0 votes
0 answers
4
Sunnydrall asked May 17, 2016
222 views