Altera Nios II User Manual page 272

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

8–92
srli
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Exceptions:
Instruction Type:
Instruction Fields:
31
30
29
28
27
26
25
A
Nios II Processor Reference Handbook
rC ← (unsigned) rA >> ((unsigned) IMM5)
srli rC, rA, IMM5
srli r6, r7, 3
Shifts rA right by the number of bits specified in IMM5 (inserting zeroes), and then stores the
result in rC.
srli performs the unsigned >> operation of the C programming language.
None
R
A = Register index of operand rA
C = Register index of operand rC
IMM5 = 5-bit unsigned immediate value
24
23
22
21
20
19
18
17
0
C
shift right logical immediate
16
15
14
13
12
11
10
9
0x1a
Chapter 8: Instruction Set Reference
Instruction Set Reference
8
7
6
5
4
3
2
IMM5
0x3a
February 2014 Altera Corporation
1
0

Advertisement

Table of Contents
loading

Table of Contents