Xilinx MicroBlaze Reference Manual page 189

Embedded development kit edk 14.7
Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

cmp
Integer Compare
cmp
cmpu
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
Registers Altered
Latency
MicroBlaze Processor Reference Guide
UG081 (v14.7)
rD, rA, rB
rD, rA, rB
rD
rA
1
1
(rA) + 1
(rD)
(rB) +
(rD)(MSB)
(rA) > (rB)
rD
1 cycle
www.xilinx.com
compare rB with rA (signed)
compare rB with rA (unsigned)
rB
0 0 0 0 0 0 0 0 0 U 1
1
2
6
1
Instructions
3
1
189
Send Feedback

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MicroBlaze and is the answer not in the manual?

Table of Contents