
6-54
MPC8240 Integrated Processor User's Manual
MOTOROLA
SDRAM Interface Operation
RMW parity assumes that all eight parity bits are controlled by a single DQM signal;
therefore, it must be written as a single 8-bit quantity (byte). For any system memory write
operations smaller than a double word, the MPC8240 must latch the write data, read a
double word (64 bits), check the parity of that double word, merge it with the write data,
regenerate parity for the new double word, and Tnally write the new double word back to
memory.
The MPC8240 checks parity on all memory reads, provided parity checking is enabled
(PCKEN = 1). The MPC8240 generates parity for the following operations:
¥
¥
PCI to memory write operations
Local processor single-beat write operations with RMW parity enabled
(RMW_PAR = 1)
The local processor is expected to generate parity for all other memory write operations as
the data goes directly to memory and does not pass through the MPC8240.
6.4.10.1 RMW Parity Latency Considerations
When RMW parity is enabled, the time required to read, modify, and write increases
latency for both processor single-beat writes and PCI writes to system memory. All other
transactions are unaffected and operate as in normal parity mode.
For local processor, single-beat writes to system memory, the MPC8240 latches the data,
reads a double-word from system memory (checking parity), and then merges that
double-word with the write data from the processor. The MPC8240 then generates new
parity bits for the merged double word and writes the data and parity to memory. The
read-modify-write process adds six clock cycles to a single-beat write operation. If page
mode retention is enabled (BSTOPRE > 0 and PGMAX > 0), the MPC8240 keeps the
memory in page-mode for the read-modify-write sequence. Because the processor drives
all eight parity bits during burst writes to system memory, these transactions go directly to
the SDRAMs with no performance penalty.
For PCI writes to system memory with RMW parity enabled, the MPC8240 latches the data
in the internal PCI-to-system-memory-write buffer (PCMWB). If the PCI master writes
complete double words to system memory, the MPC8240 generates the parity bits when the
PCMWB is ushed to memory. However, if the PCI master writes 32-, 16-, or 8-bit data
that cannot be gathered into a complete double word in the PCMWB, a read-modify-write
operation is required. The MPC8240 performs a double-word read from system memory
(checking parity), and then merges the write data from the PCI master with the data read
from memory. The MPC8240 then generates new parity for the merged double word and
writes the data and parity to memory. If page mode retention is enabled (BSTOPRE > 0 and
PGMAX > 0), the MPC8240 keeps the memory in page mode for the read-modify-write
sequence.