Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EE459 class2.pptx Homework #1 Arrays A and B contain 1 K (1024) elements each. Each element is 4 bytes. The first element of A (A[0])

image text in transcribed

EE459 class2.pptx Homework #1 Arrays A and B contain 1 K (1024) elements each. Each element is 4 bytes. The first element of A (A[0]) is stored at physical address Ox0000 4000. The first element of B (BO) is stored at physical address 0x00010800 A physical address is 32 bits. Assume that only arrays A and B will be cached in the following fragment of code (i.e., the index i will be in a register): for (i - 1023; i >-0; i--)I The cache is a 4 KB direct-mapped cache with line size 16 bytes. The write policy is writeback. Initially, all entries in the cache are marked as invalid. (a) How many cache lines are there in the cache? (b) What will be the cache contents at the end of the program fragment (i.e., when all 1024 iterations of the loop have completed)? EE459 class2.pptx Homework #1 Arrays A and B contain 1 K (1024) elements each. Each element is 4 bytes. The first element of A (A[0]) is stored at physical address Ox0000 4000. The first element of B (BO) is stored at physical address 0x00010800 A physical address is 32 bits. Assume that only arrays A and B will be cached in the following fragment of code (i.e., the index i will be in a register): for (i - 1023; i >-0; i--)I The cache is a 4 KB direct-mapped cache with line size 16 bytes. The write policy is writeback. Initially, all entries in the cache are marked as invalid. (a) How many cache lines are there in the cache? (b) What will be the cache contents at the end of the program fragment (i.e., when all 1024 iterations of the loop have completed)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions