In a cache, which field identifies the cache line containing the block?

Prepare for the GATE General Aptitude and CS Test. Enhance your skills with multiple choice questions and detailed explanations. Elevate your readiness and boost your confidence for the exam!

Multiple Choice

In a cache, which field identifies the cache line containing the block?

Explanation:
Cache addressing relies on splitting the address into tag, index, and offset. The index points to a particular cache line (or set) where the block could be stored, so it directly identifies which line to inspect. Once the line is selected by the index, the tag stored with that line is compared to the address tag to verify we have the correct block, and the offset selects the exact byte inside the block. The valid bit simply indicates whether that line actually contains valid data. So the field that identifies which cache line to look at is the index field.

Cache addressing relies on splitting the address into tag, index, and offset. The index points to a particular cache line (or set) where the block could be stored, so it directly identifies which line to inspect. Once the line is selected by the index, the tag stored with that line is compared to the address tag to verify we have the correct block, and the offset selects the exact byte inside the block. The valid bit simply indicates whether that line actually contains valid data. So the field that identifies which cache line to look at is the index field.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy