Question: 5 . 1 1 This exercise examines the effect of different cache designs, specifically comparing associative caches to the direct - mapped caches from Section

5.11 This exercise examines the effect of different cache designs, specifically comparing associative caches to the direct-mapped caches from Section 5.4. For these exercises, refer to the sequence of word address shown below.
003,0b4,02b,002,0xbe,058,0xbf,0x0e,01f,
0b5,0xbf,0ba,0x2e,0xce
5.11.1[10]$5.4> Sketch the organization of a three-way set associative cache with two-word blocks and a total size of 48 words. Your sketch should have a style similar to Figure 5.18, but clearly show the width of the tag and data fields.
5.11.2[10] $5.4> Trace the behavior of the cache from Exercise 5.11.1. Assume a true LRU replacement policy. For each reference, identify
the binary word address,
the tag,
the index,
the offset
whether the reference is a hit or a miss, and
which tags are in each way of the cache after the reference has been handled.
5.11.3[5]55.4> Sketch the organization of a fully associative cache with oneword blocks and a total size of eight words. Your sketch should have a style similar to Figure 5.18, but clearly show the width of the tag and data fields.
5.11.4[10]$5.4> Trace the behavior of the cache from Exercise 5.11.3. Assume a true LRU replacement policy. For each reference, identify
the binary word address,
the tag,
the index,
the offset,
whether the reference is a hit or a miss, and
the contents of the cache after each reference has been handled.
Address
FIGURE 5.18 The implementation of a four-way set-associative cache requires four comparators and a 4-to-1 multiplexor. The comparators determine which element of the selected set (if any) matches the tag. The output of the comparators is used to select the data from one of the four blocks of the indexed set, using a multiplexor with a decoded select signal. In some implementations, the Output enable signals on the data portions of the cache RAMs can be used to select the entry in the set that drives the output. The Output enable signal comes from the comparators, causing the element that matches to drive the data outputs. This organization eliminates the need for the multiplexor.
 5.11 This exercise examines the effect of different cache designs, specifically

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!