English
Language : 

TM-1300 Datasheet, PDF (422/533 Pages) NXP Semiconductors – Programmable Media Processor
TM1300 Data Book
mergedual16lsb
Philips Semiconductors
Merge dual 16-bit lsb bytes
SYNTAX
[ IF rguard ] mergedual16lsb rsrc1 rsrc2 → rdest
FUNCTION
if rguard then {
rdest<31:24> <- rsrc1<23:16>
rdest<23:16> <- rsrc1<7:0>
rdest<15:8> <- rsrc2<23:16>
rdest<7:0> <- rsrc2<7:0>
}
ATTRIBUTES
Function unit
Operation code
Number of operands
Modifier
Modifier range
Latency
Issue slots
shifter
103
2
No
-
1
1,2
SEE ALSO
mergelsb mergemsb
pack16lsb pack16msb
DESCRIPTION
The arguments rsrc1 and rsrc2 are vectors of two 16-bit data. The mergedual16lsb operation merges the least
significant bytes from each 16-bit data rsrc1 and rsrc2 into one 32-bit data in dest register, to convert to quad 8-bit.
The mergedual16lsb 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.
31
rsrc1
23
15
7
0
31
23
15
7
0
rsrc2
31
23
15
7
0
rdest
EXAMPLES
Initial Values
Operation
Result
r30 = 0x12345678, r40 = 0xaabbccdd
mergedual16lsb r30 r40 -> r50
r50 <- 0x3478bbdd
r10 = 0, r30 = 0x12345678, r40 = 0xaabbccdd IF r10 mergedual16lsb r30 r40 -> r50 no change, since guard is
false
r10 = 1, r30 = 0x01020304, r40 = 0x0a0b0c0d IF r10 mergedual16lsb r30 r40 -> r50 r50 <- 0x02040b0d
A-136
PRODUCT SPECIFICATION