Texas Instruments TMS320C67X/C67X+ DSP User Manual
Page 266
SADD
Add Two Signed Integers With Saturation
3-206
Instruction Set
SPRU733
Pipeline
Stage
E1
Read
src1, src2
Written
dst
Unit in use
.L
Instruction Type
Single-cycle
Delay Slots
0
See Also
ADD, SSUB
Example 1
SADD .L1
A1,A2,A3
Before instruction
1 cycle after instruction
2 cycles after instruction
A1 5A2E 51A3h 1512984995
A1 5A2E 51A3h
A1 5A2E 51A3h
A2 012A 3FA2h 19546018
A2 012A 3FA2h
A2 012A 3FA2h
A3 xxxx xxxxh
A3 5B58 9145h
1532531013
A3 5B58 9145h
CSR 0001 0100h
CSR 0001 0100h
CSR 0001 0100h Not saturated
Example 2
SADD .L1
A1,A2,A3
Before instruction
1 cycle after instruction
2 cycles after instruction
A1 4367 71F2h 1130852850
A1 4367 71F2h
A1 4367 71F2h
A2 5A2E 51A3h 1512984995
A2 5A2E 51A3h
A2 5A2E 51A3h
A3 xxxx xxxxh
A3 7FFF FFFFh 2147483647
A3 7FFF FFFFh
CSR 0001 0100h
CSR 0001 0100h
CSR 0001 0300h Saturated
Pipeline