The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+2 votes
402 views
asked in CO & Architecture by (41 points) | 402 views

1 Answer

+7 votes
Best answer
A cache as everyone knows, stores a copy of data from memory in a fast storage near to CPU. Now, in a system with virtual memory, CPU will be working on logical address and this logical address will be translated to physical address by the memory unit before data is fetched from the main memory. So, if we use the cache before this translation, it will be virtually addressed and if we use cache after this translation, it will be physically addressed.

TLB (which is like a cache for page table) is looked up on to perform virtual-physical address translation. So, in a virtually addressed cache, TLB comes after cache and in a physically addressed cache, TLB comes before the cache.

For more reference:
http://cseweb.ucsd.edu/classes/fa10/cse240a/pdf/08/CSE240A-MBT-L18-VirtualMemory.ppt.pdf
answered by Veteran (332k points)
selected by

Related questions

+1 vote
0 answers
1
+4 votes
1 answer
3


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

32,545 questions
39,231 answers
109,313 comments
36,613 users