Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q2. Cache Suppose we have a processor that has a 4-way set-associative L1 cache with 256 blocks in total. Fach block contains 16 bytes. The

image text in transcribed

Q2. Cache Suppose we have a processor that has a 4-way set-associative L1 cache with 256 blocks in total. Fach block contains 16 bytes. The cache also stores 22 bits as tag and 4 check bits for each block. The hit time to the Ll cache is 1 cycle and the LRU policy is used for replacing cache blocks. The processor also has 8-way set-associative AMB L2 cache with 512 blocks in total. The hit time to the L2 cache is 10 cycles and the LRU policy is used for the block replacement. (a) What is the size of the L1 cache, considering the tag and check bits? 6) What is the set number of the block in which the byte with the address 0x00401830 reside? (c) Assume that the processor ran a loop in a program for million iterations and only accessed the following memory addresses in sequence in every iteration. What do you expect the average memory access time for accessing the memory addresses in the last iteration? (Ignore any side effects - c.g., from shared use of the cache) 0x00401234 0x010B0E36 0x00120431 . 0x00000638 4 () Assume the same loop execution in the question above, but this time the processor accessed the following memory addresses in sequence in every iteration. . 0x00401234 0x010B0E36 0x00120A31 Ox00000638 0x00001234 What do you expect the average memory access time for accessing the memory addresses in the last iteration? (Ignore any side effects-eg., from shared use of the cache)

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

=+ f. instituting laws against driving while intoxicated

Answered: 1 week ago

Question

=+ Why have these changes occurred?

Answered: 1 week ago