B-2
MPC8240 Integrated Processor User’s Manual
Big-Endian Mode
the PowerPC core. The LE bit specifies the endian mode for normal core operation and ILE
specifies the mode to be used when an exception handler is invoked. That is, when an
exception occurs, the ILE bit (as set for the interrupted process) is copied into MSR[LE] to
select the endian mode for the context established by the exception. The LE and ILE bits
control a 3-bit address modifier in the processor core.
To convert from PowerPC little-endian to true little-endian byte ordering, all the byte lanes
must be reversed (MSB to LSB, and so on) and the addresses must be unmunged external
to the processor core. When configured for little-endian mode, the MPC8240 unmunges the
address and reverses the byte lanes between the PCI bus and local memory in the central
control unit (CCU). This means that the data in local memory is stored using PowerPC
little-endian byte ordering, but data on the PCI bus is in true little-endian byte order. The
PICR1[LE_MODE] parameter controls a 3-bit address modifier and byte lane swapper in
the CCU.
Note that the processor core and the CCU should be set for the same endian mode before
accessing devices on the PCI bus.
B.3 Big-Endian Mode
When the processor core is operating in big-endian mode, no address modification is
performed by the processor. In big-endian mode, the MPC8240 maintains the big-endian
byte ordering on the PCI bus during the data phase(s) of PCI transactions. The byte lane
translation for big-endian mode is shown in Table B-1. Note that the bit ordering on the PCI
bus remains unchanged (that is, AD31 is still the msb of the byte in byte lane 3 and AD0 is
still the lsb of the byte in byte lane 0).
Table B-1. Byte Lane Translation in Big-Endian Mode
Processor
Byte Lane
Processor Data Bus
Signals
PCI Byte Lane
PCI Address/Data Bus
Signals During PCI Data
Phase
0
DH[0–7]
0
AD[7–0]
1
DH[8–15]
1
AD[15–8]
2
DH[16–23]
2
AD[23–16]
3
DH[24–31]
3
AD[31–24]
4
DL[0–7]
0
AD[7–0]
5
DL[8–15]
1
AD[15–8]
6
DL[16–23]
2
AD[23–16]
7
DL[24–31]
3
AD[31–24]
Содержание MPC8240
Страница 1: ...MPC8240UM D Rev 1 1 2001 MPC8240 Integrated Processor User s Manual ...
Страница 38: ...xviii MPC8240 Integrated Processor User s Manual TABLES Table Number Title Page Number ...
Страница 48: ...xlviii MPC8240 Integrated Processor User s Manual Acronyms and Abbreviations ...
Страница 312: ...6 94 MPC8240 Integrated Processor User s Manual ROM Flash Interface Operation ...
Страница 348: ...7 36 MPC8240 Integrated Processor User s Manual PCI Host and Agent Modes ...
Страница 372: ...8 24 MPC8240 Integrated Processor User s Manual DMA Register Descriptions ...
Страница 394: ...9 22 MPC8240 Integrated Processor User s Manual I2O Interface ...
Страница 412: ...10 18 MPC8240 Integrated Processor User s Manual Programming Guidelines ...
Страница 454: ...12 14 MPC8240 Integrated Processor User s Manual Internal Arbitration ...
Страница 466: ...13 12 MPC8240 Integrated Processor User s Manual Exception Latencies ...
Страница 516: ...16 14 Watchpoint Trigger Applications ...
Страница 538: ...B 16 MPC8240 Integrated Processor User s Manual Setting the Endian Mode of Operation ...
Страница 546: ...C 8 MPC8240 Integrated Processor User s Manual ...
Страница 640: ...INDEX Index 16 MPC8240 Integrated Processor User s Manual ...