Special Instructions; Dual Data Spaces; Using The Tfr Instructions - Motorola DSP56600 Manual

Application optimization for digital signal processors
Table of Contents

Advertisement

Compact Opcode Use

Special Instructions

7-8
Optimizing DSP56300/DSP56600 Applications
7.4
SPECIAL INSTRUCTIONS
7.4.1

Dual Data Spaces

The Harvard architecture of the DSP56300/DSP56600 cores includes
two data memory spaces: X and Y. An efficient structure of the
application's data segment can improve the code performance by
being able to use instructions that support this architecture. For
example, the following code:
move
move
In this code, two data arrays were put into the same memory space,
while the code had to access an item from each array one after the
other. Instead, if one of the arrays can be put into the other data
memory space (Y in this example) then the two items can be
accessed on the same instruction:
move
7.4.2

Using the TFR instructions

The TFR instruction is unique by giving the ability to combine two
move operations into a single instruction in a way that is not
supported by the usual parallel opcodes. Example:
move
move
This example can be optimized by combining the two move
instructions into a single TFR instruction:
tfr
x:(r0),x0
x:(r4),y0
x:(r0),x0 y:(r4),y0
x0,a
r1,r2
x0,a
r1,r2
MOTOROLA

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dsp56300

Table of Contents