Nios® II Processor Reference Guide

ID 683836
Date 8/28/2023
Public
Document Table of Contents

4.4.2. Arithmetic Implementation

This section is only available if you choose to manually select your multiply/shift/rotate hardware.

  • 32-bit multiply instruction implementation—You have three options for the 32-bit multiply instruction. Choosing the 1 32-bit multiplier option allocates all resources to the 32-bit multiplier making it the resource for the 64-bit multiply instruction and shift/rotate instruction.
    Table 54.  32-bit multiply instruction implementation options
    Performance Resources Instruction
    11 cycles Logic elements All 32-bit Multiply
    1 cycle 3 16-bit multipliers All 32-bit Multiply
    1 cycle 1 32-bit multipliers All 32-bit Multiply
  • 64-bit multiply instruction implementation— This option can only be used if the 32-bit multiply instruction selection is set to the 3 16-bit multipliers option. The Nios® II only supports up to a 32 x 32 bit multiplication. The 64-bit option is achieved by using the 32-bit multiplier along with the multiply extended instructions (mulxss, mulxsu, mulxuu), which can be found in the Instruction Set Reference chapter of this manual.
    Table 55.  64-bit multiply instruction implementation options
    Performance Resources Instruction
    2 cycles 1 16-bit multiplier All 64-bit Multiply
  • Shift/rotate instruction implementationPlatform Designer gives you the option of either choosing non-pipelined or pipelined.
    Table 56.  Shift/rotate instruction implementation options
    Performance Resources Instructions
    2 - 11 cycles Logic elements (non-pipelined) All Shift/Rotate
    1 cycle Logic elements (pipelined) All Shift/Rotate
Note: Highly recommend to chose auto selection. Platform Designer makes the selections according to the device family previously selected.