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:10 | ISBN:9780763704445 | Edition: 3

Question

10. What are the three fields in a direct mapped cache address? How are they used to access a word located in cache?

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

Cache Mapping :
The process /technique of bringing data of main memory blocks into the cache block is known as cache mapping.
The mapping techniques can be classified as :

  1. Direct Mapping
  2. Associative
  3. Set-Associative

1. Direct Mapping : 
Each block from main memory has only one possible place in the cache organization in this technique. 

The 3 fields in a direct mapped cache adress are  : Tag, Block & Word.

To map the memory address to cache  :

  • The BLOCK field of the address is used to access the cache’s BLOCK.
  • Then, the  tag bits in the address is compared with the tag of the block.
  • For a match, a cache hit occur as the required word is found in the cache. Otherwise, a cache miss occurs and the required word has to be brought in the cache from the Main Memory.
  • The word is now stored in the cache together with the new tag (old tag is replaced).

 

1 0

Discussions

Post the discussion to improve the above solution.