pcmpeq - 2025.1 English - UG984

MicroBlaze Processor Reference Guide (UG984)

Document ID
UG984
Release Date
2025-05-29
Version
2025.1 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.