MOTOROLA
Appendix A. Byte Ordering
A-1
Appendix A
Byte Ordering
A0
A0
The MPC860 supports three byte-ordering conventionsÑbig-endian (BE), true
little-endian (TLE), and PowerPCª architecture little-endian (PPC-LE). This chapter
describes each of the three endian modes. Chapter 3, ÒOperand Conventions,Ó in PowerPC
Microprocessor Family: The Programming Environments for 32-bit Microprocessors,
provides a general overview of byte ordering and describes byte ordering for PowerPC
microprocessors.
A.1 Byte Ordering Overview
For big-endian byte ordering, the most-signiÞcant byte (MSB) is stored at the lowest
address while the least-signiÞcant byte (LSB) is stored at the highest address. This is called
big-endian because the big end of the scalar comes Þrst in memory.
For true little-endian byte ordering, the LSB is stored at the lowest address while the MSB
is stored at the highest address. This is called true little-endian because the little end of the
scalar comes Þrst in memory.
For PowerPC little-endian byte ordering (also referred to as Ômunged little-endianÕ), the
address of data is modiÞed so that the memory structure appears little-endian to the
executing processor, when in fact, the byte ordering is big-endian. The address modiÞcation
is called ÔmungingÕ. Note that the term ÔmungingÕ is not deÞned or used in the PowerPC
architecture speciÞcation. However, the term is commonly used to describe address
modiÞcations. The byte ordering is called PowerPC little-endian because PowerPC
microprocessors use this method to operate in little-endian mode.
A.2 MPC860 Byte-Ordering Mechanisms
There are several byte-ordering mechanisms in the MPC860 that are controlled by
programmable parameters. The MSR[LE] and MSR[ILE] bits control a 3-bit address
modiÞer in the PowerPC core. The DC_CST[LES] bit controls a 2-bit address modiÞer in
the core and a 2-bit address modiÞer and byte lane swapper in the SIU. The FCR[BO] Þeld
of each peripheral (SCCs, SMCs, SPI, I
2
C, PIP, or IDMA) controls a 3-bit address modiÞer
in the SDMA. Table A-1 correlates the programmable parameters with the byte-ordering
modes of operation.
Summary of Contents for MPC860 PowerQUICC
Page 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Page 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Page 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Page 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Page 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Page 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Page 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Page 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Page 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Page 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Page 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Page 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Page 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Page 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Page 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Page 1106: ......