HD6417660 RENESAS [Renesas Technology Corp], HD6417660 Datasheet - Page 162

no-image

HD6417660

Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Table 3.23 Variation of ALU Integer Operations
Note: The ALU integer operations are basically 24-bit operation, the upper 16 bits of the base
In ALU integer arithmetic operations, the lower word of the source operand is ignored and the
lower word of the destination operand is automatically cleared. The guard-bit parts are effective in
integer arithmetic operations if they are supported. Others are basically the same operation as
ALU fixed-point arithmetic operations. As shown in table 3.23, however, this type of operation
provides two kinds of instructions only, so that the second operand is actually either +1 or –1.
When a word data is loaded into one of the DSP unit’s registers, it is input as an upper word data.
When a register providing guard bits is specified as an operand, the guard bits are also activated.
These operations, as well as ALU fixed-point arithmetic operations, are executed in the DSP stage,
as shown in figure 3.10. The DSP stage is the same stage as the MA stage in which memory
access is performed.
Every time an ALU arithmetic operation is executed, the DC, N, Z, V, and GT bits in DSR are
basically updated in accordance with the operation result. This is the same as ALU fixed-point
arithmetic operations but the lower word of each source and destination operand is not used in
order to generate them. See section 3.5.4, ALU Fixed-Point Arithmetic Operations, for details.
In case of a conditional operation, they are not updated even though the specified condition is true
and the operation is executed. In case of an unconditional operation, they are always updated in
accordance with the operation result. See section 3.5.4, ALU Fixed-Point Arithmetic Operations,
for details.
• Overflow Protection
Rev. 1.00, 02/04, page 124 of 804
Mnemonic
PINC
PDEC
The S bit in SR is effective for any ALU integer arithmetic operations in DSP unit. See section
3.5.11, Overflow Protection, for details.
precision and 8 bits of the guard-bits parts. So the signed bit is copied to the guard-bit parts
when a register not providing the guard-bit parts is specified as the source operand. When
a register not providing the guard-bit parts is specified as a destination operand, the upper
word excluding the guard bits of the operation result are input into the destination register.
Function
Increment by 1
Decrement by 1
Source 1
Sx
+1
Sx
–1
Source 2
+1
Sy
–1
Sy
Destination
Dz
Dz
Dz
Dz

Related parts for HD6417660