5-22
SC140 DSP Core Reference Manual
Instruction Timing
The read or write for each memory access can be mapped to the execution cycle in which they operate
as follows:
•
Cycle 1
— Move read or write without address pre-calculation.
— Bit mask read without address pre-calculation.
— Pop read with shadow SP valid.
•
Cycle 2
— Move read or write with address pre-calculation.
— Bit mask read with address pre-calculation.
— Bit mask write without address pre-calculation.
— Pop read with shadow SP invalid.
•
Cycle 3
— Bit mask write with address pre-calculation.
Contention may occur when two instructions in an execution set attempt to access the same physical
memory module in the same cycle. The memory system evaluates contention on a cycle-by-cycle basis, not
for the execution set as a whole.
The following conventions apply to the execution of memory access operations:
•
Each AGU access operation is performed in its cycle number, independent of any other access.
•
Operations that execute in different cycles are performed in cycle sequence without contention.
•
Bit mask instructions (such as BMSET, BMCLR, and BMCHG) are read-modify-write
instructions. These instructions each generate two memory accesses in sequence.
•
Pop instruction timing depends on the validity of the stack pointer (SP) shadow register that holds
a pre-decremented value of the SP in order to avoid the need for pre-calculation. If shadow SP is
not valid (for example, after an explicit SP update), another cycle is needed for the first pop in
order to perform the pre-calculation.
The following rules apply to cases of contention due to dual access to the same physical memory module
by two instructions in the same cycle:
•
A memory read instruction executes before a memory write instruction.
•
For two memory writes to different locations, the order is undefined, meaning that it is
implementation-specific. The program algorithm should not assume any specific behavior of the
memory system for the memory writes.
•
Two memory writes to the same location in the same execution set is not allowed by the SC140
programming rules. If this occurs, the memory results are undefined.
5.3.3.1 Memory Access Examples
This section describes the contention cases of two memory access instructions grouped in a VLES. If two
memory writes are grouped in a VLES, it is assumed that the two write addresses contend for the same
physical memory module but do not access the same memory locations. Two memory writes to the same
location are not allowed per
Section 7.6, “Dynamic Programming Rules.”
The following description is
assumes a simple memory without write buffers, where the memory system executes all accesses on a
Содержание SC140 DSP Core
Страница 12: ...xii SC140 DSP Core Reference Manual ...
Страница 18: ...xviii SC140 DSP Core Reference Manual ...
Страница 32: ...1 6 SC140 DSP Core Reference Manual Core Architecture Features ...
Страница 180: ...4 70 SC140 DSP Core Reference Manual Trace Unit Registers ...
Страница 250: ...6 70 SC140 DSP Core Reference Manual Programming Rules ...
Страница 314: ...7 64 SC140 DSP Core Reference Manual NOP Definition ...
Страница 385: ...BMCHG W SC140 DSP Core Reference Manual A 71 u16 iiiiiiiiiiiiiiii 16 bit unsigned immediate data ...
Страница 388: ...A 74 SC140 DSP Core Reference Manual BMCHG W s16 AAAAAAAAAAAAAAAA 16 bit signed SP address offset ...
Страница 391: ...BMCLR SC140 DSP Core Reference Manual A 77 u16 iiiiiiiiiiiiiiii 16 bit unsigned immediate data ...
Страница 454: ...A 140 SC140 DSP Core Reference Manual DECA u5 iiiii 5 bit unsigned immediate data 1 set by the assembler ...
Страница 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 ...
Страница 478: ...A 164 SC140 DSP Core Reference Manual EI ...
Страница 592: ...A 278 SC140 DSP Core Reference Manual MOVE L a32 aaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAA 32 bit absolute long address ...
Страница 618: ...A 304 SC140 DSP Core Reference Manual MOVES 4F s15 sssssssssssssss Signed 15 bit offset ...
Страница 638: ...A 324 SC140 DSP Core Reference Manual MPYR ...
Страница 660: ...A 346 SC140 DSP Core Reference Manual OR W s16 AAAAAAAAAAAAAAAA Signed 16 bit SP address offset ...
Страница 746: ...A 432 SC140 DSP Core Reference Manual ZXTA x ...
Страница 758: ...I 10 Index ...
Страница 759: ...SC140 DSP Core Reference Manual i ...
Страница 760: ......