2. Suppose we have a memory and a direct-mapped cache with the following characteristics. Memory is byte addressable Memory addresses are 16 bits The cache has 8 blocks Each cache block holds 16 bytes of data a) In the spaces below, indicate how the 16 address bits are allocated to the offset, index, and tag parts of the address used to reference the cache: offset bits tag bits index bits. b) Below is a sequence of four binary memory addresses in the order they are used to reference memory. Assume that the cache is initially empty. For each reference, write down the tag and index bits and circle either hit or miss to indicate whether that reference is a hit or a miss. Memory address Hit / Miss (circle) 0010 1101 1011 0011 Hit Miss 0000 0110 1111 1100 Hit Miss 0010 1101 1011 1000 Hit Miss 1010 1010 1010 1011 Hit Miss c) Suppose the cache access time is 15ns, main memory access time is 220ns, and the cache hit rate is 95%. Assuming non-overlapped access, what is the average access time for the processor to access an item? Tag Index

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Topic Video
Question
2. Suppose we have a memory and a direct-mapped cache with the following
characteristics.
Memory is byte addressable
Memory addresses are 16 bits
The cache has 8 blocks
Each cache block holds 16 bytes of data
a) In the spaces below, indicate how the 16 address bits are allocated to the offset, index,
and tag parts of the address used to reference the cache:
offset bits
tag bits
index bits.
b) Below is a sequence of four binary memory addresses in the order they are used to
reference memory. Assume that the cache is initially empty. For each reference, write
down the tag and index bits and circle either hit or miss to indicate whether that
reference is a hit or a miss.
Memory address
Hit / Miss (circle)
0010 1101 1011 0011
Hit
Miss
0000 0110 1111 1100
Hit
Miss
0010 1101 1011 1000
Hit
Miss
1010 1010 1010 1011
Hit
Miss
c) Suppose the cache access time is 15ns, main memory access time is 220ns, and the
cache hit rate is 95%. Assuming non-overlapped access, what is the average
access time for the processor to access an item?
Tag
Index
Transcribed Image Text:2. Suppose we have a memory and a direct-mapped cache with the following characteristics. Memory is byte addressable Memory addresses are 16 bits The cache has 8 blocks Each cache block holds 16 bytes of data a) In the spaces below, indicate how the 16 address bits are allocated to the offset, index, and tag parts of the address used to reference the cache: offset bits tag bits index bits. b) Below is a sequence of four binary memory addresses in the order they are used to reference memory. Assume that the cache is initially empty. For each reference, write down the tag and index bits and circle either hit or miss to indicate whether that reference is a hit or a miss. Memory address Hit / Miss (circle) 0010 1101 1011 0011 Hit Miss 0000 0110 1111 1100 Hit Miss 0010 1101 1011 1000 Hit Miss 1010 1010 1010 1011 Hit Miss c) Suppose the cache access time is 15ns, main memory access time is 220ns, and the cache hit rate is 95%. Assuming non-overlapped access, what is the average access time for the processor to access an item? Tag Index
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education