cmpl - 2025.1 English - UG984

MicroBlaze Processor Reference Guide (UG984)

Document ID
UG984
Release Date
2025-05-29
Version
2025.1 English
Figure 1. cmpl

Description

The contents of register rAL are subtracted from the contents of register rBL and the result is placed into register rDL.

The MSB bit of rDL is adjusted to shown true relation between rAL and rBL. If the U bit is set, rAL and rBL is considered unsigned values. If the U bit is clear, rAL and rBL is considered signed values.

Pseudocode

(rDL) ← (rBL) + (rAL) + 1
(rDL)(MSB) ← (rAL) > (rBL)

Registers Altered

  • rDL

Latency

  • 1 cycle