Question 122Asked in DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)

A four-way set-associative cache memory unit with a capacity of 32 KB is built using a block size of 1 K. The word length is 8 bits. The size of physical…

A four-way set-associative cache memory unit with a capacity of 32 KB is built using a block size of 1 K. The word length is 8 bits. The size of physical address space is 32 GB. The number of bits for the TAG field is:
  1. A22
  2. B24
  3. C25
  4. D23
Show answerHide answer

Correct answer: (A) 22

Explanation

32 KB / 1 KB = 32 blocks, and with 4 ways that is 8 sets (3 set bits). The block offset is 10 bits and the address is 35 bits (32 GB = 2³⁵ bytes). Tag = 35 − 3 − 10 = 22 bits.

From DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM)

This is question 122 of DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.