Nios® V Processor Reference Manual

ID 683632
Date 7/26/2024
Public
Document Table of Contents

3.3.2. Arithmetic Logic Unit

The arithmetic logic unit (ALU) operates on data stored in general-purpose registers. ALU operations take one or two inputs from registers and store the result back into the register.

Table 22.  Fundamental Data Operations of the ALU
Category Description
Arithmetic Addition and subtraction on signed and unsigned operands.
Relational Equal, not-equal, greater-than-or-equal, and less-than relational operations (==, != >=, <).
Logical AND, OR, NOR, and XOR logical operations.
Shift Logical and arithmetic shift operations.

For load and store instructions, the Nios® V/m processor uses the ALU to calculate the memory address. For conditional control transfer instructions, Nios® V/m processor uses the relational operations in the ALU to determine if the processor takes or leaves the branch.