![Freescale Semiconductor SC140 DSP Core Reference Manual Download Page 186](http://html1.mh-extra.com/html/freescale-semiconductor/sc140-dsp-core/sc140-dsp-core_reference-manual_2330564186.webp)
5-6
SC140 DSP Core Reference Manual
Instruction Grouping
In the execution set described above, six SC140 instructions are grouped together. When executed, the
following occurs:
1.
The contents of the D0 and D1 registers are multiplied fractionally. The result is added to the
content of the D7 data register. The final result is then stored in the D7 data register.
2.
The contents of the D3 and D4 registers are multiplied fractionally. The result is added to
the content of the D6 data register. The final result is then stored in the D6 data register.
3.
The contents of the D0 and D2 registers are multiplied fractionally. The result is added to
the content of the D5 data register. The final result is then rounded and stored in the D5 data
register.
4.
The contents of the D3 and D4 registers are added together. The result is rounded and stored
in the D4 data register.
5.
The contents of the 16-bit memory location pointed to by the R0 register is sign extended
and moved into the D2 register.
6.
The content of the N3 register is added to the content of the R0 register. The result is stored
back in the R0 register.
7.
The 32 least significant bits of the D0 register are moved to the R1 register.
5.2.1 Grouping Types
The SC140 grouping includes two types of encoding:
•
Serial (non-prefix) grouping, which encodes in the two most significant bits (MSB) of instructions.
•
Prefix grouping, which encodes a one-word or two-word prefix at the start of the execution set.
The Program Dispatch Unit (PDU) in the PSEQ determines which instructions in each clock cycle should
be issued to the execution units. It does this by decoding the grouping information.
In serial grouping, the value 00 in the two most significant bits (MS) of an instruction word indicates that
this word is to be grouped with the next instruction word. An instruction with a value other than 00 in its
two MS bits is considered the last instruction in the set, and marks the execution set boundary.
In prefix grouping, if a prefix exists at the beginning of an execution set, the PDU uses it to determine the
grouping information, including the number of instruction words grouped in the execution set.
Figure 5-2 illustrates the serial and prefix methods for the SC140 grouping mechanism:
Figure 5-2. Instruction Grouping Methods
00
00
01
Inst. #1
Inst. #2
Inst. #3
Serial grouping
011
Prefix word(s)
Inst. #1
Inst. #2
Inst. #3
Prefix grouping
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: ......