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

1 Answer

+8 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 (370k points)
selected by

Related questions

+1 vote
0 answers
1
+5 votes
1 answer
3
+2 votes
1 answer
7
asked Nov 2, 2017 in Programming by hem chandra joshi Active (4.6k points) | 280 views


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

44,462 questions
49,919 answers
165,465 comments
65,898 users