Table 2-5: Instruction Set Nomenclature (Continued)
Symbol
=
Equality comparison
!=
Inequality comparison
>
Greater than comparison
>=
Greater than or equal comparison
<
Less than comparison
<=
Less than or equal comparison
+
Arithmetic add
*
Arithmetic multiply
/
Arithmetic divide
>> x
Bit shift right x bits
<< x
Bit shift left x bits
and
Logic AND
or
Logic OR
xor
Logic exclusive OR
op1 if cond else op2
Perform op1 if condition cond is true, else perform op2
&
Concatenate. E.g. "0000100 & Imm7" is the concatenation of the fixed field "0000100" and a 7 bit
immediate value.
signed
Operation performed on signed integer data type. All arithmetic operations are performed on signed
word operands, unless otherwise specified
unsigned
Operation performed on unsigned integer data type
float
Operation performed on floating point data type
clz(r)
Count leading zeros
Table 2-6: MicroBlaze Instruction Set Summary
Type A
Type B
ADD Rd,Ra,Rb
RSUB Rd,Ra,Rb
ADDC Rd,Ra,Rb
RSUBC Rd,Ra,Rb
ADDK Rd,Ra,Rb
RSUBK Rd,Ra,Rb
ADDKC Rd,Ra,Rb
MicroBlaze Processor Reference Guide
UG081 (v14.7)
0-5
6-10
11-15 16-20
0-5
6-10
11-15
000000
Rd
Ra
000001
Rd
Ra
000010
Rd
Ra
000011
Rd
Ra
000100
Rd
Ra
000101
Rd
Ra
000110
Rd
Ra
www.xilinx.com
Description
21-31
16-31
Rb
00000000000 Rd := Rb + Ra
Rb
00000000000 Rd := Rb + Ra + 1
Rb
00000000000 Rd := Rb + Ra + C
Rb
00000000000 Rd := Rb + Ra + C
Rb
00000000000 Rd := Rb + Ra
Rb
00000000000 Rd := Rb + Ra + 1
Rb
00000000000 Rd := Rb + Ra + C
Instructions
Semantics
15
Send Feedback
Need help?
Do you have a question about the MicroBlaze and is the answer not in the manual?