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

no-image

HD6417641

Manufacturer Part Number
HD6417641
Description
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
3.1.8
The S bit in SR is effective for any arithmetic operations executed in the DSP unit, including the
SH's standard multiply and MAC operations. The S bit in SR, in SH's CPU core, is used as the
overflow protection enable bit. The arithmetic operation overflows when the operation result
exceeds the range of two's complement representation without guard-bit parts. Table 3.11 shows
the definition of overflow protection for fixed-point arithmetic operations, including fixed-point
signed by signed multiplication described in section 3.1.4, Fixed-Point Multiply Operation. Table
3.12 shows the definition of overflow protection for integer arithmetic operations. When an SH's
standard multiply or MAC operation is executed, the S bit function is completely the same as the
current SH CPU's definition.
When the overflow protection is effective, overflow never occurs. So, the V bit is cleared, and the
DC bit is also cleared when the overflow mode is selected by the CS[2:0] bits.
Table 3.11 Definition of Overflow Protection for Fixed-Point Arithmetic Operations
Table 3.12 Definition of Overflow Protection for Integer Arithmetic Operations
Note:
Sign
Positive
Negative
Sign
Positive
Negative
*
Overflow Protection
means Don't care.
Overflow Condition
Overflow Condition
Result > 1 – 2
Result < –1
Result > 2
Result < –2
15
15
– 1
–31
Fixed Value
1 – 2
–1
Fixed Value
2
–2
15
15
– 1
–31
Rev. 4.00 Sep. 14, 2005 Page 117 of 982
Hex Representation
00 7FFF FFFF
FF 8000 0000
Hex Representation
FF 8000 ****
00 7FFF ****
Section 3 DSP Operation
REJ09B0023-0400

Related parts for HD6417641