English
Language : 

PNX1300 Datasheet, PDF (468/548 Pages) NXP Semiconductors – Media Processors
Philips Semiconductors
Clip unsigned to unsigned
PNX1300/01/02/11 DSPCPU Operations
uclipu
SYNTAX
[ IF rguard ] uclipu rsrc1 rsrc2 → rdest
FUNCTION
if rguard then {
if rsrc1 > rsrc2 then
rdest ← rsrc2
else
rdest ← rsrc1
}
ATTRIBUTES
Function unit
Operation code
Number of operands
Modifier
Modifier range
Latency
Issue slots
dspalu
76
2
No
—
2
1, 3
SEE ALSO
iclipi uclipi imin imax
DESCRIPTION
The uclipu operation returns the value of rsrc1 clipped into the unsigned integer range 0 to rsrc2, inclusive. The
arguments rsrc1 and rsrc2 are considered unsigned integers.
The uclipu operation optionally takes a guard, specified in rguard. If a guard is present, its LSB controls the
modification of the destination register. If the LSB of rguard is 1, rdest is written; otherwise, rdest is not changed.
EXAMPLES
Initial Values
r30 = 0x80, r40 = 0x7f
r10 = 0, r60 = 0x12345678,
r70 = 0xabc
r20 = 1, r60 = 0x12345678,
r70 = 0xabc
r100 = 0x80000000, r110 = 0x3fffff
Operation
uclipu r30 r40 → r50
IF r10 uclipu r60 r70 → r80
IF r20 uclipu r60 r70 → r90
uclipu r100 r110 → r120
Result
r50 ← 0x7f
no change, since guard is false
r90 ← 0xabc
r120 ← 0x3fffff
PRELIMINARY SPECIFICATION
A-170