228
MicroBlaze Processor Reference Guide
UG081 (v14.7)
Chapter 5:
MicroBlaze Instruction Set Architecture
pcmpbf
Pattern Compare Byte Find
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)
←
1
else
if rB[8:15] = rA[8:15] then
(rD)
←
2
else
if rB[16:23] = rA[16:23] then
(rD)
←
3
else
if rB[24:31] = rA[24:31] then
(rD)
←
4
else
(rD)
←
0
Registers Altered
•
rD
Latency
•
1 cycle
Note
This instruction is only available when the parameter
C_USE_PCMP_INSTR
is set to 1.
pcmpbf
rD, rA, rB
bytewise comparison returning position of first
match
1 0 0 0 0 0
rD
rA
rB
1 0 0 0 0 0 0 0 0 0 0
0
6
1
1
1
6
2
1
3
1
Содержание MicroBlaze
Страница 1: ...MicroBlaze Processor Reference Guide Embedded Development Kit EDK 14 7 UG081 v14 7...
Страница 4: ...MicroBlaze Processor Reference Guide www xilinx com UG081 v14 7...
Страница 8: ...8 www xilinx com MicroBlaze Processor Reference Guide UG081 v14 7 Chapter 1 Introduction Send Feedback...
Страница 262: ...262 www xilinx com MicroBlaze Processor Reference Guide UG081 v14 7 Send Feedback...