GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 19

GATE CSE 2015 Set 2 Q19

Computer Organization & Architecture · Memory Organization & Address Translation · Full GATE CSE 2015 Set 2 paper

GATE 2015 Set 2, Q19 1 mark · NAT
Report issue

Memory Organization & Address Translation

Question 19, GATE 2015: Virtual addresses 40 bits, page size 8 KB, TLB128 entries arranged 32 sets×4 ways. No process ID in tag. Find minimum TLB tag width.
Tap to enlarge
Answer & solution

Official answer: 22

Step through it (6 steps)

An8 KiB page contributes 13 offset bits, leaving 27 virtual page-number bits. The 32 TLB sets use 5 index bits. Without a process identifier, the tag uses 27−5=22 bits.

Split the virtual address into tag, set index, and page offset. An8KiB page has 213 bytes, so 13 bits select the byte. The remaining 40−13=27 bits form the virtual page number. Thirty-two sets need log 2 32=5 index bits; the four ways do not consume address bits because their tags are compared associatively. The tag therefore needs 27−5=22 bits. No process-ID bits are added because the prompt excludes them.

Original paper, page 32 · Answer key