Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer all the questions, in exam 1 ) Assume that the main memory address space of a computer is 1 GB , byte -

Please answer all the questions, in exam
1)
Assume that the main memory address space of a computer is 1GB, byte-addressed, the data area of the cache is 64KB, the block size is 128B, and direct mapping and write-through are used. How many bits are there in the main memory address? How to divide it? How many bits is the total cache capacity?
2)
Assume that the main memory address space of a computer is 64KB, byte-addressed, the data area of the cache is 4KB, the block size is 64B, and 4-way set associative mapping and write-back are used. How many bits are there in the main memory address? How to divide it? How many bits is the total cache capacity? If the cache is initially empty, the CPU sequentially accesses from address unit 0 to address unit 4344, repeating the access 16 times in total. The cache access time is 20ns, and the main memory access time is 200ns. Try to estimate the average CPU access time.
3)
Increasing the associativity usually reduces the miss rate, but it is not always the case. Please give an address access sequence that makes the miss rate of a 2-way set-associative mapped cache using the LRU algorithm higher than that of a direct-mapped cache of the same size.
4)
Assume that a processor has a cache with a data area capacity of 256B and a main memory block size of 32B. In the following C code, the integer size is 4B, and the compiler allocates variables i, j, c, and s in general registers. Assume that the array start address is exactly at the beginning of a main memory block. If the cache uses direct mapping, what are the miss rates when s is 64 and 63 respectively? If the cache What about 2-way set associative mapping?
5)
Memory is addressed by bytes, how to access 0X0E34,0X0DD5,0X1FE4?(Accourding to the picture given)
E=2,B=4,S=8,m=13,1-byte word
\table[[2-way set associative cache],[Set index,Line 0,Line 1],[Tag,Valid,Byte 0,Byte 1,Byte 2,Byte 3,Tag,Valid,Byte 0,Byte 1,Byte 2,Byte 3],[0,09,1,86,30,3F,10,00,0,-,-,-,-],[1,45,1,60,4F,E0,23,38,1,00,BC,0B,37],[2,EB,0,-,-,-,-,0B,0,-,-,-,-],[3,06,0,-,-,-,-,32,1,12,08,7B,AD
image text in transcribed

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions

Question

What are some of the advantages of a corporation?

Answered: 1 week ago