MSTOP
(continued)
Stop Task
Pipeline
This is a single-cycle instruction.
shows the pipeline behavior of the MSTOP
instruction. The MSTOP instruction cannot be placed with 3 instructions of a
Table 10-19. Pipeline Activity For MSTOP
Instruction
F1
F2
D1
D2
R1
R2
E
W
I1
I1
I2
I2
I1
I3
I3
I2
I1
MSTOP
MSTOP
I3
I2
I1
I4
I4
MSTOP
I3
I2
I1
I5
I5
I4
MSTOP
I3
I2
I1
I6
I6
I5
I4
MSTOP
I3
I2
I1
New Task Arbitrated and
Prioritized
-
-
-
-
-
I3
I2
New Task Arbitrated and
Prioritized
-
-
-
-
-
-
I3
I1
I1
-
-
-
-
-
-
I2
I2
I1
-
-
-
-
-
I3
I3
I2
I1
-
-
-
-
I4
I4
I3
I2
I1
-
-
-
I5
I5
I4
I3
I2
I1
-
-
I6
I6
I5
I4
I3
I2
I1
-
I7
I7
I6
I5
I4
I3
I2
I1
etc ....
Example
; Given A = (int32)1
; B = (int32)2
; C = (int32)-7
;
; Calculate Y2 = A - B - C
_Cla1Task3:
MMOV32 MR0, @_A ; MR0 = 1 (0x00000001)
MMOV32 MR1, @_B ; MR1 = 2 (0x00000002)
MMOV32 MR2, @_C ; MR2 = -7 (0xFFFFFFF9)
MSUB32 MR3, MR0, MR1 ; A + B
MSUB32 MR3, MR3, MR2 ; A + B + C = 6 (0x0000006)
MMOV32 @_y2, MR3 ; Store y2
MSTOP ; End of task
See also
Control Law Accelerator (CLA)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
693
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......