Suppose a n-way set-associative cache has a capacity of 32 KiB (1 KiB = 1024 bytes) and each block consists of 64 Bytes.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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.

Post by answerhappygod »

Suppose A N Way Set Associative Cache Has A Capacity Of 32 Kib 1 Kib 1024 Bytes And Each Block Consists Of 64 Bytes 1
Suppose A N Way Set Associative Cache Has A Capacity Of 32 Kib 1 Kib 1024 Bytes And Each Block Consists Of 64 Bytes 1 (30.08 KiB) Viewed 50 times
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!
Post Reply