Computer AwarenessVery hardIBPS SO IT Officer
A 64 KB direct-mapped cache uses 16-byte blocks, and the processor issues 32-bit byte addresses. How is each address split?
- A. Tag 12, index 16, offset 4
- B. Tag 18, index 10, offset 4
- C. Tag 16, index 12, offset 4
- D. Tag 16, index 14, offset 2
Correct answer: C. Tag 16, index 12, offset 4
16-byte blocks need a 4-bit offset; 64 KB ÷ 16 B = 4096 lines need a 12-bit index; the tag is the remaining 32 − 12 − 4 = 16 bits.
हिंदी में
एक 64 KB डायरेक्ट-मैप्ड कैश 16-बाइट ब्लॉक प्रयोग करता है, और प्रोसेसर 32-बिट बाइट पते जारी करता है। प्रत्येक पता कैसे विभाजित होता है?
- A. टैग 12, इंडेक्स 16, ऑफ़सेट 4
- B. टैग 18, इंडेक्स 10, ऑफ़सेट 4
- C. टैग 16, इंडेक्स 12, ऑफ़सेट 4
- D. टैग 16, इंडेक्स 14, ऑफ़सेट 2
उत्तर: C. 16-बाइट ब्लॉक को 4-बिट ऑफ़सेट चाहिए; 64 KB ÷ 16 B = 4096 लाइनों को 12-बिट इंडेक्स चाहिए; टैग शेष 32 − 12 − 4 = 16 बिट है।
More Computer Awareness questions
- Which cache-mapping technique lets any memory block be placed in any cache line, at the cost of comparing its tag with every line at once?
- A loop counter is read and updated on every pass of a loop, and so it stays in the cache. Which property of programs does this exploit?
- When the CPU reads a word from main memory, which two registers hold the address being accessed and the data that arrives?
- A processor has a 16-bit data bus and moves one word on each bus cycle at 8 MHz. What is the maximum data transfer rate?
- A 4K × 8 memory is to be built from 1K × 4 RAM chips. How many chips are needed, and how many address lines does the full memory require?
- Which pairing of ROM type and erasing method is WRONG?