5-16
SC140 DSP Core Reference Manual
Instruction Timing
5.3.1.1 DALU Instruction Timing
DALU instructions are the most timing-critical instructions in the DSP algorithm kernels, taking only one
cycle to execute. DALU instructions consist, among others, of the following:
•
Multiply-accumulate (MAC)
•
Multiply (MPY)
•
ADD
•
SUB
•
Compare
•
Shift
•
Test
5.3.1.2 Move Instruction Timing
Most of the move instructions take one cycle to execute, assuming a zero-wait-state, contention-free
memory. The exception is for the addressing modes requiring an arithmetic calculation of a new address:
(Rn + N0), (Rn + Rm), (Rn + x), (Rn + xxxx), (SP – xx) and (SP + xxxx). These addressing modes require
one additional clock cycle to calculate the address of the memory access. All the other versions of data
moves are one cycle, including the versions for byte, word, two-word, long-word, four-word, and two
long-word operands (signed or unsigned). Data can be moved between memory and register, or between
registers.
5.3.1.3 Bit Mask Instruction Timing
The SC140 core includes various instructions for bit mask operations. These instructions are helpful when
several bits need to be changed or tested at the same time. The bit mask instructions include the following:
•
Bit mask set (BMSET)
•
Bit mask clear (BMCLR)
•
Bit mask change (BMCHG)
•
Bit mask test (BMTSTS, BMTSTC)
•
Bit mask test and set (BMTSET)
Bit mask instructions are a read-modify-write instruction. This means they have three steps:
1.
Read the operand.
2.
Change (set, clear, or change) selected bits.
3.
Write the operand back to the original location.
This type of instruction takes two clock cycles to execute for the simple addressing modes, and three clock
cycles for the addressing modes that require pre-calculation of the address.
Refer to
Appendix A, “SC140 DSP Core Instruction Set,”
for a full description of the bit mask instructions.
Summary of Contents for SC140 DSP Core
Page 12: ...xii SC140 DSP Core Reference Manual ...
Page 18: ...xviii SC140 DSP Core Reference Manual ...
Page 32: ...1 6 SC140 DSP Core Reference Manual Core Architecture Features ...
Page 180: ...4 70 SC140 DSP Core Reference Manual Trace Unit Registers ...
Page 250: ...6 70 SC140 DSP Core Reference Manual Programming Rules ...
Page 314: ...7 64 SC140 DSP Core Reference Manual NOP Definition ...
Page 463: ...DI SC140 DSP Core Reference Manual A 149 15 8 7 0 DI 1 1 4 1 0 0 1 1 1 1 1 0 1 1 1 1 1 0 1 ...
Page 478: ...A 164 SC140 DSP Core Reference Manual EI ...
Page 618: ...A 304 SC140 DSP Core Reference Manual MOVES 4F s15 sssssssssssssss Signed 15 bit offset ...
Page 638: ...A 324 SC140 DSP Core Reference Manual MPYR ...
Page 746: ...A 432 SC140 DSP Core Reference Manual ZXTA x ...
Page 758: ...I 10 Index ...
Page 759: ...SC140 DSP Core Reference Manual i ...
Page 760: ......