R

Chapter 4: MicroBlaze Instruction Set Architecture

pcmpeq

Pattern Compare Equal

 

pcmpeq

rD, rA, rB

equality comparison with a positive

 

 

boolean result

1 0 0 0 1 0

rD

rA

rB

1 0 0 0 0 0 0 0 0 0 0

0

6

11

16

21

31

Description

The contents of register rA is compared with the contents in register rB.

rD is loaded with 1 if they match, and 0 if not

Pseudocode

if (rB) = (rA) then (rD) 1

else

(rD) 0

Registers Altered

rD

Latency

1 cycle

Note

124

www.xilinx.com

MicroBlaze Processor Reference Guide

 

1-800-255-7778

UG081 (v6.0) June 1, 2006

Page 124
Image 124
Xilinx EDK 8.2i manual Pattern Compare Equal Pcmpeq