Texas Instruments TMS320C67X/C67X+ DSP manual Sshl .S1

Models: TMS320C67X/C67X+ DSP

1 465
Download 465 pages 63.87 Kb
Page 293
Image 293

Shift Left With Saturation SSHL

Pipeline

 

 

Pipeline

E1

 

 

Stage

 

 

 

 

Read

src1, src2

 

Written

dst

 

Unit in use

.S

 

 

 

Instruction Type

Single-cycle

 

 

Delay Slots

0

 

 

See Also

SHL, SHR

 

 

Example 1

SSHL .S1

A0,2,A1

 

Before instruction

1 cycle after instruction

2 cycles after instruction

A0

02E3

031Ch

 

 

 

A1 xxxx xxxxh

CSR 0001 0100h

A0

A1

CSR

02E3 031Ch

0B8C 0C70h

0001 0100h

A0

A1

CSR

02E3 031Ch

0B8C 0C70h

0001 0100h

Not saturated

Example 2

SSHL .S1

A0,A1,A2

 

Before instruction

1 cycle after instruction

2 cycles after instruction

A0

A1

A2

CSR

4719 1925h

0000 0006h

xxxxxxxxh

0001 0100h

A0

A1

A2

CSR

4719 1925h

0000 0006h

7FFF FFFFh

0001 0100h

A0

A1

A2

CSR

4719 1925h

0000 0006h

7FFF FFFFh

0001 0300h

Saturated

SPRU733

Instruction Set

3-233

Page 293
Image 293
Texas Instruments TMS320C67X/C67X+ DSP manual Sshl .S1