Suppose a n-way set-associative cache has a capacity of 32 KiB (1 KiB = 1024 bytes) and each block consists of 64 Bytes.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Suppose a n-way set-associative cache has a capacity of 32 KiB (1 KiB = 1024 bytes) and each block consists of 64 Bytes.
Suppose a n-way set-associative cache has a capacity of 32 KiB (1 KiB = 1024 bytes) and each block consists of 64 Bytes. What is the total number of blocks in the cache? What is the number of sets (lines/rows) in each Block? [Hint: Total Number of Blocks in cache=Total cache Capacity in Bytes/Number of Bytes in each Block] i) Calculate the number of sets for 2-way set-associative (Block O, Block1) ii) Calculate the number of sets for 4-way set-associative (Block O, Block1, Block 2, Block3)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!