in CO and Architecture
549 views
2 votes
2 votes
What is the difference b/w cache & TLB? TLB is stored in cache too right? TLB helps in addressing like a faster version of page table while speaking of cache, it directly stores the process page directly right?
in CO and Architecture
by
549 views

3 Answers

1 vote
1 vote
TLB is an address translation table that takes the virtual address from the CPU itself and gives the physical address of a memory reference. Cache takes the physical address and gives the data/instruction stored in that physical memory location. Both have similar architecture, Mappings, replacement algorithms, multiple levels, etc. The page table of a process is mapped onto TLB whereas the entire physical memory is mapped onto the cache.

1 comment

It is true in the cache of physical cache. But cache can be virtual too – mapping virtual address to corresponding physical data. Virtually indexed and physically tagged cache is the most common one.
0
0
0 votes
0 votes
TLB is stored in cache too right?  NO TLB is different Hardware than cache in which few page entry are there .

In contrary cahce keeps only process pages not “page table pages”
0 votes
0 votes
The difference between cache and TLB is that cache is a form of memory which stores data for quick access, while TLB is a hardware component which stores recently used addresses for faster look up when accessing memory. TLB entries are stored in cache, as the TLB is an intermediate layer between the processor and main memory. TLB helps in addressing by mapping virtual address to physical address, while cache stores data that has been accessed recently, allowing the processor to be more efficient and reduce the latency of accessing data.

Related questions