English
Language : 

HD6417751 Datasheet, PDF (952/1105 Pages) Renesas Technology Corp – SuperH RISC engine
22.4.2 Endian Control for Local Bus
Big and little endians are supported on the local bus, determined at power-on reset by the external
endian specification pin (MD5). Therefore, when transferring data between the local bus and the
PCI bus, when the local bus is set for big endian, big/little endian conversion is therefore required.
Figure 22.19 shows the block diagram of the local bus endian control. An endian conversion
circuit is provided between the local bus and the FIFO. For details of the endian control, refer to
section 22.4.3, Endian Control in DMA Transfers, and section 22.4.4, Endian Control in Target
Transfers (Memory Read/Memory Write).
Local bus
LW
32 bits Big/little →
little
LW
FIFO
DMA
Target RD
PCI bus
32 bits
32 bits
Big/little endian
Little →
big/little
LW
B, W, LW
FIFO
DMA
Targer WT
32 bits
Little endian
Figure 22.19 Endian Control for Local Bus
22.4.3 Endian Control in DMA Transfers
Although only the longword access size is supported in DMA transfers (see table 22.11), the
endian conversion mode can be selected from the following four types depending on whether the
longword data consists of four byte data units or two word data units.
The conversion mode can be switched by the setting of bits 10 and 9 (ALNMD) of the DMA
control registers (PCIDCR0 to 3) for PCI.
1. Byte data boundary mode: Big/little endian conversion is performed on the assumption that all
data is on a byte boundary. (ALNMD = b'00)
2. Word/longword (W/LW) boundary mode 1: Longword data is transferred as byte data x 4.
(ALNMD = b'01)
3. Word/longword (W/LW) boundary mode 2: Longword data is transferred as word data x 2.
(ALNMD = b'10)
4. Word/longword (W/LW) boundary mode 3: Longword data is transferred as longword data x
1. (ALNMD = b'11)
Rev. 3.0, 04/02, page 912 of 1064