Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 1 : Consider a machine with a byte addressable main memory of 6 4 Kbyte with 8 byte Block size. Assume that direct mapped

Q1: Consider a machine with a byte addressable main memory of 64Kbyte with 8byte Block size.
Assume that direct mapped cache consisting 32 lines. Write answer of the following questions [20 Marks]
a).How 64Kbyte Main memory address divided into tag, block/line number, and byte number
b). Into what line would bytes with each of the following addresses be stored?
0001000100011011 :
1100001100110100 :
1101000000011101 :
1011111101010001:
FA02:
EC4F:
c).Suppose the byte with address 0001101000011010 is stored in the cache. What
are the addresses of other bytes stored along with it?
d).How many total bytes of memory can be stored in the cache?
Q2: Assume a 4-way set associative cache of size 32KB, each block having four 64-
bit words. The system is based on 64-bit physical address and uses byte addressing.
Find the total number of offsets, index and tag bits. [20 Marks]
Main Memory Size :
Tag Bits:
Offset Bits:
Index Bits:
Q3: Assume a direct-mapped cache of 64Byte and data access sequence given below where the
memory and its contents are shown in the table on the right. Assume 4byte addresses and a 4-
byte data block. You are required to design a cache and calculate a Cache Hit and Miss %.
Operations Address
Read 0x01B0
Read 0x00C8
Read 0x0214
Read 0x0234
Read 0x0160
Read 0x0030
Read 0x018C
Read 0x0068
Read 0x0062
Read 0x01A4
Read 0x01CC
Read 0x01A3
Read 0x0230
Read 0x01CC
Read 0x0212
Hits: Hit Rate:
Miss: Miss Rate:
Q4: computer system has a two-level cache hierarchy consisting of a Level 1(L1) cache and a Level 2
(L2) cache. The system services memory requests with the following characteristics:
L1 cache serves 3000 memory requests, out of which 2550 requests result in a cache hit.
L2 cache serves 2800 memory requests, out of which 2520 requests result in a cache hit.
L1 cache access time: 1 nanosecond (ns)
L2 cache access time: 10 ns
Main memory access time (miss penalty): 100 ns
Calculate the following:
1. The percentage of memory accesses that result in a cache hit in the L1 cache.
2. The percentage of memory accesses that result in a cache hit in the L2 cache.
3. The number of memory accesses that result in a cache miss in both the L1 and L2 caches.
4. The effective access time (EAT) for this cache hierarchy.

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

Students also viewed these Databases questions