40 bit DSP Adder
  • Supports 3 different 40-bit inputs
    • Zero (used for the DSP CLR and NEG)
    • ACCA or ACCB
    • Output of the Sign Extension Logic
  • One adder input may be complemented
    • Required by MPY.N, MSC, NEG and SUB
  • Adder generates output status signals
    • Overflow and Saturation bits in STATUS Register
    • Conditional branch instruction support

The 40-bit DSP Adder supports three different 40-bit inputs. The inputs may be 0, which is used for the DSP CLR and NEG instructions, may come from an Accumulator, (ACCA or ACCB), or be outputs of the Sign Extension logic. The selection of the inputs is based upon the instruction executed, and is transparent to the user, meaning that it is handled by the instruction decoding.

All Adder operations are signed, and one input to the Adder may also be negated. This feature provides support for the DSP instructions Multiply and Negate (MPY.N), Multiply and Subtract (MSC), Accumulator Negate (NEG) and Accumulator Subtract (SUB).

The Adder generates status bits which indicate overflow and saturation. The different saturation modes are user selectable, and are discussed later in this class. The architecture does provide conditional branch instruction support for these status bits, which facilitates efficient handling of overflow and saturation conditions in software. Lastly, note that MCU ADD instructions do not utilize the DSP Adder, they use the MCU ALU.

SR: CPU STATUS Register

R-0 R-0 R/C-0 R/C-0 R-0 R/C-0 R-0 R/W-0
OA OB SA SB OAB SAB DA DC
bit 15 bit 8

R/W-0 R/W-0 R/W-0 R-0 R/W-0 R/W-0 R/W-0 R/W-0
IPL2 IPL1 IPL0 RA N OV Z C
bit 7 bit 0
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.