tm1300 NXP Semiconductors, tm1300 Datasheet - Page 295

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
Philips Semiconductors
Arithmetic shift right
SYNTAX
FUNCTION
DESCRIPTION
and r src1 is arithmetically shifted right by this amount. If the rsrc2<31:5> value is not zero, then take this as a shift by
32 or more bits. The MSB (sign bit) of r src1 is replicated as needed to fill vacated bits from the left.
modification of the destination register. If the LSB of r guard is 1, r dest is written; otherwise, r dest is unchanged.
EXAMPLES
r30 = 0x7008000f, r20 = 1
r30 = 0x7008000f, r42 = 2
r10 = 0, r30 = 0x7008000f, r44 = 4
r20 = 1, r30 = 0x7008000f, r44 = 4
r40 = 0x80030007, r44 = 4
r30 = 0x7008000f, r45 = 0x1f
r30 = 0x8008000f, r45 = 0x1f
r30 = 0x7008000f, r45 = 0x20
r30 = 0x8008000f, r45 = 0x20
r30 = 0x8008000f, r45 = 0x23
As shown below, the
The
[ IF r guard ] asr r src1 r src2
if r guard then {
}
r src1
n
r dest <31:31–n>
r dest <30–n:0>
if rsrc2<31:5> != 0 {
}
rdest <- rsrc1<31>
asr
S
31
r src2 <4:0>
Initial Values
operation optionally takes a guard, specified in r guard . If a guard is present, its LSB controls the
r src1 <30:n>
r src1 <31>
Intermediate result
asr
(example: n = 3)
operation takes two arguments, r src1 and r src2 . R src2 specifies an unsigned shift amount,
r dest
asr r30 r20
asr r30 r42
IF r10 asr r30 r44
IF r20 asr r30 r44
asr r40 r44
asr r30 r45
asr r30 r45
asr r30 r45
asr r30 r45
asr r30 r45
S
S
3
S
S
S
S
S
S
2
r dest
0
Operation
Right shifter
r50
r60
r90
r100
r100
r100
r100
r100
32 bits from r src1
PRODUCT SPECIFICATION
r src2
r70
r80
31
DSPCPU Operations for TM1300
0
asl asli asri lsl lsli lsr
Function unit
Operation code
Number of operands
Modifier
Modifier range
Latency
Issue slots
r50
r60
no change, since guard is false
r80
r90
r100
r100
r100
r100
r100
0x38040007
0x1c020003
0x07008000
0xf8003000
0x00000000
0xffffffff
0x00000000
0xffffffff
0xffffffff
lsri rol roli
ATTRIBUTES
SEE ALSO
r src2
Result
shifter
1, 2
No
18
2
1
asr
0
A-9

Related parts for tm1300