Computer System Architecture MCQ - Memory Hierarchy

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
RAM chip size = 1k * 8[1024 words of 8 bits each]
RAM to construct = 16k * 16
Number of chips required = (16k * 16)/(1k * 8)
= (16 * 2)
[16 chips vertically with each having 2 chips horizontally]
So to select one chip out of 16 vertical chips, we need 4 * 16 decoder.
Available decoder is 2 * 4 decoder
To be constructed is 4 * 16 decoder
Hence 4 + 1 = 5 decoders are required.
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 B
Rate difficulty Rate difficulty:
Choose a difficulty.
Input to ROM – 2 lines, 8 bit each.
Possible combinations in ROM – (2^8)*(2^8)
Size of truth table = (2^8)*(2^8)
= 2^16 = 64 KB
Maximum output size = 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 *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
Found this useful?
Follow:
For a 4 bit multiplier there are 24 * 24
= 28
= 256 combinations.
Output will contain 8 bits.
So the amount of ROM needed is 28 * 8bit s
= 2 Kbits.
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 *

Consider a machine a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addressed and the page size is 4 Kybytes. A program to be run on this machine begins as follows :
double APR {1024] [1024]
int i, j ;
/ * Initalize array APR to 0.0*/
for (i = 0; i < 1024; i ++)
for (j = 0; j < 1024; j++
APR [i] [j] = 0.0;
The size of double 8 bytes. Array APR is memory starting at the beginning of virtual page 0 × FF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array APR.
Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
Virtual Address = 32 bits
Cache address is divided into TAG, SET, BLOCK
For BLOCK of 16 bytes, we need 4 bits.
Total number of sets(each set containing 2 Blocks)
= 64 KB/(2 * 16) B = 211
So, Number of SET bits = 11
Number of TAG bits = 32 – (11 + 4) = 17
So, cache address = 17 |11| 4 (TAG |SET| BLOCK)
Tag memory size
= Number of tag bits * Total number of blocks
= 17 * 2 * 211 (Total Number of blocks
= 2 * Total number of sets)
= 68 KB
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 *

Consider a machine a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addressed and the page size is 4 Kybytes. A program to be run on this machine begins as follows :
double APR {1024] [1024]
int i, j ;
/ * Initalize array APR to 0.0*/
for (i = 0; i < 1024; i ++)
for (j = 0; j < 1024; j++
APR [i] [j] = 0.0;
The size of double 8 bytes. Array APR is memory starting at the beginning of virtual page 0 × FF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array APR.
Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
ARR[0][0] i s located at virtual address 0xFF000000. Here FF000 is page address and 000 is page offset. So, index bits are 00000000000 Address of ARR[4][0] = 0xFF000 + 4 * 1024* size of (double) [since we use row major storage] = 0xFF000000 + 4096 * 8 = 0xFF000000 + 0x8000 = 0xFF008000 ( index bits matches that of ARR[0][0] as both read 00000000000)
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
Boost Your PreparationAttempt mock tests, previous year papers and topic-wise quizzes.Explore All Tests →