Computer Architecture
The Anatomy of Modern Processors


Cache

Introduction

Cache is a key to the performance of a modern processor. Typically ~25% of instructions reference memory, so that memory access time is a critical factor in performance. By effectively reducing the cost of a memory access, caches enable the greater than one instruction/cycle goal for instruction throughput for modern processors. A further indication of the importance of cache may be gained from noting that out of 6.6x106 transistors in the MIPS R10000, 4.4x106 were used for primary caches. (This presumably includes TLBs as well as the instruction and data caches.)

Etymology

Cache comes from the French, cacher = to hide, presumably because a cache is transparent to, or hidden from, a programmer. Programmers do not generally "see" the cache: programs should run in the same way whether a cache is present or not. Cache should only affect the performance of a program.

Locality of Reference

All programs show some locality of reference. This appears to be a universal property of programs - whether commercial, scientific, games, etc. Cache exploits this property to improve the access time to data and reducing the cost of accessing main memory. There are two types of locality:

Continue on to Cache Operation Back to the Table of Contents
© John Morris, 1998

e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.


IMPLEMENTACIÓN EN VHDL DEL MICROPROCESADOR ARM9

: Jurado Carmona, Francisco Javier
: Ingeniería Telecomunicación