IPR-NIOS Altera, IPR-NIOS Datasheet - Page 276

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
8–90
srai
Nios II Processor Reference Handbook
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Exceptions:
Instruction Type:
Instruction Fields:
31
30
29
A
28
27
26
25
24
0
rC ← (signed) rA >> ((unsigned) IMM5)
srai rC, rA, IMM5
srai r6, r7, 3
Shifts rA right by the number of bits specified in IMM5 (duplicating the sign bit), and then
stores the result in rC.
srai performs the signed >> 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
23
22
21
20
19
C
18
17
16
15
14
0x3a
13
12
11
shift right arithmetic immediate
10
9
IMM5
8
Chapter 8: Instruction Set Reference
December 2010 Altera Corporation
7
6
5
Instruction Set Reference
4
0x3a
3
2
1
0

Related parts for IPR-NIOS