Instruction and Data Caches
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Freescale Semiconductor
7-25
7.6.4
Write-Back Mode
In write-back mode, store operations do not necessarily update external memory. Data is only copied to
external memory when a copyback operation is required (or the cache is deliberately flushed). For this
reason the write-back mode is the preferred mode of operation when it is necessary to minimize external
bus utilization and as a side effect, reduce operational power consumption.
7.6.4.1
Data Cache Store Hit in Write-Back Mode
In the case of a data cache store hit in write-back mode, the cache operation depends on the state bits of
the cache block. If the store hit is to a modified-valid cache block, data is stored in the cache block and the
block stays marked modified-valid. If the store hit is to a unmodified-valid cache block, data is stored in
the cache block and the block is marked modified-valid. In either case, the LRU state of the set is updated
to reflect the hit.
7.6.4.2
Data Cache Store Miss in Write-Back Mode
In the case of a data cache store miss in write-back mode, the data cache must establish the block in the
cache array before modifying that block. Therefore, a block in the cache array is selected to receive the
data from memory and from the load/store unit. The selection algorithm gives first priority to invalid
blocks. If both blocks in the set are marked invalid, the block in way 0 is selected. If neither of the two
blocks in the selected set are invalid, the least recently used block is selected for replacement. If the
replacement block is marked modified-valid, it is temporarily stored in the copyback buffer to be written
to memory later. Locked cache blocks are never replaced.
After a cache block has been selected, the word-aligned physical address of the store data is sent to the SIU
with a 4-word burst transfer read request. The SIU arbitrates for the bus and initiates a burst read. The
transfer begins with the aligned word containing the requested data (critical word first), followed by the
remaining words of the cache block (if any), then by any remaining words at the beginning of the block
(wrap-around). As the critical word is received from the internal bus, it is merged in the burst buffer with
the store data from the load/store unit. If no bus errors are encountered during the burst buffer fill
operation, the cache block is written into the cache array and marked modified-valid. The data cache does
not support further requests until the entire block is written to the cache array. If the machine has stalled
waiting for the store to complete, execution is allowed to resume when the cache block is written into the
cache array.
If a bus error is encountered while loading the target data cache block, even on a word not accessed by the
load/store unit, the cache block is not modified, and a machine check exception is generated.
After the cache block with the requested data has been loaded from memory, the cache block in the
copyback buffer is sent to the SIU to be written to memory. The data cache can support further requests,
as long as they hit in the cache, while performing the copyback to memory. If a bus error is encountered
during the copyback, a machine check exception is generated (the copyback error is an imprecise
exception). The address and data in the copyback buffer can be read as specified in
Section 7.3.2.1,
“Reading Data Cache Tags and Copyback Buffer.”
Содержание PowerQUICC MPC870
Страница 1: ...MPC885 PowerQUICC Family Reference Manual Supports MPC885 MPC880 MPC875 MPC870 MPC885RM Rev 2 04 2006 ...
Страница 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Страница 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Страница 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Страница 192: ...MPC885 Instruction Set MPC885 PowerQUICC Family Reference Manual Rev 2 5 22 Freescale Semiconductor ...
Страница 242: ...Instruction and Data Caches MPC885 PowerQUICC Family Reference Manual Rev 2 7 30 Freescale Semiconductor ...
Страница 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Страница 416: ...External Bus Interface MPC885 PowerQUICC Family Reference Manual Rev 2 13 42 Freescale Semiconductor ...
Страница 440: ...Clocks and Power Control MPC885 PowerQUICC Family Reference Manual Rev 2 14 24 Freescale Semiconductor ...
Страница 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Страница 606: ...SDMA Channels and IDMA Emulation MPC885 PowerQUICC Family Reference Manual Rev 2 19 20 Freescale Semiconductor ...
Страница 738: ...SCC Asynchronous HDLC Mode and IrDA MPC885 PowerQUICC Family Reference Manual Rev 2 25 16 Freescale Semiconductor ...
Страница 780: ...SCC Ethernet Mode MPC885 PowerQUICC Family Reference Manual Rev 2 27 24 Freescale Semiconductor ...
Страница 794: ...SCC Transparent Mode MPC885 PowerQUICC Family Reference Manual Rev 2 28 14 Freescale Semiconductor ...
Страница 848: ...Serial Peripheral Interface SPI MPC885 PowerQUICC Family Reference Manual Rev 2 30 18 Freescale Semiconductor ...
Страница 882: ...Universal Serial Bus USB MPC885 PowerQUICC Family Reference Manual Rev 2 31 34 Freescale Semiconductor ...
Страница 944: ...Parallel I O Ports MPC885 PowerQUICC Family Reference Manual Rev 2 34 26 Freescale Semiconductor ...
Страница 956: ...CPM Interrupt Controller MPC885 PowerQUICC Family Reference Manual Rev 2 35 12 Freescale Semiconductor ...
Страница 1004: ...Buffer Descriptors and Connection Tables MPC885 PowerQUICC Family Reference Manual Rev 2 37 30 Freescale Semiconductor ...
Страница 1022: ...ATM Parameter RAM MPC885 PowerQUICC Family Reference Manual Rev 2 38 18 Freescale Semiconductor ...
Страница 1068: ...ATM Pace Control MPC885 PowerQUICC Family Reference Manual Rev 2 40 22 Freescale Semiconductor ...
Страница 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Страница 1120: ...AAL2 Implementation MPC885 PowerQUICC Family Reference Manual Rev 2 44 30 Freescale Semiconductor ...
Страница 1162: ...Fast Ethernet Controller FEC MPC885 PowerQUICC Family Reference Manual Rev 2 45 40 Freescale Semiconductor ...
Страница 1172: ...SEC Lite Overview MPC885 PowerQUICC Family Reference Manual Rev 2 46 8 Freescale Semiconductor ...
Страница 1176: ...SEC Lite Address Map MPC885 PowerQUICC Family Reference Manual Rev 2 47 4 Freescale Semiconductor ...
Страница 1214: ...SEC Lite Execution Units MPC885 PowerQUICC Family Reference Manual Rev 2 48 38 Freescale Semiconductor ...
Страница 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Страница 1313: ...MPC885 PowerQUICC Family Reference Manual Rev 2 Freescale Semiconductor B 1 Appendix B Serial Communications Performance TBD ...
Страница 1314: ...Serial Communications Performance MPC885 PowerQUICC Family Reference Manual Rev 2 B 2 Freescale Semiconductor ...
Страница 1320: ...Register Quick Reference Guide MPC885 PowerQUICC Family Reference Manual Rev 2 C 6 Freescale Semiconductor ...
Страница 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Страница 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Страница 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Страница 1384: ...Serial ATM Scrambling Reception and SI Programming MPC885 PowerQUICC Family Reference Manual Rev 2 H 6 Freescale Semiconductor ...
Страница 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...