Computer Organization And Architecture MCQ - Memory Hierarchy

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.
block size of cache = 16 bytes
element size = 8 bytes
During a memory access only the next element gets filled in the cache. i.e.; every alternative memory access is a cache miss giving a hit ratio of 50%.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

A computer system has an L1 and L2 cache, an L2 cache, and a main memory unit connected as shown below. The block size in L1 cache is 4 words. The block size in L2 cache is 16 words. The memory access times are 2 nanoseconds, 20 nanoseconds and 200 nanoseconds for L1 cache, L2 cache and main memory unit respectively.
Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
Share this question
Share:
A block to access in L2 cache requires 20 nanoseconds, and 2 seconds to place in L1-cache. The block size in L1 cache is 4 words, and L2 block size is 16 words
So, total time = 4 * (time to access L2 + time to place in L1)<br / = 4 * (20 + 2) = 88 ns.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

A computer system has an L1 and L2 cache, an L2 cache, and a main memory unit connected as shown below. The block size in L1 cache is 4 words. The block size in L2 cache is 16 words. The memory access times are 2 nanoseconds, 20 nanoseconds and 200 nanoseconds for L1 cache, L2 cache and main memory unit respectively.
Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
Since the block size of L2 cache is 16 words and the bandwidth of main memory * L2 cache is 4 words, it requires a transfer of 4 words 4 times and then a transfer of required 16 words from L2 cache to L1 cache.
So total time is 4 * (200 + 20) + 4 * (20 + 2)
= 968 nano seconds.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

A computer has a 256 Kbytes, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit.
Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.
Number of blocks = Cache-Size/Block-Size
= 256 KB/32 Bytes
= 213
Number of Sets = 213/4 = 211
Tag no. + Set no. + offset = 32
Tag + 11 + 5 = 32
Tag = 16 bit
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free