Memory Data Formats; Features Of Cpu Core Instructions; Figure 2.11 Byte, Word, And Longword Alignment - Renesas HD6417641 Hardware Manual

32-bit risc microcomputer superh risc engine family / sh7641 series
Table of Contents

Advertisement

Section 2 CPU
2.2.3

Memory Data Formats

Memory data formats are classified into byte, word, and longword. Byte data can be accessed
from any address, but an address error will occur if word data starting from an address other than
2n or longword data starting from an address other than 4n is accessed. In such cases, the data
accessed cannot be guaranteed (figure 2.11).
2.3

Features of CPU Core Instructions

The CPU core instructions are RISC-type instructions with the following features:
Fixed 16-Bit Length: All instructions have a fixed length of 16 bits. This improves program code
efficiency.
One Instruction per State: Pipelining is used, and basic instructions can be executed in one state.
Data Size: The basic data size for operations is longword. Byte, word, or longword can be
selected as the memory access size. Memory byte or word data is sign-extended and operated on
as longword data. Immediate data is sign-extended to longword size for arithmetic operations or
zero-extended to longword size for logical operations.
Rev. 4.00 Sep. 14, 2005 Page 44 of 982
REJ09B0023-0400
Address A
31
Address A
Byte 0
Address A + 4
Address A + 8

Figure 2.11 Byte, Word, and Longword Alignment

Address A + 1
Address A + 3
Address A + 2
23
7
15
Byte 1
Byte 2
Byte 3
Word 0
Word 1
Longword
Big-endian mode
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7641

Table of Contents