CORDIC co-processor (CORDIC) RM0440
484/2126 RM0440 Rev 4
Bits 31:0 ARG[31:0]: Function input arguments
This register is programmed with the input arguments for the function selected in the
CORDIC_CSR register FUNC field.
If 32-bit format is selected (CORDIC_CSR.ARGSIZE = 0) and two input arguments are
required (CORDIC_CSR.NARGS = 1), two successive writes are required to this register.
The first writes the primary argument (ARG1), the second writes the secondary argument
(ARG2).
If 32-bit format is selected and only one input argument is required (NARGS = 0), only one
write is required to this register, containing the primary argument (ARG1).
If 16-bit format is selected (CORDIC_CSR.ARGSIZE = 1), one write to this register contains
both arguments. The primary argument (ARG1) is in the lower half, ARG[15:0], and the
secondary argument (ARG2) is in the upper half, ARG[31:16]. In this case, NARGS must be
set to 0.
Refer to Section 17.3.2 for the arguments required by each function, and their permitted
range.
When the required number of arguments has been written, the CORDIC evaluates the
function designated by CORDIC_CSR.FUNC using the supplied input arguments, provided
any previous calculation has completed. If a calculation is ongoing, the ARG1 and ARG 2
values are held pending until the calculation is completed and the results read. During this
time, a write to the register cancels the pending operation and overwrite the argument data.