Glossary
1-18
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
The maximum positive value in a 16-bit register is 0x7FFF. The maxi-
mum negative value is 0x8000. For a signed two’s-complement 1.15
fractional notation, the allowable range is –1 through (1–2–15).
The maximum positive value in a 32-bit register is 0x7FFF FFFF. The
maximum negative value is 0x8000 0000. For a signed two’s-complement
fractional data in 1.31 format, the range of values that the register can
hold are –1 through (1–2–31).
The maximum positive value in a 40-bit register is 0x7F FFFF FFFF. The
maximum negative value is 0x80 0000 0000. For a signed two’s-comple-
ment 9.31 fractional notation, the range of values that can be represented
is –256 through (256–2–31).
For example, if a 16-bit register containing 0x1000 (decimal integer
+4096) was shifted left 3 places without saturation, it would overflow to
0x8000 (decimal –32,768). With saturation, however, a left shift of 3 or
more places would always produce the largest positive 16-bit number,
0x7FFF (d32,767).
Another common example is copying the lower half of a 32-bit register
into a 16-bit register. If the 32-bit register contains 0xFEED 0ACE and
the lower half of this negative number is copied into a 16-bit register with-
out saturation, the result is 0x0ACE, a positive number. But if saturation
is enforced, the 16-bit result maintains its negative sign and becomes
0x8000.
The MSA implements 40-bit saturation for all arithmetic operations that
write an Accumulator destination except as noted in the individual
instruction descriptions when an optional 32-bit saturation mode can
constrain a 40-bit Accumulator to the 32-bit register range. The MSA per-
forms 32-bit saturation for 32-bit register destinations only as noted in the
instruction descriptions.
Overflow is the alternative to saturation. The number is allowed to simply
exceed its bounds and lose its most significant bit(s); only the lowest
(least-significant) portion of the number can be retained. Overflow can
Содержание ADSP-BF53x Blackfin
Страница 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 780: ...Product Identification Register 21 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 994: ...Instructions Listed By Operation Code C 194 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...