Chapter
4.
Cache Operations
The PPC405GP incorporates two internal caches, a16KB instruction cache and an 8KB data cache.
Instructions and data can be accessed in the caches much faster than
in
main memory.
The instruction cache unit
(ICU) controls instruction accesses to main memory and stores frequently
used instructions to reduce the overhead of instruction transfers between the instruction pipeline and
external memory. Using the instruction cache minimizes access latency for frequently executed
instructions.
The data cache unit (DCU) controls data accesses to main memory and stores frequently used data
to reduce the overhead of data transfers between the GPRs and external memory. Using the data
cache minimizes access latency for frequently used data.
The
ICU features:
โข Programmable address pipelining and prefetching for cache misses and non-cachable lines
โข
Support for non-cachable hits from lines contained
in
fill buffer
โข Programmable non-cachable requests to memory as 4
or
8 words (line
or
half line)
โข Bypass path for critical words
โข Non-blocking cache for hits during fills
โข
Flash invalidate (one instruction invalidates entire cache)
โข Programmable allocation for fetch fills, enabling program control of cache contents using the icbt
instruction
โข Virtually indexed, physically tagged cache arrays
โข Support for 64-bit and 32-bit PLB slaves
โข A rich set of cache control instructions
The DCU features:
โข Address pipelining for line fills
โข Support for load hits from non-cachable and non-allocated lines contained
in
fill buffer
โข Bypass path for critical words
โข Non-blocking cache for hits during fills
โข
Write-back and write-through write strategies controlled by storage attributes
โข Programmable non-cachable load requests to memory as lines
or
words.
โข Handling of up to two pending line flushes.
โข Holding of up to three stores before stalling the core pipeline
โข Physically
indexed, physically tagged cache arrays
โข Support for 64-bit and 32-bit PLB slaves
โข A rich set of cache control instructions
"ICU Organization" on page 4-2 and "DCU Organization" on page 4-5 describe the organization and
provide overviews of the
ICU and the DCU.
Preliminary
Cache Operations
4-1