pcmpbf
Pattern Compare Byte Find
pcmpbf
1 0 0 0 0 0
0
6
Description
The contents of register rA is bytewise compared with the contents in register rB.
•
rD is loaded with the position of the first matching byte pair, starting with MSB as
position 1, and comparing until LSB as position 4
•
If none of the byte pairs match, rD is set to 0
Pseudocode
if rB[0:7] = rA[0:7] then
(rD)
else
if rB[8:15] = rA[8:15] then
(rD)
else
if rB[16:23] = rA[16:23] then
(rD)
else
if rB[24:31] = rA[24:31] then
else
Registers Altered
•
rD
Latency
•
1 cycle
Note
This instruction is only available when the parameter C_USE_PCMP_INSTR is set to 1.
MicroBlaze Processor Reference Guide
UG984 (v2016.2) June 8, 2016
UG984 (v2016.1) April 6, 2016
rD, rA, rB
bytewise comparison returning position
of first match
rD
rA
1
1
←
1
←
2
←
3
←
(rD)
4
←
(rD)
0
www.xilinx.com
Chapter 5: MicroBlaze Instruction Set Architecture
rB
1 0 0 0 0 0 0 0 0 0 0
1
2
6
1
3
1
248
Send Feedback
Need help?
Do you have a question about the MicroBlaze and is the answer not in the manual?
Questions and answers