SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Linda Null ,julia Lobur
Chapter:
Memory
Exercise:
Review Of Essential Terms And Concepts
Question:13 | ISBN:9780763704445 | Edition: 3

Question

Explain how set associative cache combines the ideas of direct and fully associative cache.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

Set associative cache combines the ideas of direct mapped and fully associative cache is as follows

  • An N-way set associative cache mapping is like direct mapped cache in that a memory reference maps to a particular location in cache.
  • A memory reference maps to a set of several (N) cache blocks, similar to the way in which fully associative cache works unlike direct mapped cache.
  • A memory reference can map only to the subset of cache slots instead of mapping anywhere in the entire cache.
  • In set associative cache mapping, a memory reference is divided into three fields. Those are tag, set, and word.
  • As with direct-mapped cache, the word field chooses the word within the cache block, and the tag field uniquely identifies the memory address.
0 0

Discussions

Post the discussion to improve the above solution.