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

no-image

HD6417660

Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
The N bit always indicates the same state as the DC bit set in negative value mode by the CS[2:0]
bits. See the negative value mode part above. The Z bit always indicates the same state as the DC
bit set in zero value mode by the CS[2:0] bits. See the zero value mode part above. The V bit is
always cleared. The GT bit always indicates the same state as the DC bit set in signed greater than
mode by the CS[2:0] bits. See the signed greater than mode part above.
3.5.10
Rounding Operation
The DSP unit provides the function that rounds from 32 bits to 16 bits. In case of providing guard-
bit parts, it rounds from 40 bits to 24 bits. When a round instruction is executed, H'00008000 is
added to the source operand data and then, the lower word is cleared. Figure 3.20 shows the
rounding operation flow and figure 3.21 shows the operation definition. Table 3.30 shows the
variation rounding operation. The correspondence between each operand and registers is the same
as ALU fixed-point operations as shown in table 3.21.
As shown in figure 3.21, the rounding operation uses full-size data for both source and destination
operands. These 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.
The rounding operation is always executed unconditionally, so that the DC, N, Z, V, and GT bits
in DSR are always updated in accordance with the operation result. The definition of the DC bit is
selected by the CS[2:0] (DC bit condition selection) bits in DSR. The result of these condition
code bits is the same as the ALU-fixed point arithmetic operations.
39
31
16
15
0
H'00008000
Guard
Source 1 or 2
ALU
GT
Z
N
V DC
DSR
Destination
Guard
Cleared to 0
39
31
16
0
Figure 3.20 Rounding Operation Flow
Rev. 1.00, 02/04, page 135 of 804

Related parts for HD6417660