Convert Double-Precision Floating-Point Value to Integer With Truncation

DPTRUNC

 

Pipeline

 

 

 

 

 

 

 

 

Pipeline

E1

E2

E3

E4

 

 

 

 

 

 

Stage

 

 

 

 

 

 

 

 

 

 

 

Read

src2_l

 

 

 

 

 

 

 

src2_h

 

 

 

 

 

 

Written

 

 

 

dst

 

 

 

Unit in use

.L

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Type

4-cycle

 

 

 

 

 

 

 

Delay Slots

3

 

 

 

 

 

 

 

 

Functional Unit

1

 

 

 

 

 

 

 

 

Latency

 

 

 

 

 

 

 

 

 

 

See Also

 

DPINT, DPSP, SPTRUNC

 

 

 

 

 

Example

 

DPTRUNC

.L1

 

A1:A0,A4

 

 

 

 

Before instruction

 

 

 

 

4 cycles after instruction

A1:A0

 

 

 

 

 

 

 

 

 

4021 3333h

 

3333 3333h

8.6

A1:A0

 

4021

3333h

3333 3333h

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A4

xxxx xxxxh

 

 

 

 

A4

 

0000

0008h

 

 

 

 

 

 

 

 

 

 

 

 

8.6

8

SPRU733

Instruction Set

3-109

Page 169
Image 169
Texas Instruments TMS320C67X/C67X+ DSP manual Dptrunc, DPINT, DPSP, Sptrunc