HD6417641 RENESAS [Renesas Technology Corp], HD6417641 Datasheet - Page 132

no-image

HD6417641

Manufacturer Part Number
HD6417641
Description
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Section 2 CPU
2.6.2
The new instructions in this class are treated as part of the CPU core functions, and therefore all
the added instructions have a 16-bit code length. All the additional instructions belong to the
system control instruction group. Table 2.25 summarizes the added system instructions. New
control registers—RS, RE, and MOD—have been added to the CPU core to support loop control
and modulo addressing functions, and LDC and STS type instructions have been provided for
these registers.
The DSP engine's DSR, A0, X0, X1, Y0, and Y1 registers are treated as system registers such as
MACH and MACL, and therefore STS and LDS instructions are supported for these registers. As
digital signal processing operations usually employ a multi-level nested-loop structure, DSP
performance can be improved by means of a zero-overhead loop control function. SETRC type
instructions are provided to set the repeat count in the RC field in SR[27:16]. When an immediate
operand type SETRC instruction is executed, the 8-bit immediate operand data is set in SR[23:16],
and 0 is set in the remaining bits, SR[27:24]. When a register operand type SETRC instruction is
executed, Rn[11:0] is set in SR[27:16]. The start address and end address of the repeat loop are set
in the RS register and RE register. There are two ways of setting the addresses: by using an LDC
type instruction, or by using the LDRS and LDRE instructions.
Table 2.25 Added CPU System Control Instructions
Rev. 4.00 Sep. 14, 2005 Page 82 of 982
REJ09B0023-0400
Instruction
SETRC #imm
SETRC Rn
LDRS
LDRE
STC
STC
STC
STS
STS
STS
STS
STS
STS
@(disp,PC) 10001100dddddddd
@(disp,PC) 10001110dddddddd
MOD,Rn
RS,Rn
RE,Rn
DSR,Rn
A0,Rn
X0,Rn
X1,Rn
Y0,Rn
Y1,Rn
Added CPU System Control Instructions
Instruction Code
10000010iiiiiiii
0100nnnn00010100
0000nnnn01010010
0000nnnn01100010
0000nnnn01110010
0000nnnn01101010
0000nnnn01111010
0000nnnn10001010
0000nnnn10011010
0000nnnn10101010
0000nnnn10111010
Operation
imm → RC (of SR)
Rn[11:0] → R C (of SR)
(disp × 2 + PC) → RS
(disp × 2 + PC) → RE
MOD → Rn
RS → Rn
RE → Rn
DSR → Rn
A0 → Rn
X0 → Rn
X1 → Rn
Y0 → Rn
Y1 → Rn
Execution
States
1
1
1
1
1
1
1
1
1
1
1
1
1
T Bit

Related parts for HD6417641