Xilinx MicroBlaze Reference Manual page 225

Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

cmp
Integer Compare
rD, rA, rB
cmp
cmpu
rD, rA, rB
0 0 0 1 0 1
0
6
Description
The contents of register rA is subtracted from the contents of register rB and the result is placed into
register rD.
The MSB bit of rD is adjusted to shown true relation between rA and rB. If the U bit is set, rA and rB is
considered unsigned values. If the U bit is clear, rA and rB is considered signed values.
Pseudocode
(rD)
(rB) +
(rD)(MSB)
Registers Altered
rD
Latency
1 cycle
MicroBlaze Processor Reference Guide
UG984 (v2018.2) June 21, 2018
compare rB with rA (signed)
compare rB with rA (unsigned)
rD
rA
11
(rA) + 1
(rA) > (rB)
www.xilinx.com
Chapter 5: MicroBlaze Instruction Set Architecture
rB
0 0 0 0 0 0 0 0 0 U 1
16
21
31
226
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents