cmpl - 2024.2 English

MicroBlaze Processor Reference Guide (UG984)

Document ID
UG984
Release Date
2024-11-27
Version
2024.2 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