Assume the address format for a 2-way set-associative cache is as follows: 4 bits 2 bits 2 bits Tag Set Offset 8 bits Given the cache directory is as shown in the diagram below, indicate which cache set the memory reference Ox5E maps (express set number in decimal) and whether it results in a cache hits or miss Copyright © 2016-2021 by A.Berrached-All Rights Reserved. Set Tag valid 00 ILI 0 01 10 11 0000 1101 0000 0001 0000 1011 0101 1000 1 1 0

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
### Question 24

Assume the address format for a 2-way set-associative cache is as follows:

```
4 bits           2 bits           2 bits
+-----------+-----------+-----------+
|    Tag    |    Set    |  Offset   |
+-----------+-----------+-----------+
<------------ 8 bits ------------>
```

Given the cache directory as shown in the diagram below, indicate which cache set the memory reference `0x5E` maps to and whether it results in a cache hit or miss.

| Set | Tag  | Valid |
|-----|------|-------|
| 00  | 0000 | 0     |
|     | 1100 | 0     |
| 01  | 0000 | 1     |
|     | 0001 | 1     |
| 10  | 0001 | 1     |
|     | 1011 | 1     |
| 11  | 0110 | 1     |
|     | 1000 | 0     |

*Note*: Express the set number in decimal.

<!-- Copyright notice -->
*Copyright © 2016-2021 by A.Berrached - All Rights Reserved.*
Transcribed Image Text:### Question 24 Assume the address format for a 2-way set-associative cache is as follows: ``` 4 bits 2 bits 2 bits +-----------+-----------+-----------+ | Tag | Set | Offset | +-----------+-----------+-----------+ <------------ 8 bits ------------> ``` Given the cache directory as shown in the diagram below, indicate which cache set the memory reference `0x5E` maps to and whether it results in a cache hit or miss. | Set | Tag | Valid | |-----|------|-------| | 00 | 0000 | 0 | | | 1100 | 0 | | 01 | 0000 | 1 | | | 0001 | 1 | | 10 | 0001 | 1 | | | 1011 | 1 | | 11 | 0110 | 1 | | | 1000 | 0 | *Note*: Express the set number in decimal. <!-- Copyright notice --> *Copyright © 2016-2021 by A.Berrached - All Rights Reserved.*
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY