IPR-NIOS Altera, IPR-NIOS Datasheet - Page 102

no-image

IPR-NIOS

Manufacturer Part Number
IPR-NIOS
Description
IP NIOS II MEGACORE RENEW
Manufacturer
Altera
Type
MegaCorer
Datasheet

Specifications of IPR-NIOS

License
Renewal License
Lead Free Status / RoHS Status
Not applicable / Not applicable
3–56
Table 3–40. Arithmetic and Logical Instructions
Table 3–41. Move Instructions
Nios II Processor Reference Handbook
and
or
xor
nor
andi
ori
xori
andhi
orhi
xorhi
add
sub
mul
div
divu
addi
subi
muli
mulxss
mulxuu
mulxsu
mov
movhi
movi
movui
movia
Instruction
Instruction
Arithmetic and Logical Instructions
Move Instructions
mov copies the value of one register to another register. movi moves a 16-bit signed immediate value to a
register, and sign-extends the value to 32 bits. movui and movhi move a 16-bit immediate value into the
lower or upper 16-bits of a register, inserting zeros in the remaining bit positions. Use movia to load a
register with an address.
These are the standard 32-bit logical operations. These operations take two register values and combine
them bit-wise to form a result for a third register.
These operations are immediate versions of the and, or, and xor instructions. The 16-bit immediate value
is zero-extended to 32 bits, and then combined with a register value to form the result.
In these versions of and, or, and xor, the 16-bit immediate value is shifted logically left by 16 bits to form a
32-bit operand. Zeroes are shifted in from the right.
These are the standard 32-bit arithmetic operations. These operations take two registers as input and store
the result in a third register.
These instructions are immediate versions of the add, sub, and mul instructions. The instruction word
includes a 16-bit signed value.
These instructions provide access to the upper 32 bits of a 32x32 multiplication operation. Choose the
appropriate instruction depending on whether the operands should be treated as signed or unsigned
values. It is not necessary to precede these instructions with a mul.
This instruction is used in computing a 128-bit result of a 64x64 signed multiplication.
Logical instructions support and, or, xor, and nor operations. Arithmetic instructions
support addition, subtraction, multiplication, and division operations. Refer to
Table
These instructions provide move operations to copy the value of a register or an
immediate value to another register. Refer to
3–40.
Description
Description
Table
3–41.
December 2010 Altera Corporation
Chapter 3: Programming Model
Instruction Set Categories

Related parts for IPR-NIOS