tm1300 NXP Semiconductors, tm1300 Datasheet - Page 434

no-image

tm1300

Manufacturer Part Number
tm1300
Description
Tm-1300 Media Processor
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tm1300-1.2
Quantity:
380
TM1300 Data Book
quadavg
SYNTAX
FUNCTION
DESCRIPTION
bytes of r src1 and r src2 . All bytes are considered unsigned. The least-significant 8 bits of each average is written to
the corresponding byte in r dest . No overflow or underflow detection is performed.
modification of the destination register. If the LSB of r guard is 1, r dest is written; otherwise, r dest is not changed.
EXAMPLES
A-148
r30 = 0x0201000e, r40 = 0xffffff02
r10 = 0, r60 = 0x9c9c6464, r70 = 0x649c649c
r20 = 1, r60 = 0x9c9c6464, r70 = 0x649c649c
As shown below, the
The
[ IF r guard ] quadavg r src1 r src2
if r guard then {
}
r src1
temp
r dest <7:0>
temp
r dest <15:8>
temp
r dest <23:16>
temp
r dest <31:24>
quadavg
3
unsigned
(zero_ext8to32(r src1 <7:0>) + zero_ext8to32(r src2 <7:0>) + 1) / 2
(zero_ext8to32(r src1 <15:8>) + zero_ext8to32(r src2 <15:8>) + 1) / 2
(zero_ext8to32(r src1 <23:16>) + zero_ext8to32(r src2 <23:16>) + 1) / 2
(zero_ext8to32(r src1 <31:24>) + zero_ext8to32(r src2 <31:24>) + 1) / 2
Four full-precision
Initial Values
temp<7:0>
operation optionally takes a guard, specified in r guard . If a guard is present, its LSB controls the
temp<7:0>
2
temp<7:0>
temp<7:0>
9-bit sums
unsigned
quadavg
PRODUCT SPECIFICATION
1
8
unsigned
unsigned
r dest
operation computes four separate averages of the four pairs of corresponding 8-bit
3
unsigned
7
0
unsigned
quadavg r30 r40
IF r10 quadavg r60 r70
IF r20 quadavg r60 r70
8
unsigned
2
unsigned
0
r dest
0
1
Operation
8
unsigned
r src2
Unsigned byte-wise quad average
unsigned
3
unsigned
r50
7
0
unsigned
1
8
2
r80
r90
unsigned
unsigned
0
Function unit
Operation code
Number of operands
Modifier
Modifier range
Latency
Issue slots
iavgonep dspuquadaddui
1
r50
no change, since guard is false
r90
0
Philips Semiconductors
1
unsigned
ATTRIBUTES
0x81808008
0x809c6480
SEE ALSO
ifir8ii
1
Result
7
unsigned
dspalu
1, 3
1
No
73
0
2
2

Related parts for tm1300