EMBEDDED Intel486™ PROCESSOR HARDWARE REFERENCE MANUAL
Table 6-1. Level-1 Cache Hit Rates (Sheet 2 of 2)
Size
32 Kbyte
32 Kbyte
64 Kbyte
64 Kbyte
64 Kbyte
64 Kbyte
64 Kbyte
128 Kbyte
128 Kbyte
128 Kbyte
Program behavior is another important factor in determining cache efficiency. If a program uses
a piece of data only once, then the cache may spend all its time thrashing or replacing itself with
new data from memory. This is common in vector processing. The processor receives no added
efficiency from the cache because main memory is being requested frequently. In such instances,
the user can consider mapping the data entries as non-cacheable.
Cache system performance can be calculated based on the main memory access time, the cache
access time, the miss rate, and the write cycle time.
C
is defined as the ratio of the cache system access time to the main memory access time. C
S
a dimensionless number but provides a useful measure of the cache performance.
C
= (1-M)T
+ MT
a
c
m
C
= C
/T
= (1-M)(T
/T
s
a
m
c
m
where:
C
= average cache system cycle time averaged over reads and writes
a
T
= cache cycle time
c
T
= main memory cycle time
m
M = miss rate = 1-hit rate
C
= cache system access time as a fraction of main memory access time
s
C
= cache memory access time as compared to main memory cycle time
m
If the cache always misses, then M=1 and C
fective access time of the cache. If the cache is infinitely fast, then C
Because the cache access time is finite, the cache system access time approaches the cache access
time as the miss rate approaches zero.
While the above discussion applies to read operations, it can be easily extended to write opera-
tions, which also affect system performance. When memory is written to, the CPU must wait for
the completion of the write cycle before proceeding to the next instruction. In a buffered memory
system, where posted writes occur, data can be loaded in a register, and the memory can be up-
6-4
Cache Configurations
Associativity
2-way
direct
direct
2-way
4-way
direct
2-way
direct
2-way
direct
) + M = (1-M)C
+M
m
m
Line Size
4 bytes
8 bytes
4 bytes
4 bytes
4 bytes
8 bytes
8 bytes
4 bytes
4 bytes
8 bytes
=1, and the main memory access is equal to the ef-
Hit Rate
87%
91%
88%
89%
89%
92%
93%
89%
89%
93%
is equal to the miss rate.
m
is
S
Need help?
Do you have a question about the Embedded Intel486 and is the answer not in the manual?
Questions and answers