Question

In: Computer Science

Caches are important to providing a high performance memory hierarchy to processors. Below is a list...

Caches are important to providing a high performance memory hierarchy to processors. Below is a list of 32-bit memory address references, given as word addresses. 6, 214, 175, 149, 214, 6 Given a direct-mapped cache with four-word blocks and a total size of 16 blocks. Please fill in the following table. You may assume that the cache is initially empty. Because the given address is word address, we may compute tags and indices based on word address. Four-word blocks indicate the right most 2 bits are offset in a block. 16 blocks indicates there are 4 bits for indices, and the rest 26 bits will be the tag.

Word address Binary Tag (hex) Index (Hex) Hit/Miss

6

214

175

149

214

6

Solutions

Expert Solution

We have to use direct mapped caching and create a table

Every address will be represented in 32 bit binary notation

Word offset is represented by the right most bits of the binary memory address and will be in italic

Index bits will be the next 4 bits  of the binary memory address and will be in bold

Tag bits will be remaining 26 bits and they will be represented without any formatting.

The cache is initially empty

The first address is 6 and is placed in block 1 and the result will be a miss.

The second address is 214 and is placed in block 5 and the result will be a miss.

The third address is 175 and is placed in block 11 and the result will be a miss.

The fourth address is 149 and is placed in block 5 replacing the its previous contents and the result will be a miss.

The fifth address is 214 and is placed in block 5 replacing the its previous contents and the result will be a miss.

The sixth address is 6 but it is already present in block 1, so this memory access will be a hit

Word Address (Binary) Tag (Hex) Index (Hex) Hit / Miss
6 (00000000000000000000000000000110) 0x0000000 0x1 Miss
214 (00000000000000000000000011010110) 0x0000003 0x5 Miss
175 (00000000000000000000000010101111) 0x0000002 0xb Miss
149 (00000000000000000000000010010101) 0x0000002 0x5 Miss
214 (00000000000000000000000011010110) 0x0000003 0x5 Miss
6 (00000000000000000000000000000110) 0x0000000 0x1 Hit

Related Solutions

Consider the table given below for a fixed memory allocation scheme: Given the jobs list information...
Consider the table given below for a fixed memory allocation scheme: Given the jobs list information and memory information in the table below, answer the questions that follow: Job Number Memory Requested                         Memory Block Memory Block Size Job 1 600 Block 1 1200 Job 2 920 Block 2 300 Job 3 1100 Block 3 930 Job 4 700 Block 4 950             (Assume all jobs are in a waiting queue in the order given, also assume that the memory...
1) list two hydration products of portland cement; one providing strength and other causing high pH...
1) list two hydration products of portland cement; one providing strength and other causing high pH ? 2) water reducing admixture ( including superplasticizer or high range water reducer) can be used to achieve the required workability with lesss amount of water. what is the mechanism of water reducer? Civil Engineering materials class
Which do you think is more important to performance and effectiveness: hiring followers with high levels...
Which do you think is more important to performance and effectiveness: hiring followers with high levels of achievement orientation or designing work activities to improve autonomy, mastery, and meaning? Why?
what important information about working with high risk groups should Nerelee know about before providing support...
what important information about working with high risk groups should Nerelee know about before providing support services in a person's private home
Discuss what you think is the most important HPWS (high performance work system) element. Be sure...
Discuss what you think is the most important HPWS (high performance work system) element. Be sure to explain your rationale. The theory of high performance work systems (HPWS) with four foundation principles are outlined below. Older Management – Labor Theories and Practices                          HPWS Principles Incentive/cost reduction productivity (1930s onward)       Quality and Total Quality theories (1960s onward)                            Performance-Reward Empowerment/Engagement Theories (1960s onward) Motivation/Satisfaction Theories (1930s onward)                                     Egalitarianism Efficient Operations Workflow theories (1970s onward)                        Employee Teams/Autonomous Work (1970s onward)                           Shared Information Information/Problem...
Please answer the question below and clearly explain..........Describe how IT performance reports are important in IT...
Please answer the question below and clearly explain..........Describe how IT performance reports are important in IT governance.
Topic: Project Management and Evaluation Answer one of the two questions below: 1. List three important...
Topic: Project Management and Evaluation Answer one of the two questions below: 1. List three important items that belong within a project management plan, and the importance of breaking the project into phases. Please comment on the importance of obtaining sponsorship approval when concluding each phase of the project. 2. What reasons might exist for initiating a Project evaluation? When might a Project evaluation be inappropriate? What steps or activities are involved in planning how to conduct a Project evaluation?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT