Assume a system with 32-bit pointers and 512-byte blocks. Its cache is 2 MB, excluding metadata. Each memory cell is one byte. (a) How many blocks can be stored in the cache? (b) How many bits is the block offset? (c) Assuming a fully-associative cache, how many bits is the tag?

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter11: Operating Systems
Section: Chapter Questions
Problem 21VE
icon
Related questions
Question
Do not send copied answer. This is warning
Assume a system with 32-bit pointers and 512-byte
blocks. Its cache is 2 MB, excluding metadata. Each
memory cell is one byte.
(a) How many blocks can be stored in the cache?
(b) How many bits is the block offset?
(c) Assuming a fully-associative cache, how many
bits is the tag?
(d) Assuming a two-way set-associative cache, how
many sets (i.e. rows) are there?
(e) Assuming a two-way set-associative cache, how
many bits is the index (i.e. the component of the
address that indicates the cache row)?
(f) Assuming a two-way set-associative cache, how
many bits is the tag?
(g) Assuming an eight-way set-associative cache,
how many sets are there?
(h) Assuming an eight-way set-associative cache,
how many bits is the index?
(i) Assuming an eight-way set-associative cache,
how many bits is the tag?
Transcribed Image Text:Assume a system with 32-bit pointers and 512-byte blocks. Its cache is 2 MB, excluding metadata. Each memory cell is one byte. (a) How many blocks can be stored in the cache? (b) How many bits is the block offset? (c) Assuming a fully-associative cache, how many bits is the tag? (d) Assuming a two-way set-associative cache, how many sets (i.e. rows) are there? (e) Assuming a two-way set-associative cache, how many bits is the index (i.e. the component of the address that indicates the cache row)? (f) Assuming a two-way set-associative cache, how many bits is the tag? (g) Assuming an eight-way set-associative cache, how many sets are there? (h) Assuming an eight-way set-associative cache, how many bits is the index? (i) Assuming an eight-way set-associative cache, how many bits is the tag?
Expert Solution
steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Types of Database Architectures
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
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning