Xilinx MicroBlaze Reference Manual page 207

32-bit soft processor
Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

cmp
Integer Compare
cmp
rD, rA, rB
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 (v2016.2) June 8, 2016
UG984 (v2016.1) April 6, 2016
compare rB with rA (signed)
compare rB with rA (unsigned)
rD
rA
1
1
(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
1
2
6
1
3
1
207
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents