DSP Core Instruction Set
SC140 DSP Core Reference Manual
A-7
A.1.5 Prefix Word Encoding
Each execution set can be associated with a one-word (low or high register) or two-word prefix that is
placed at the beginning of the set. A prefix conveys additional information about the set such as:
•
Conditional execution of an execution set or a subgroup (originating in the IFT/IFF/IFA
instructions).
•
The number of instructions that are grouped together in the execution set.
•
Looping information to support hardware loops (lpmarkA and lpmarkB bits).
•
Encoding extension for high register banks (D8–D15, R8–R15).
There are two prefix formats: a one-word low register prefix, and a two-word prefix. A one-word low
register prefix encodes information concerning the first three items above. A two-word prefix includes
information on all items above.
The basic 16-bit instruction encoding of the SC140 has three bits allocated to specify a data or pointer
register. Therefore, these encodings alone can specify only eight DALU registers (D0–D7) and eight
address pointers (R0–R7). In order to specify operands that belong to the high register banks (D8–D15,
R8–R15), additional encoding bits are needed. These bits are allocated in the two-word prefix. A two-word
prefix includes a field for each execution unit in the SC140: four fields for DALU instructions and two
fields for AGU instructions.
DALU instructions have a maximum of three operands, so each DALU field is 3 bits wide. AGU
instructions have a maximum of two operands, so each AGU field is two bits wide. This provides an
encoding extension bit for each possible operand in each execution unit. If a bit is set, it signifies that the
respective operand uses a high-bank register. If the associated bit is clear, the operand uses a register from
the low bank. A two-word prefix is generated by the assembler if at least one of the instructions in the
execution set that uses a register from the high banks has 3 operands, and/or is conditionally executed or is
in a loop.
Prefix words are optional, generated by the assembler if needed. The rules used by the assembler to
determine if a prefix is needed are described in
Section 5.2.4, “Prefix Selection Algorithm.”
:
Note:
Use of a prefix reduces the space available for instructions in the eight-word execution set by the
size of the prefix. For example, if an instruction that references a high-bank register causes the
assembler to generate a two-word prefix,only six words are left available in that execution set for
instructions.
Содержание 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: ......