15. <12 pts> Given: Cache with tag:8 bits, index: 8 bits, block offset: 4 bits. Direct mapped. We have the following C c

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: 899603
Joined: Mon Aug 02, 2021 8:13 am

15. <12 pts> Given: Cache with tag:8 bits, index: 8 bits, block offset: 4 bits. Direct mapped. We have the following C c

Post by answerhappygod »

15. <12 pts> Given: Cache with tag:8 bits, index: 8 bits,block offset: 4 bits. Direct mapped. We have the following Ccode: memcpy(0x43A4, 0x15E2C, 0x3C). Copy 0x3C bytes from0x15E2C to 0x43A4 1 byte at a time. (Hint: Think about alladdresses accessed, both source and destination.)
15.a. ( 3.0 pts) How many total rows in thecache are accessed?
15.b. ( 3.0 pts) Assuming the cache isinitially empty, how many compulsory misses will occur based on thesource address ONLY?
15.c. ( 3.0 pts) Assuming the cache isinitially empty, how many cache hits will happen based on thedestination ONLY?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply