
MMDVSQx_RCND field descriptions
Field
Description
RADICAND
Radicand
This is the input radicand for a square root calculation, that is, the input "square" number.
32.4 Functional description
This section details the algorithms, execution times of the MMDVSQ, and the software
interface to the module.
32.4.1 Algorithms
This section provides more details on the integer divide and square root algorithms.
Integer divide including special cases
32.4.1.1.1 Overview
The MMDVSQ module implements a "shift, test, and restore" radix-2 algorithm for
unsigned integer divide operations. When performing a signed divide calculation,
negative input operands are converted into 2’s complement positive numbers first, an
unsigned divide performed, and the sign of the results based on the input operand signs,
namely:
• The sign of the remainder is the same as the sign of the dividend
• The quotient is negated if the signs of the dividend and divisor are different
The hardware implementation processes two bits per machine cycle and includes "early
termination" logic where the execution time is data dependent, based on the magnitude of
the positive dividend. See
for more execution time details.
32.4.1.1.2 Special case: Overflow
There is a single "special overflow case" affecting signed integer divides. If the dividend
= 0x8000_0000 and the divisor = 0xFFFF_FFFF, the result of this (-2
31
/-1) operation
cannot be expressed as a 32-bit 2’s complement number. For this case, the MMDVSQ
exactly follows the Arm Cortex-Mx definition and returns 0x8000_0000 (the lower 32
bits of the +2
31
result) as the quotient with no indication of the overflow condition. If the
remainder is selected as the output of this calculation, it returns 0x0000_0000.
32.4.1.1
Chapter 32 Memory-Mapped Divide and Square Root (MMDVSQ)
K32 L2A Reference Manual, Rev. 2, 01/2020
NXP Semiconductors
861
Summary of Contents for K32 L2A Series
Page 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Page 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Page 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Page 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Page 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Page 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Page 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Page 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Page 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Page 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Page 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Page 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Page 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Page 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Page 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Page 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Page 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Page 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Page 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Page 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Page 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...