Altera Nios II User Manual page 251

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

Chapter 8: Instruction Set Reference
Instruction Set Reference
muli
Operation:
Assembler Syntax:
Example:
Description:
Exceptions:
Instruction Type:
Instruction Fields:
31
30
29
28
27
26
25
A
February 2014 Altera Corporation
rB ← (rA × σ(IMM16))
31..0
muli rB, rA, IMM16
muli r6, r7, -100
Sign-extends the 16-bit immediate value IMM16 to 32 bits and multiplies it by the value of rA.
Stores the 32 low-order bits of the product to rB. The result is independent of whether rA is
treated as a signed or unsigned number.
Nios II processors that do not implement the muli instruction cause an unimplemented
instruction exception.
Carry Detection and Overflow Detection:
For a discussion of carry and overflow detection, refer to the mul instruction.
Unimplemented instruction
I
A = Register index of operand rA
B = Register index of operand rB
IMM16 = 16-bit signed immediate value
24
23
22
21
20
19
18
17
B
16
15
14
13
12
11
10
9
IMM16
multiply immediate
8
7
6
5
4
3
2
1
0x24
Nios II Processor Reference Handbook
8–71
0

Advertisement

Table of Contents
loading

Table of Contents