If each of the following addresses were accessed in sequence, identify if they would be a "hit" or a "miss":

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

ALSO: What is the hit ratio for the memory accesses (Round to the nearest percent.)

Suppose we have a computer that uses a memory address word size of 8 bits. This computer has a 16-byte cache with 4 bytes per block. The computer accesses a number of memory locations throughout the course of running a program.

Suppose this computer uses direct-mapped cache. The format of a memory address as seen by the cache is shown below:

```
Tag      Block      Offset
4 bits   2 bits     2 bits
```

Given the following cache contents:

- **Block 0:**
  - Tag: 1110
  - Cache Contents (represented by address):
    - 0xE0
    - 0xE1
    - 0xE2
    - 0xE3

- **Block 1:**
  - Tag: 0001
  - Cache Contents (represented by address):
    - 0x14
    - 0x15
    - 0x16
    - 0x17

- **Block 2:**
  - Tag: 1011
  - Cache Contents (represented by address):
    - 0xB8
    - 0xB9
    - 0xBA
    - 0xBB

- **Block 3:**
  - Tag: 0110
  - Cache Contents (represented by address):
    - 0x6C
    - 0x6D
    - 0x6E
    - 0x6F

If each of the following addresses were accessed in sequence, identify if they would be a "hit" or a "miss":

- 0x4F
- 0x6E
- 0xBA
- 0x4E
- 0x6F
- 0xBB
Transcribed Image Text:Suppose we have a computer that uses a memory address word size of 8 bits. This computer has a 16-byte cache with 4 bytes per block. The computer accesses a number of memory locations throughout the course of running a program. Suppose this computer uses direct-mapped cache. The format of a memory address as seen by the cache is shown below: ``` Tag Block Offset 4 bits 2 bits 2 bits ``` Given the following cache contents: - **Block 0:** - Tag: 1110 - Cache Contents (represented by address): - 0xE0 - 0xE1 - 0xE2 - 0xE3 - **Block 1:** - Tag: 0001 - Cache Contents (represented by address): - 0x14 - 0x15 - 0x16 - 0x17 - **Block 2:** - Tag: 1011 - Cache Contents (represented by address): - 0xB8 - 0xB9 - 0xBA - 0xBB - **Block 3:** - Tag: 0110 - Cache Contents (represented by address): - 0x6C - 0x6D - 0x6E - 0x6F If each of the following addresses were accessed in sequence, identify if they would be a "hit" or a "miss": - 0x4F - 0x6E - 0xBA - 0x4E - 0x6F - 0xBB
Expert Solution
trending now

Trending now

This is a popular 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