Special Bus Operations; Alignment Of 32-Bit Accesses To Even Addresses - Texas Instruments TMS320C28x Reference Manual

Dsp cpu and instruction set
Table of Contents

Advertisement

Table 1−3. Special Bus Operations
1.4.3

Alignment of 32-Bit Accesses to Even Addresses

Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Instruction
Special Bus Operation
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
PREAD
This instruction reads a data value rather than an instruction from pro-
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
gram space. It then transfers that value to data space or a register.
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
For the read from program space, the CPU places the source address
on the program address bus (PAB), sets the appropriate program-
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
space select signals, and reads the data value from the program-read
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
data bus (PRDB).
Á Á Á Á
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
PWRITE
This instruction writes a data value to program space. The value is
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
read from from data space or a register.
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
For the write to program space, the CPU places the destination ad-
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
dress on the program address bus (PAB), sets the appropriate pro-
gram-space select signals, and writes the data value to the data-/pro-
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
gram-write data bus (DWDB).
Á Á Á Á
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
MAC
As part of their operation, these instructions multiply two data values,
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
DMAC
one of which is read from program space.
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
QMACL
For the read from program space, the CPU places the program-space
Á Á Á Á
IMACL
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
source address on the program address bus (PAB), sets the appropri-
XMAC
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
ate program-space select signals, and reads the program data value
XMACD
from the program read data bus (PRDB).
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
The C28x CPU expects memory wrappers or peripheral-interface logic to align
any 32-bit read or write to an even address. If the address-generation logic
generates an odd address, the CPU must begin reading or writing at the pre-
vious even address. This alignment does not affect the address values gener-
ated by the address-generation logic.
Most instruction fetches from program space are performed as 32-bit read op-
erations and are aligned accordingly. However, alignment of instruction
fetches are effectively invisible to a programmer. When instructions are stored
to program space, they do not have to be aligned to even addresses. Instruc-
tion boundaries are decoded within the CPU.
You need to be concerned with alignment when using instructions that perform
32-bit reads from or writes to data space.
Memory Interface
Architectural Overview
1-11

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF