pcmpeq - 2024.2 English

MicroBlaze Processor Reference Guide (UG984)

Document ID
UG984
Release Date
2024-11-27
Version
2024.2 English
Figure 1. pcmpeq

Description

The contents of register rA are 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

  • This instruction is only available when the parameter C_USE_PCMP_INSTR is set to 1.