Freescale-semiconductor StarCore SC140 Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Sprzęt komputerowy Freescale-semiconductor StarCore SC140. Freescale Semiconductor StarCore SC140 User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 760
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
SC140 DSP Core
Reference Manual
Revision 4.1, September 2005
This document contains information on a new product.
Specifications and information herein are subject to
change without notice.
(c) Freescale Semiconductor, Inc. 2005, All rights
Przeglądanie stron 0
1 2 3 4 5 6 ... 759 760

Podsumowanie treści

Strona 1 - SC140 DSP Core

SC140 DSP CoreReference ManualRevision 4.1, September 2005This document contains information on a new product. Specifications and information herein a

Strona 2

x SC140 DSP Core Reference Manual7.5.6 Status Bit Rules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 3 - Table of Contents

2-68 SC140 DSP Core Reference ManualMemory InterfaceTable 2-30 shows the representation of the change-of-flow instructions in big and little endian mo

Strona 4

SC140 DSP Core Reference Manual 3-1Chapter 3Control RegistersThis chapter describes the core control registers for the SC140 core. Several bits in the

Strona 5

3-2 SC140 DSP Core Reference ManualCore Control Registers• ILLEGAL• DEBUG, DEBUGEV (if configured in the EOnCE to generate an exception)The following

Strona 6

Core Control RegistersSC140 DSP Core Reference Manual 3-3LF2Bit 29Loop Flag 2 — When set, indicates that hardware loop #3 is enabled. At the start of

Strona 7

3-4 SC140 DSP Core Reference ManualCore Control RegistersOVE Bit 20Overflow Exception Enable Bit — Enables or disables the generation of an exception

Strona 8

Core Control RegistersSC140 DSP Core Reference Manual 3-5SBit 6Scaling Bit — Set when moving a result from a data register (D0–D15) to memory using a

Strona 9

3-6 SC140 DSP Core Reference ManualCore Control RegistersSMBit 2Arithmetic Saturation Mode — Selects automatic saturation on 32 bits for data arithmet

Strona 10

Core Control RegistersSC140 DSP Core Reference Manual 3-73.1.2 Exception and Mode Register (EMR)The purpose of the EMR is to reflect and control exce

Strona 11 - StarCore Registry

3-8 SC140 DSP Core Reference ManualCore Control RegistersTable 3-2 describes the EMR fields.Table 3-2. EMR DescriptionName Description SettingsRBits

Strona 12

Core Control RegistersSC140 DSP Core Reference Manual 3-9ILSTBit 1Illegal Execution Set — Indicates whether an execution set grouping rule has been vi

Strona 13 - List of Figures

SC140 DSP Core Reference Manual xiA.1.5 Prefix Word Encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7A

Strona 14

3-10 SC140 DSP Core Reference ManualPLL and Clock Registers3.1.2.1 Clearing EMR BitsThe ILIN, ILST, DOVF, and NMID bits can only be set by the hard

Strona 15 - List of Tables

SC140 DSP Core Reference Manual 4-1Chapter 4Emulation and Debug (EOnCE)The SC140 core provides board and chip-level testing capability through two on-

Strona 16

4-2 SC140 DSP Core Reference ManualOverview of the Combined JTAG and EOnCE InterfaceIn addition, the EOnCE:• Reduces system intrusion when debugging i

Strona 17

Overview of the Combined JTAG and EOnCE InterfaceSC140 DSP Core Reference Manual 4-3Figure 4-1. JTAG and EOnCE Multi-core InterconnectionTo access t

Strona 18

4-4 SC140 DSP Core Reference ManualOverview of the Combined JTAG and EOnCE InterfaceFigure 4-2 shows the TAP controller state machine, and Table 4-3 s

Strona 19 - List of Examples

Overview of the Combined JTAG and EOnCE InterfaceSC140 DSP Core Reference Manual 4-5Figure 4-2. TAP Controller State MachineAt power-up or during no

Strona 20

4-6 SC140 DSP Core Reference ManualOverview of the Combined JTAG and EOnCE InterfaceThe first action that occurs when either block is entered is a Cap

Strona 21

Overview of the Combined JTAG and EOnCE InterfaceSC140 DSP Core Reference Manual 4-7Figure 4-3. Cascading Multiple EOnCE Modules4.2.5 DEBUG_REQUEST

Strona 22

4-8 SC140 DSP Core Reference ManualOverview of the Combined JTAG and EOnCE InterfaceFigure 4-4. Reading and Writing EOnCE Registers Via JTAGThe SC14

Strona 23 - About This Book

Overview of the Combined JTAG and EOnCE InterfaceSC140 DSP Core Reference Manual 4-9Figure 4-5. Accessing EOnCE registers through JTAG(A) EOnCE regi

Strona 24 - Abbreviations

xii SC140 DSP Core Reference Manual

Strona 25 - NMI Non-maskable interrupt

4-10 SC140 DSP Core Reference ManualMain Capabilities of the EOnCE Module4.3 Main Capabilities of the EOnCE ModuleWhile the JTAG port provides board

Strona 26 - Revision History

Main Capabilities of the EOnCE ModuleSC140 DSP Core Reference Manual 4-114.3.2 EOnCE Dedicated InstructionsThe instruction set of the SC140 core arch

Strona 27 - Introduction

4-12 SC140 DSP Core Reference ManualMain Capabilities of the EOnCE ModuleIf the core is in execution state or in a power-saving state (stop or wait) w

Strona 28 - Architectural Differentiation

Main Capabilities of the EOnCE ModuleSC140 DSP Core Reference Manual 4-13Figure 4-7. Software Downloading Execute CHOOSE_EOnCE and DEBUG_REQUEST in

Strona 29 - Core Architecture Features

4-14 SC140 DSP Core Reference ManualMain Capabilities of the EOnCE Module4.3.7 EOnCE EventsAn emulator event is an occurrence that the emulator can c

Strona 30

Main Capabilities of the EOnCE ModuleSC140 DSP Core Reference Manual 4-154.3.8 EOnCE ActionsAn emulator action is something that the EOnCE does as a

Strona 31

4-16 SC140 DSP Core Reference ManualEOnCE Enabling and Power Considerations4.4 EOnCE Enabling and Power ConsiderationsExcept for the EOnCE controlle

Strona 32

EOnCE Module Internal ArchitectureSC140 DSP Core Reference Manual 4-17• Reading and writing EOnCE registers from the software• Real-time JTAG port acc

Strona 33 - Core Architecture

4-18 SC140 DSP Core Reference ManualEOnCE Module Internal ArchitectureThe functionality of the EOnCE controller registers is described in Section 4.7,

Strona 34 - StarCore

EOnCE Module Internal ArchitectureSC140 DSP Core Reference Manual 4-19Figure 4-9 shows a block diagram of the event counter. Figure 4-9. Event Count

Strona 35 - 2.1.1.4 Shifter/Limiters

SC140 DSP Core Reference Manual xiii1-1 Block Diagram of a Typical SoC Configuration with the SC140 Core . . . . . . . 1-52-1 Block Diagram of the SC

Strona 36 - 2.1.2.2 Bit Mask Unit (BMU)

4-20 SC140 DSP Core Reference ManualEOnCE Module Internal Architecture4.5.3 Event Detection Unit (EDU)The EOnCE EDU capabilities are:• Event detectio

Strona 37 - 2.1.6 Memory Interface

EOnCE Module Internal ArchitectureSC140 DSP Core Reference Manual 4-21In the case of read-modify-write commands, the EDU generates an event even if th

Strona 38 - 2.2 DALU

4-22 SC140 DSP Core Reference ManualEOnCE Module Internal Architecture4.5.3.1 Address Event Detection Channel (EDCA)One of the main elements of the

Strona 39 - D0–D15, respectively

EOnCE Module Internal ArchitectureSC140 DSP Core Reference Manual 4-23• Greater thanEach EDCA includes four registers, as shown in Table 4-8.The funct

Strona 40

4-24 SC140 DSP Core Reference ManualEOnCE Module Internal Architecture4.5.3.2 Data Event Detection Channel (EDCD)The EDCD is one of the main element

Strona 41

EOnCE Module Internal ArchitectureSC140 DSP Core Reference Manual 4-254.5.3.3 Optional External Event Detection Address ChannelsThe EDU has two port

Strona 42

4-26 SC140 DSP Core Reference ManualEOnCE Module Internal ArchitectureThe ES block diagram is shown in Figure 4-13. Figure 4-13. Event Selector Bloc

Strona 43

EOnCE Module Internal ArchitectureSC140 DSP Core Reference Manual 4-27— Return from exception instructions• Other change of flow events:— Interrupts—

Strona 44

4-28 SC140 DSP Core Reference ManualEOnCE Module Internal ArchitectureFigure 4-14 displays a block diagram of the trace unit.Figure 4-14. Trace Unit

Strona 45

EOnCE Module Internal ArchitectureSC140 DSP Core Reference Manual 4-29— BREAK— CONT, CONTD— SKIPLSNote that TRAP, and ILLEGAL are traced as interrupt

Strona 46 - 2.2.1.6 Limiting

xiv SC140 DSP Core Reference Manual4-7 Software Downloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1

Strona 47

4-30 SC140 DSP Core Reference ManualEOnCE Register AddressingTable 4-11. Trace Buffer Register SetThe functionality of the trace unit registers is d

Strona 48 - Table 2-9. Limiting Example

EOnCE Register AddressingSC140 DSP Core Reference Manual 4-31Table 4-12 displays the EOnCE register addressing offsets.Table 4-12. EOnCE Register Ad

Strona 49 - 2.2.2.1 Data Representation

4-32 SC140 DSP Core Reference ManualEOnCE Register Addressing1C R/W 32 32 EDCA4_REFA EDCA4 reference value A1D R/W 32 32 EDCA5_REFA EDCA5 reference va

Strona 50 - ≤ SF ≤+1.0 - 2

EOnCE Register AddressingSC140 DSP Core Reference Manual 4-334.6.1 Reading or Writing EOnCE Registers Using Core SoftwareThe core can read or write m

Strona 51 - ≤ UI ≤ [2

4-34 SC140 DSP Core Reference ManualEOnCE Register AddressingThe ACK bit could be checked on TDO by executing a “neutral” JTAG EOnCE command such as “

Strona 52 - 2.2.2.5 Unsigned Arithmetic

EOnCE Register AddressingSC140 DSP Core Reference Manual 4-35Accessibility of the registers through JTAG is the same as from software with the followi

Strona 53 - 2.2.2.6 Rounding Modes

4-36 SC140 DSP Core Reference ManualEOnCE Controller Registers4.7 EOnCE Controller RegistersA list of the EOnCE controller registers is given in Tab

Strona 54

EOnCE Controller RegistersSC140 DSP Core Reference Manual 4-374.7.2 EOnCE Status Register (ESR)The ESR is a 32-bit register. The status bits of the r

Strona 55

4-38 SC140 DSP Core Reference ManualEOnCE Controller RegistersThe shaded bits are reserved and should be initialized with zeros for future software co

Strona 56

EOnCE Controller RegistersSC140 DSP Core Reference Manual 4-39TBFULLBit 25Trace Buffer Full — Indicates that the trace buffer of EOnCE is full. In ord

Strona 57

SC140 DSP Core Reference Manual xv2-1 DALU Programming Model. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-72-2 Wr

Strona 58 - >> 16

4-40 SC140 DSP Core Reference ManualEOnCE Controller RegistersDREE3Bit 13Debug Reason is EE3 — Set when the core enters debug state or executes a debu

Strona 59

EOnCE Controller RegistersSC140 DSP Core Reference Manual 4-414.7.3 EOnCE Monitor and Control Register (EMCR)The EMCR is a 32-bit register. Bits 31–1

Strona 60

4-42 SC140 DSP Core Reference ManualEOnCE Controller RegistersDEBUGERSTBits 21–18Debugger Status Information — If several applications (debugger proce

Strona 61

EOnCE Controller RegistersSC140 DSP Core Reference Manual 4-434.7.4 EOnCE Receive Register (ERCV)ERCV is a 64-bit shift register that can be written

Strona 62

4-44 SC140 DSP Core Reference ManualEOnCE Controller Registers4.7.6 EE SignalsEE signals are general-purpose core interfaces which serve as input or

Strona 63 - 2.3 Address Generation Unit

EOnCE Controller RegistersSC140 DSP Core Reference Manual 4-454.7.6.1.4 Status Bit of the ETRSMT RegisterThe EE4 signal can be programmed to serve a

Strona 64 - PABXABBXABA

4-46 SC140 DSP Core Reference ManualEOnCE Controller RegistersThe functionality of EE signals when programmed as an input depends on the programming o

Strona 65 - Address Generation Unit

EOnCE Controller RegistersSC140 DSP Core Reference Manual 4-47EE2DEFBits 5–4EE2 Definition — Programs the EE2 signal. Programmed as an output of the E

Strona 66 - 2.3.2 AGU Programming Model

4-48 SC140 DSP Core Reference ManualEOnCE Controller Registers4.7.7 Core Command Register (CORE_CMD)The CORE_CMD register is used to execute instruct

Strona 67 - MOVE.W (R8), D0

EOnCE Controller RegistersSC140 DSP Core Reference Manual 4-494.7.8 PC of the Exception Execution Set (PC_EXCP)PC_EXCP enables the user to determine

Strona 68 - 2.3.2.2.2 Initializing ESP

xvi SC140 DSP Core Reference Manual4-2 JTAG Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 69

4-50 SC140 DSP Core Reference ManualEvent Counter Registers• This event was programmed in ESEL_DM.• The debug reason bits (DREDCA0-5, DREDCD) in ESR i

Strona 70 - 2.3.3 Addressing Modes

Event Counter RegistersSC140 DSP Core Reference Manual 4-51ascertain the number of cycles needed by a device to get from a starting address to an endi

Strona 71

4-52 SC140 DSP Core Reference ManualEvent Counter Registers4.8.2 Event Counter Value Register (ECNT_VAL)This 32-bit register is used to determine how

Strona 72 - 2.3.3.3 PC Relative Mode

Event Counter RegistersSC140 DSP Core Reference Manual 4-534.8.3 Extension Counter Value Register (ECNT_EXT)This is a 32-bit register that is used in

Strona 73

4-54 SC140 DSP Core Reference ManualEvent Detection Unit (EDU) Channels and Registers4.9 Event Detection Unit (EDU) Channels and RegistersThe variou

Strona 74 - 2.3.3.5 Memory Access Width

Event Detection Unit (EDU) Channels and RegistersSC140 DSP Core Reference Manual 4-55EDCAENBits 13–10Event Detection Channel (EDCAi) Enable — Used to

Strona 75

4-56 SC140 DSP Core Reference ManualEvent Detection Unit (EDU) Channels and RegistersIn order to detect a watchpoint on a PC range, one EDCA is enough

Strona 76 - (Rn+N0) Yes √ (Rn + N0)

Event Detection Unit (EDU) Channels and RegistersSC140 DSP Core Reference Manual 4-57the range on bus B, and the two EDCA events should be OR-ed in th

Strona 77 - 2.3.4 Address Modifier Modes

4-58 SC140 DSP Core Reference ManualEvent Detection Unit (EDU) Channels and Registers4.9.2 Data Event Detection Channel (EDCD)In order to set a watch

Strona 78

Event Detection Unit (EDU) Channels and RegistersSC140 DSP Core Reference Manual 4-59AWSBits 9–8Access Width Selection — Determines the width of the d

Strona 79

SC140 DSP Core Reference Manual xvii5-18 Exit Wait Processing State due to an Interrupt or NMI . . . . . . . . . . . . . . . . . . 5-455-19 Exception

Strona 80

4-60 SC140 DSP Core Reference ManualEvent Detection Unit (EDU) Channels and RegistersEDCDENBits 6–3EDCD Enable — Used to enable or disable the EDCD. W

Strona 81 - 2.3.6 Bit Mask Instructions

Event Selector (ES) RegistersSC140 DSP Core Reference Manual 4-614.9.2.2 EDCD Reference Value Register (EDCD_REF)EDCD_REF is a 32-bit register used

Strona 82

4-62 SC140 DSP Core Reference ManualEvent Selector (ES) RegistersFigure 4-23 displays the bit configuration of ESEL_CTRL.The shaded bits are reserved

Strona 83 - 2.3.7 Move Instructions

Event Selector (ES) RegistersSC140 DSP Core Reference Manual 4-63For each outcome, the individual events could be AND-ed or OR-ed as specified in ESEL

Strona 84

4-64 SC140 DSP Core Reference ManualEvent Selector (ES) Registers4.10.3 Event Selector Mask Debug ExceptionRegister (ESEL_DI)This 16-bit register has

Strona 85

Trace Unit RegistersSC140 DSP Core Reference Manual 4-654.10.5 Event Selector Mask Disable Trace Register (ESEL_DTB)This 16-bit register has one bit

Strona 86 - MOVE.4F (R0),D0:D1:D2:D3

4-66 SC140 DSP Core Reference ManualTrace Unit RegistersIn addition, the counter values could be added to the trace package of each trace event, there

Strona 87 - 2.4 Memory Interface

Trace Unit RegistersSC140 DSP Core Reference Manual 4-67In order to ensure that the LSB value of the trace data is always valid according to this conv

Strona 88 - 2.4.1 SC140 Endian Support

4-68 SC140 DSP Core Reference ManualTrace Unit RegistersTLOOPBit 5Trace Loops Mode — Enables tracing the addresses of hardware loops. When the bit is

Strona 89 - 2.4.1.2 Memory Organization

Trace Unit RegistersSC140 DSP Core Reference Manual 4-694.11.2 Trace Buffer Read Pointer Register (TB_RD)TB_RD is a 16-bit register that points to th

Strona 90 - 2.4.1.3 Data Moves

xviii SC140 DSP Core Reference Manual

Strona 91

4-70 SC140 DSP Core Reference ManualTrace Unit Registers

Strona 92

SC140 DSP Core Reference Manual 5-1Chapter 5Program ControlThis chapter describes the program control features for the SC140 including:• Pipeline• Ins

Strona 93

5-2 SC140 DSP Core Reference ManualPipelineTo support parallel execution, the core uses a variable length execution set (VLES) architecture with a sta

Strona 94

PipelineSC140 DSP Core Reference Manual 5-3Table 5-1 shows a typical pipeline flow. For the machine to advance to the next instruction cycle, all of t

Strona 95

5-4 SC140 DSP Core Reference ManualPipeline5.1.1.1 Instruction Pre-Fetch and FetchThe first two stages of the pipeline are the pre-fetch and fetch s

Strona 96

Instruction GroupingSC140 DSP Core Reference Manual 5-55.1.1.4 ExecutionDuring the execution stage, all DALU arithmetic calculations are performed b

Strona 97

5-6 SC140 DSP Core Reference ManualInstruction GroupingIn the execution set described above, six SC140 instructions are grouped together. When execute

Strona 98 - 039 32 16

Instruction GroupingSC140 DSP Core Reference Manual 5-7Prefix grouping can group together any instructions that have available execution units. Howeve

Strona 99

5-8 SC140 DSP Core Reference ManualInstruction Grouping5.2.2 Prefix TypesThe SC140 architecture supports 2 types of prefix instructions, each is used

Strona 100

Instruction GroupingSC140 DSP Core Reference Manual 5-95.2.2.2 One-Word Low Register PrefixThe One-Word Low register prefix encodes all information

Strona 101 - Control Registers

SC140 DSP Core Reference Manual xix3-1 Clearing an EMR Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Strona 102

5-10 SC140 DSP Core Reference ManualInstruction Grouping5.2.4 Prefix Selection AlgorithmThe grouping method (or encoding of prefix words) is not spec

Strona 103

Instruction GroupingSC140 DSP Core Reference Manual 5-11Figure 5-3. Low Register Prefix Selection AlgorithmYesUse a two-word prefix.NoContinueIs the

Strona 104

5-12 SC140 DSP Core Reference ManualInstruction Grouping5.2.5 Instruction Reordering Within an Execution SetThe SC140 can execute up to four DALU ins

Strona 105

Instruction GroupingSC140 DSP Core Reference Manual 5-13Example 5-3. Execution Set with Three One-word and Two Two-word InstructionsPosition 0 1 2 3

Strona 106

5-14 SC140 DSP Core Reference ManualInstruction TimingGiven the execution set in Example 5-5, the assembler adds a NOP to the object code for correct

Strona 107

Instruction TimingSC140 DSP Core Reference Manual 5-15Table 5-5 summarizes the timing of the various categories of SC140 instructions.Table 5-5. Ins

Strona 108 - Table 3-2. EMR Description

5-16 SC140 DSP Core Reference ManualInstruction Timing5.3.1.1 DALU Instruction TimingDALU instructions are the most timing-critical instructions in

Strona 109

Instruction TimingSC140 DSP Core Reference Manual 5-175.3.2 Change-Of-Flow Instruction TimingThe change-of-flow (COF) instructions include branches,

Strona 110 - 3.2 PLL and Clock Registers

5-18 SC140 DSP Core Reference ManualInstruction TimingTable 5-7. Loop Change-Of-Flow Instructions5.3.2.1 Direct, PC-Relative, and Conditional COFT

Strona 111 - Emulation and Debug (EOnCE)

Instruction TimingSC140 DSP Core Reference Manual 5-195.3.2.2 Delayed COFWhen a change-of-flow instruction is executed, the core must wait for the p

Strona 112 - Interface

SC140 DSP Core Reference ManualLICENSOR is defined as Freescale Semiconductor, Inc. LICENSOR reserves the right to makechanges without further notice

Strona 113 - EOnCE2 EOnCEn-1 EOnCEn

xx SC140 DSP Core Reference Manual7-7 Duplicate Stack Pointer Destinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-97-8 D

Strona 114

5-20 SC140 DSP Core Reference ManualInstruction Timingchange-of-flow occurs to a new execution set spread over two fetch sets, two new fetches must be

Strona 115 - Table 4-3. JTAG Scan Paths

Instruction TimingSC140 DSP Core Reference Manual 5-215.3.3 Memory Access TimingThe SC140 core executes up to one execution set per cycle. The progra

Strona 116 - CHOOSE_CLOCK_DR signal

5-22 SC140 DSP Core Reference ManualInstruction TimingThe read or write for each memory access can be mapped to the execution cycle in which they oper

Strona 117

Instruction TimingSC140 DSP Core Reference Manual 5-23cycle-by-cycle basis. Accesses issued on the same cycle may cause a contention. The cases where

Strona 118 - Bits 7-8 = 00

5-24 SC140 DSP Core Reference ManualInstruction TimingExample 5-11 shows the parallel execution of a bit mask and a pop instruction. The example disti

Strona 119

Hardware LoopsSC140 DSP Core Reference Manual 5-255.4 Hardware LoopsOne of the most important features of a DSP algorithm is efficient loop executio

Strona 120 - 4.3.1 EOnCE Signals

5-26 SC140 DSP Core Reference ManualHardware Loops5.4.1.2 Loop Counter Registers (LCn)The LCn registers are 32-bit read/write registers used to defi

Strona 121 - 4.3.3 Debug State

Hardware LoopsSC140 DSP Core Reference Manual 5-27Table 5-9 illustrates the location of these marker bits and their functionality in both short and lo

Strona 122 - 4.3.6 Software Downloading

5-28 SC140 DSP Core Reference ManualHardware Loops5.4.4 Loop NestingThe core has four hardware loops (LOOP0, LOOP1, LOOP2 and LOOP3) to execute up to

Strona 123

Hardware LoopsSC140 DSP Core Reference Manual 5-295.4.6 Loop Control InstructionsTable 5-10 lists the loop instructions.The instructions that activat

Strona 124 - 4.3.7 EOnCE Events

SC140 DSP Core Reference Manual xxi7-44 SR Write to SR Status Bit Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-267-4

Strona 125 - 4.3.8 EOnCE Actions

5-30 SC140 DSP Core Reference ManualHardware Loopsinstruction to the last address, the LPMARKA bit will be placed at LA in addition to the LPMARKB bit

Strona 126 - 4.5.1 EOnCE Controller

Hardware LoopsSC140 DSP Core Reference Manual 5-31The following is an example of a short loop in one execution set.Example 5-15. Short Loop, One Exe

Strona 127

5-32 SC140 DSP Core Reference ManualStack Support5.4.7 Loop TimingIf the loop starting address is not aligned (meaning that the first execution set i

Strona 128 - 4.5.2 Event Counter

Stack SupportSC140 DSP Core Reference Manual 5-33Memory space is required for interrupts because any task may be active when an interrupt occurs. The

Strona 129

5-34 SC140 DSP Core Reference ManualStack Support5.5.3 Stack Support InstructionsThe core provides push and pop instructions that reference the activ

Strona 130

Stack SupportSC140 DSP Core Reference Manual 5-35Table 5-13 describes the stack memory map while performing a single or a dual push access. Up to two

Strona 131

5-36 SC140 DSP Core Reference ManualStack Support5.5.5 Fast Return from SubroutinesThe SC140 supports a mechanism for speeding up the execution of th

Strona 132 - >=<

Working ModesSC140 DSP Core Reference Manual 5-375.6 Working ModesThe working mode is determined by the EXP bit in theStatus Register (SR), as shown

Strona 133 - (EDCA).”

5-38 SC140 DSP Core Reference ManualWorking Modes5.6.3 Typical Working Mode Usage ScenariosThe core changes its working modein different ways, depend

Strona 134

Working ModesSC140 DSP Core Reference Manual 5-395.6.3.2 Single-stack RTOSFigure 5-9 illustrates state transitions for a single-stack-based operati

Strona 135 - 4.5.4 Event Selector (ES)

xxii SC140 DSP Core Reference Manual7-81 Illegal use of RAS value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 136 - 4.5.5 Trace Unit

5-40 SC140 DSP Core Reference ManualWorking Modes• The EXP bit in the SR is set(if not already), thereby enabling the Exception Stack Pointer (ESP) as

Strona 137

Processing StatesSC140 DSP Core Reference Manual 5-415.7 Processing StatesThe SC140 core is always in one of the five processing states:• Execution•

Strona 138

5-42 SC140 DSP Core Reference ManualProcessing States5.7.2 Processing State TransitionsThe transitions between the states are summarized in the follo

Strona 139

Processing StatesSC140 DSP Core Reference Manual 5-43Table 5-17. Processing State Transitions 5.7.3 Execution StateThe execution state is where ins

Strona 140 - LSB part + 2

5-44 SC140 DSP Core Reference ManualProcessing States5.7.5 Debug StateThe debug state is a special core processing state in which the pipeline is sta

Strona 141 - Software

Processing StatesSC140 DSP Core Reference Manual 5-45Table 5-18. Exit Wait Processing State due to an Interrupt or NMI5.7.7 Stop Processing StateTh

Strona 142

5-46 SC140 DSP Core Reference ManualException Processing5.8 Exception ProcessingExceptions are events that interfere with the normal operation of th

Strona 143 - 4.6.2 Real-Time JTAG Access

Exception ProcessingSC140 DSP Core Reference Manual 5-47Figure 5-11 below depicts the core interface to an external interrupt controller.Figure 5-11.

Strona 144 - EOnCE Register Addressing

5-48 SC140 DSP Core Reference ManualException Processing3. The PSEQ services an exception request when ready, typically in five cycles. It may postpon

Strona 145

Exception ProcessingSC140 DSP Core Reference Manual 5-495.8.2 Return From Exception InstructionsReturn from exception should be done with dedicated R

Strona 146 - Table 4-13. ECR Description

SC140 DSP Core Reference Manual xxiiiAbout This BookThis manual provides reference information for the StarCore SC140 digital signal processor (DSP) c

Strona 147

5-50 SC140 DSP Core Reference ManualException Processing5.8.3 Maskable Interrupts5.8.3.1 Interrupt Priority Level An external maskable interrupt is

Strona 148 - Table 4-14. ESR Description

Exception ProcessingSC140 DSP Core Reference Manual 5-51If two or more exceptions are pending on the same clock cycle, the one with the higher priorit

Strona 149

5-52 SC140 DSP Core Reference ManualException Processinginstruction also occurred during this period, the ILIN bit in EMR will be set to indicate mult

Strona 150

Exception ProcessingSC140 DSP Core Reference Manual 5-535.8.6.2 Exception Mode ExecutionAn exception mode execution is performed in exactly the same

Strona 151

5-54 SC140 DSP Core Reference ManualException ProcessingThen — The execution set from the target of the exception vector is executed after ES1, and th

Strona 152

Exception ProcessingSC140 DSP Core Reference Manual 5-55Figure 5-12 provides a flow chart for Example 5-17.Figure 5-12. Flowchart for Exception Timi

Strona 153 - EOnCE Controller Registers

5-56 SC140 DSP Core Reference ManualException ProcessingThe following pipeline table shows the first case in Example 5-17. ES0 is a JMP with a minimum

Strona 154 - 4.7.6 EE Signals

SC140 DSP Core Reference Manual 6-57Chapter 6Instruction Set Accelerator Plug-InThis chapter describes the ISAP capability of the SC140 core, and how

Strona 155

6-58 SC140 DSP Core Reference ManualISAP - SC140 Schematic Connection6.2 ISAP - SC140 Schematic ConnectionThe ISAP-SC140 connection actually involve

Strona 156

ISAP - SC140 Schematic ConnectionSC140 DSP Core Reference Manual 6-596.2.2 Multiple ISAPConnection between the core and multiple ISAPs is illustrated

Strona 157

xxiv SC140 DSP Core Reference ManualAbbreviationsThe abbreviations used in this manual are listed below:Table 1. AbbreviationsAbbreviation Descript

Strona 158

6-60 SC140 DSP Core Reference ManualISAP instructions and instruction encoding6.3 ISAP instructions and instruction encodingThis section presents an

Strona 159

ISAP-core register transfersSC140 DSP Core Reference Manual 6-61However, this feature requires some assembler support (core and ISAP) when using such

Strona 160 - 4.8 Event Counter Registers

6-62 SC140 DSP Core Reference ManualImmediate Data Transfer to ISAP registersExample 6-2. ISAP-Core register transfersThe following line of code,cor

Strona 161 - TEST EXT ECNTEN ECNTWHAT

Core Assembly Syntax with an ISAPSC140 DSP Core Reference Manual 6-636.7 Core Assembly Syntax with an ISAPThis section describes aspects of the core

Strona 162

6-64 SC140 DSP Core Reference ManualCore Assembly Syntax with an ISAP3rd - abs d0 = a core instructionThe syntax defines that the string between the b

Strona 163 - 4.8.4 EC Signals

Core Assembly Syntax with an ISAPSC140 DSP Core Reference Manual 6-65Example 6-5. Multiple ISAP coding Two VLES lines that use an explicit ISAP ID s

Strona 164 - Registers

6-66 SC140 DSP Core Reference ManualCore Assembly Syntax with an ISAPThis is similar example to that shown in Section 6.7.1, “Identification of ISAP i

Strona 165

Programming RulesSC140 DSP Core Reference Manual 6-67line 1: The ift (if true) prefix instruction indicates that the core MAC instructions will be exe

Strona 166

6-68 SC140 DSP Core Reference ManualProgramming Rules6.8.2 Grouping rules for explicit ISAP instructionsG.G.2: up to 8 instruction words per VLESG.G.

Strona 167 - EDCAi_REFB)

Programming RulesSC140 DSP Core Reference Manual 6-696.8.4 Sequencing rules for T bit updateThe ISAP has the ability to change the T bit as a destina

Strona 168 - AWS EDCDEN CCS ATS

SC140 DSP Core Reference Manual xxvISR Interrupt service routineJTAG Joint test action groupLA Last address LCn Loop counter register nLn Limit tag bi

Strona 169

6-70 SC140 DSP Core Reference ManualProgramming Rules

Strona 170

SC140 DSP Core Reference Manual 7-1Chapter 7Programming RulesThe SC140 has programming rules for correct construction and execution of assembly langua

Strona 171 - Event Selector (ES) Registers

7-2 SC140 DSP Core Reference ManualVLES Grouping Semantics• All instructions in a VLES execute in parallel. This means:— The assembly source order of

Strona 172 - RESET 0 0 0 0 0 0 0 0

Programming Rule NotationSC140 DSP Core Reference Manual 7-37.3 SC140 Pipeline ExposureThe SC140 has no hardware interlocks, so the pipeline is full

Strona 173

7-4 SC140 DSP Core Reference ManualProgramming Rule Notation7.4.2 Sequencing RulesSequencing rules enforce the VLES sequencing semantics by specifyin

Strona 174 - (ESEL_ETB)

Programming Rule NotationSC140 DSP Core Reference Manual 7-57.4.3.2 B Register AliasingThe B0-7 base registers are the same registers as the R8-15 a

Strona 175 - 4.11 Trace Unit Registers

7-6 SC140 DSP Core Reference ManualProgramming Rule Notation7.4.7 AGU Arithmetic Instructions“AGU arithmetic instructions” are those instructions tha

Strona 176 - + +- - +

Static Programming RulesSC140 DSP Core Reference Manual 7-77.4.10 Hardware LoopsThe loop count “LCn” and start address “SAn” registers are described

Strona 177 - RESET 0 0 0 0 0 0 0 0 0

7-8 SC140 DSP Core Reference ManualStatic Programming Rules• The SAn register contains the starting address of the first VLES of long loop n.These ass

Strona 178

Static Programming RulesSC140 DSP Core Reference Manual 7-9Rule G.G.4Instructions grouped in a VLES cannot write to the same register or affect the sa

Strona 179 - Trace Unit Registers

xxvi SC140 DSP Core Reference ManualRevision HistoryRAS Return address registerRTOS Real-time operating systemSAn Start address register nSF Signed fr

Strona 180

7-10 SC140 DSP Core Reference ManualStatic Programming RulesExample 7-8 Duplicate Register Destinationsmove.w #$1234,d0.h move.w #$5678,d0.l ;not a

Strona 181 - Program Control

Static Programming RulesSC140 DSP Core Reference Manual 7-11Example 7-12 Mutually Exclusive Register Destination Exceptionift add #1,d0 iff add #2,

Strona 182 - Pipeline

7-12 SC140 DSP Core Reference ManualStatic Programming RulesRule G.P.1Up to two extension words can be grouped in a VLES. This means:• A three-word in

Strona 183 - Table 5-1. Pipeline Example

Static Programming RulesSC140 DSP Core Reference Manual 7-13Rule G.P.3The following instructions in each line are mutually exclusive, and cannot be gr

Strona 184 - 5.1.1.3 Address Generation

7-14 SC140 DSP Core Reference ManualStatic Programming RulesExample 7-20. Data Source Use of Nn and Mn Registersmove.l n0,d0 move.l n0,d1 ;not allow

Strona 185 - 5.2 Instruction Grouping

Static Programming RulesSC140 DSP Core Reference Manual 7-15Rule G.P.8 It is not allowed to group AGU instructions that use or update a data register

Strona 186 - 5.2.1 Grouping Types

7-16 SC140 DSP Core Reference ManualStatic Programming Rules7.5.4 AGU RulesRule A.1At least two cycles are required between when an instruction write

Strona 187 - 5.2.1.2 Prefix Grouping

Static Programming RulesSC140 DSP Core Reference Manual 7-17Rule A.2At least one cycle is required between a MOVE-like instruction writing to an addre

Strona 188 - 5.2.2 Prefix Types

7-18 SC140 DSP Core Reference ManualStatic Programming RulesIf the VLES having a JT/JF or TRAP instruction is at the end of a program section, the fol

Strona 189 - 5.2.3 Conditional Execution

Static Programming RulesSC140 DSP Core Reference Manual 7-19Rule A.7A RTSTK or RTSTKD instruction cannot be grouped in a VLES with a MOVE-like instruc

Strona 190

SC140 DSP Core Reference Manual 1-1Chapter 1IntroductionThe StarCore SC140 digital signal processing (DSP) core, a new member of the SC100 architectur

Strona 191 - Instruction Grouping

7-20 SC140 DSP Core Reference ManualStatic Programming RulesRule D.2Core or ISAP instructions that read or write the SR register, affect status bits i

Strona 192

Static Programming RulesSC140 DSP Core Reference Manual 7-21Rule D.4Instructions that read the PC register (implicitly or explicitly) as a source oper

Strona 193 - MOVE #xxxx,D0 MOVE #xxxx,D1

7-22 SC140 DSP Core Reference ManualStatic Programming RulesRule D.8A MOVE-like instruction that reads the SR register is not allowed in the delay slo

Strona 194 - 5.3 Instruction Timing

Static Programming RulesSC140 DSP Core Reference Manual 7-23Rule T.2.a At least one VLES is required between an ISAP instruction that affects the T st

Strona 195 - — MOVE.L d0,(SP + $100)

7-24 SC140 DSP Core Reference ManualStatic Programming RulesThis rule applies to instructions that use the stack pointer (implicitly or explicitly), s

Strona 196 - Instruction Timing

Static Programming RulesSC140 DSP Core Reference Manual 7-25Example 7-43. SR Write to SR Status Bit Usebmclr #$ffff,sr.h ;change SRmove.w #$1234,d0

Strona 197 - MOVE.W (R0+N0),D0 ;delay slot

7-26 SC140 DSP Core Reference ManualStatic Programming RulesRule SR.3At least one VLES is required between a MOVE-like instruction that writes the SR

Strona 198

Static Programming RulesSC140 DSP Core Reference Manual 7-27Example 7-45. DOVF Update to SR Read or Writebmset #$4,emr.lmove.l emr,d2 ;allowedmove.l

Strona 199 - 5.3.2.2 Delayed COF

7-28 SC140 DSP Core Reference ManualStatic Programming RulesRule SR.7The following instructions that affect status bits in SR cannot be grouped in a V

Strona 200

Static Programming RulesSC140 DSP Core Reference Manual 7-29Rule L.N.2A loop body n must be surrounded by the LOOPSTARTn and LOOPENDn assembly directi

Strona 201 - 5.3.3 Memory Access Timing

1-2 SC140 DSP Core Reference ManualArchitectural Differentiation1.2 Architectural DifferentiationThe SC140architecture differentiates itself in the

Strona 202

7-30 SC140 DSP Core Reference ManualStatic Programming RulesExample 7-51. DOENn instruction following DOENSHn Instructiondoensh0 #3doen0 #3 dosetup0

Strona 203

Static Programming RulesSC140 DSP Core Reference Manual 7-317.5.8 Loop LA RulesRule L.L.1The following instructions are not allowed at LA-1 or LA of

Strona 204

7-32 SC140 DSP Core Reference ManualStatic Programming RulesRule L.L.3The following instructions are not allowed in a short loop:• COF instructions• S

Strona 205 - 5.4 Hardware Loops

Static Programming RulesSC140 DSP Core Reference Manual 7-33Rule L.L.5A MOVE-like instruction that writes the SR register is not allowed at LA-4, LA-3

Strona 206 - Hardware Loops

7-34 SC140 DSP Core Reference ManualStatic Programming RulesRule L.D.3The minimum number of VLES between the following instructions that write a LCn r

Strona 207

Static Programming RulesSC140 DSP Core Reference Manual 7-35Example 7-62. SAn Write at the End of Long Loop nloopstart0...doen1 #5...loopstart1...do

Strona 208 - 5.4.4 Loop Nesting

7-36 SC140 DSP Core Reference ManualStatic Programming Rules7.5.10 Loop COF RulesRule L.C.1A COF instruction cannot have a COF destination that is LA

Strona 209

Static Programming RulesSC140 DSP Core Reference Manual 7-37Rule L.C.5A Bc or Jc instruction is not allowed at LA-3 of a long loop.Example 7-68. Bc/

Strona 210 - Example 5-12. Long Loop

7-38 SC140 DSP Core Reference ManualStatic Programming RulesRule L.C.7A loop COF instruction (BREAK, CONT, CONTD, or SKIPLS) in an enabled loop n cann

Strona 211

Static Programming RulesSC140 DSP Core Reference Manual 7-39Rule L.C.9A loop COF instruction (BREAK, CONT, CONTD, or SKIPLS) cannot have a COF destina

Strona 212 - 5.5 Stack Support

Core Architecture FeaturesSC140 DSP Core Reference Manual 1-31.3 Core Architecture FeaturesThe SC140 core consists of the following:• Data arithmeti

Strona 213

7-40 SC140 DSP Core Reference ManualStatic Programming RulesRule L.C.11A delayed COF instruction is not allowed at LA-3 of a long loop.Example 7-72.

Strona 214

Dynamic Programming RulesSC140 DSP Core Reference Manual 7-41Rule L.G.5A loop having one or two VLES must be enabled by a DOENSHn instruction. A loop

Strona 215

7-42 SC140 DSP Core Reference ManualDynamic Programming Rules7.6.2 Memory Access RulesRule A.5Only one memory write instruction to the same location

Strona 216 - Stack Support

Dynamic Programming RulesSC140 DSP Core Reference Manual 7-437.6.3 RAS RulesRule J.4Upon execution of the RTS or RTSD instruction, if the RAS is vali

Strona 217 - 5.6 Working Modes

7-44 SC140 DSP Core Reference ManualDynamic Programming Rules7.6.5 Rule Detection Across COF BoundariesSome sequencing rules may be violated across C

Strona 218 - 5.6.3.1 Dual-stack RTOS

Dynamic Programming RulesSC140 DSP Core Reference Manual 7-457.6.5.2 VLES-Based COF RulesVLES-based COF rules are detected like static rules, except

Strona 219 - Exception Mode

7-46 SC140 DSP Core Reference ManualDynamic Programming Rules7.6.6 Rule Detection Across Exception BoundariesThe SC140 can take an exception at most

Strona 220 - Working Modes

Dynamic Programming RulesSC140 DSP Core Reference Manual 7-47Rule A.1aAGU instructions that read the R0-R7 registers with an address register update o

Strona 221 - 5.7 Processing States

7-48 SC140 DSP Core Reference ManualProgramming Guidelines7.7 Programming GuidelinesThe rules in this section cannot be detected within the visibili

Strona 222

Programming GuidelinesSC140 DSP Core Reference Manual 7-49Rule J.5A program section that ends near a border of reserved memory must end with a non-con

Strona 223 - 5.7.4 Reset Processing State

SC140 DSP Core Reference Manual iiiAbout This BookAudience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 224 - 5.7.6 Wait Processing State

1-4 SC140 DSP Core Reference ManualCore Architecture Features1.3.1 Typical System-On-Chip ConfigurationThe SC140 is a high-performance general-purpos

Strona 225 - 5.7.7 Stop Processing State

7-50 SC140 DSP Core Reference ManualProgramming Guidelines• Observe the immediate operand ranges as specified within the braces { } in Appendix A.2, “

Strona 226 - 5.8 Exception Processing

LPMARK RulesSC140 DSP Core Reference Manual 7-51• Do not write explicit binary encodings using DC (declare constant) assembler directives. It cannot b

Strona 227

7-52 SC140 DSP Core Reference ManualLPMARK Rules7.8.2 Static Programming RulesThis section defines new SC140 LPMARK programming rules for correct LP

Strona 228 - Exception Processing

LPMARK RulesSC140 DSP Core Reference Manual 7-537.8.3.1.2 Active SAn Register“Active SAn register” is defined as the SAn register where n = the acti

Strona 229 - Priority

7-54 SC140 DSP Core Reference ManualLPMARK RulesLPMARK Rule L.L.2A DOENn or MOVE-like instruction that writes the active LCn register is not allowed a

Strona 230 - 5.8.5 Internal Exceptions

LPMARK RulesSC140 DSP Core Reference Manual 7-55LPMARK Rule L.L.6A MOVE-like instruction that writes the SR register is not allowed at LPA-2, LPA-1, L

Strona 231 - 5.8.5.1 Illegal Exception

7-56 SC140 DSP Core Reference ManualLPMARK RulesExample 7-97. Active LCn Read at the Start of a Loopdoensh0 #$10push lc0 ;not allowedinc d0 {lpma

Strona 232 - 5.8.5.4 Debug Exception

LPMARK RulesSC140 DSP Core Reference Manual 7-57Example 7-98. COF Instructions at LPB of a Long Loop dosetup1 label1 doen1 #n2 move.l #mem_l1,r1 mo

Strona 233 - 5.8.7 Exception Timing

7-58 SC140 DSP Core Reference ManualLPMARK RulesLPMARK Rule L.C.9A loop COF instruction (BREAK, CONT, CONTD, or SKIPLS) cannot have a COF destination

Strona 234

LPMARK RulesSC140 DSP Core Reference Manual 7-59LPMARK Rule L.C.11 + L.C.12A delayed COF instruction is not allowed at LPA-1 or LPB-1 of a loop.Exampl

Strona 235

Core Architecture FeaturesSC140 DSP Core Reference Manual 1-5Figure 1-1. Block Diagram of a Typical SoC Configuration with the SC140 Core1.3.2 Vari

Strona 236

7-60 SC140 DSP Core Reference ManualNOP DefinitionLPMARK Rule L.C.1A COF instruction cannot have a COF destination that is LPB+1 or LPB+2 of a long lo

Strona 237 - Chapter 6

NOP DefinitionSC140 DSP Core Reference Manual 7-615. Source syntax order in a VLES generally has no effect on the baseline size, as parallel semantics

Strona 238 - 6.2.1 Single ISAP

7-62 SC140 DSP Core Reference ManualNOP Definition[INC D0NOP NOP]is encoded as:[1W prefix, INC, NOP]and[NOPNOP INC D0]is encoded as:[1W prefix, INC, N

Strona 239 - 6.2.2 Multiple ISAP

NOP DefinitionSC140 DSP Core Reference Manual 7-63[2W IFT-IFF prefix, INC, CLR, NOP]and[IFF CLR D8IFT INC D1 IFT NOP]is encoded (ignoring the NOP subg

Strona 240 - 6.4 ISAP Memory Access

7-64 SC140 DSP Core Reference ManualNOP Definition

Strona 241 - ISAP-core register transfers

SC140 DSP Core Reference Manual A-1Appendix ASC140 DSP Core Instruction SetA.1 IntroductionThis appendix describes in detail the SC140 instruction s

Strona 242

A-2 SC140 DSP Core Reference ManualDSP Core Instruction SetA.1.1 ConventionsTable A-1 lists the conventions used in this appendix to define the instr

Strona 243

DSP Core Instruction SetSC140 DSP Core Reference Manual A-3Table A-2 describes the operators and operations syntax for each instruction.Table A-3 desc

Strona 244

A-4 SC140 DSP Core Reference ManualDSP Core Instruction SetTable A-4 lists special syntax used in this appendix to define an instruction’s assembler s

Strona 245

DSP Core Instruction SetSC140 DSP Core Reference Manual A-5A.1.2 Addressing Mode NotationTable A-5 and Table A-6 define the fields in the address off

Strona 246 - 6.7.3 Conditional Execution

1-6 SC140 DSP Core Reference ManualCore Architecture Features

Strona 247 - 6.8 Programming Rules

A-6 SC140 DSP Core Reference ManualDSP Core Instruction SetA.1.3 Data Representation in Memory for the ExamplesFor the examples in this appendix, the

Strona 248 - Programming Rules

DSP Core Instruction SetSC140 DSP Core Reference Manual A-7A.1.5 Prefix Word EncodingEach execution set can be associated with a one-word (low or hig

Strona 249

A-8 SC140 DSP Core Reference ManualDSP Core Instruction SetA.1.5.1 One-Word Low Register PrefixIncludes information on grouping, looping, and IFc (c

Strona 250

DSP Core Instruction SetSC140 DSP Core Reference Manual A-9Example:skipl _last ;(there is a skipl to _last in the program)...execution_setexec

Strona 251 - Chapter 7

A-10 SC140 DSP Core Reference ManualDSP Core Instruction Set Example:lpmarkB;(set LA – 2);(set LA – 1)_last ;(set LA)In the case of a loop with two ex

Strona 252 - VLES Grouping Semantics

DSP Core Instruction SetSC140 DSP Core Reference Manual A-11Hh: High register expansion encoding for AGU execution unit 0. This includes all AGU and B

Strona 253 - 7.3 SC140 Pipeline Exposure

A-12 SC140 DSP Core Reference ManualDSP Core Instruction SetA.1.6 Instruction TypesThe SC140 instruction set is organized into the following instruct

Strona 254 - 7.4.3 Register Read/Write

DSP Core Instruction SetSC140 DSP Core Reference Manual A-13Table A-7. DALU Arithmetic Instructions (MAC)Instruction DescriptionABS Absolute valueAD

Strona 255 - 7.4.6 MOVE-like Instructions

A-14 SC140 DSP Core Reference ManualDSP Core Instruction SetMPYR Multiply signed fractions and roundMPYSU Multiply signed fraction and unsigned fracti

Strona 256 - 7.4.9.1 Delay Slot

DSP Core Instruction SetSC140 DSP Core Reference Manual A-15ROL Rotate one bit left through the carry bitROR Rotate one bit right through the carry bi

Strona 257 - 7.4.10 Hardware Loops

SC140 DSP Core Reference Manual 2-1Chapter 2Core ArchitectureThis chapter provides an overview of the SC140 core architecture. It describes the main f

Strona 258 - 7.5.2 General Grouping Rules

A-16 SC140 DSP Core Reference ManualDSP Core Instruction SetTable A-10. AGU Move InstructionsInstruction DescriptionMOVE.2F Move two fractional word

Strona 259 - Rule G.G.4

DSP Core Instruction SetSC140 DSP Core Reference Manual A-17Table A-12. AGU Bit-Mask Instructions (BMU)Instruction DescriptionAND Logical AND on a 1

Strona 260 - Rule G.G.4 Exceptions

A-18 SC140 DSP Core Reference ManualDSP Core Instruction SetRTED Return from exception (delayed)RTS Return from subroutineRTSD Return from subroutine

Strona 261 - 7.5.3 Prefix Grouping Rules

DSP Core Instruction SetSC140 DSP Core Reference Manual A-19A.2 InstructionsThe following pages list all of the SC140 instructions and provide speci

Strona 262 - Rule G.P.1

A-20 SC140 DSP Core Reference ManualABSAABS Absolute Value (DALU) ABSDescriptionStatus and Conditions that Affect InstructionStatus and Conditions Cha

Strona 263 - Rule G.P.5

ABSSC140 DSP Core Reference Manual A-21Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDn FFF Single Sour

Strona 264 - Rule G.P.7

A-22 SC140 DSP Core Reference ManualADCADC Add Long With Carry (DALU) ADCDescriptionStatus and Conditions that Affect InstructionStatus and Conditions

Strona 265 - Rule G.P.9

ADCSC140 DSP Core Reference Manual A-23Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDc,Dd ee Data Regi

Strona 266 - 7.5.4 AGU Rules

A-24 SC140 DSP Core Reference ManualADDADD Add (DALU) ADDDescriptionThese operations add two source operands and store the result in a destination dat

Strona 267 - Rule A.3

ADDSC140 DSP Core Reference Manual A-25Example 2add d1,d0,d2The L2 bit is set from the 32-bit overflow. Note that the extension bits are in use in the

Strona 268 - Rule A.4

2-2 SC140 DSP Core Reference ManualArchitecture Overview.Figure 2-1. Block Diagram of the SC140 Core2.1.1 Data Arithmetic Logic Unit (DALU)The DALU

Strona 269 - 7.5.5 Delayed COF Rules

A-26 SC140 DSP Core Reference ManualADDInstruction FieldsDa,Db JJJJJ Data Register PairsDa,Da jj Data Register PairsDn FFF Single Source/Destination D

Strona 270 - Rule D.3

ADD2SC140 DSP Core Reference Manual A-27ADD2 Add Two 16-Bit Values (DALU) ADD2DescriptionStatus and Conditions that Affect InstructionNone.Status and

Strona 271 - Rule D.6

A-28 SC140 DSP Core Reference ManualADD2Instruction Formats and OpcodesInstruction FieldsDn FFF Single Source/Destination Data RegisterDa JJJ Single S

Strona 272 - 7.5.6 Status Bit Rules

ADDASC140 DSP Core Reference Manual A-29ADDA Add (AGU) ADDADescriptionThese operations add an immediate signed 16-bit integer to the contents of a sou

Strona 273 - Rule SR.2

A-30 SC140 DSP Core Reference ManualADDAExample 1adda r0,r1Example 2move.l #$8,mctl ;assigns m0 to r0, modulo arithmeticmove.l #$10,m0 ;puts modulo 16

Strona 274 - Static Programming Rules

ADDASC140 DSP Core Reference Manual A-31rx rrrr AGU Source RegisterRx RRRR AGU Source/Destination Register0000 N0 0100 — 1000 R0 1100 R40001 N1 0101 —

Strona 275

A-32 SC140 DSP Core Reference ManualADDL1AADDL1A Add With One-Bit Arithmetic Shift Left ADDL1A of Source Operand (AGU)DescriptionStatus and Conditions

Strona 276 - Rule SR.4

ADDL1ASC140 DSP Core Reference Manual A-33Instruction Formats and OpcodesInstruction Fieldsrx rrrr AGU Source RegisterRx RRRR AGU Source/Destination R

Strona 277 - Rule SR.4a

A-34 SC140 DSP Core Reference ManualADDL2AADDL2A Add With Two-Bit Arithmetic Shift Left ADDL2Aof Source Operand (AGU)DescriptionStatus and Conditions

Strona 278 - 7.5.7 Loop Nesting Rules

ADDL2ASC140 DSP Core Reference Manual A-35Instruction Formats and OpcodesInstruction Fieldsrx rrrr AGU Source RegisterRx RRRR AGU Source/Destination R

Strona 279 - Rule L.N.3

Architecture OverviewSC140 DSP Core Reference Manual 2-3• MOVE.2L loads or stores two long words (64-bit).2.1.1.1 Data Register FileThe DALU registe

Strona 280

A-36 SC140 DSP Core Reference ManualADDNC.WADDNC.W Add Without Changing ADDNC.W the Carry Bit (DALU)DescriptionStatus and Conditions that Affect Instr

Strona 281 - 7.5.8 Loop LA Rules

ADDNC.WSC140 DSP Core Reference Manual A-37Instruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/Des

Strona 282 - Rule L.L.4

A-38 SC140 DSP Core Reference ManualADRADR Add and Round (DALU) ADRDescriptionStatus and Conditions that Affect InstructionStatus and Conditions Chang

Strona 283 - 7.5.9 Loop Sequencing Rules

ADRSC140 DSP Core Reference Manual A-39Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDa JJJ Single Sour

Strona 284 - Rule L.D.6

A-40 SC140 DSP Core Reference ManualANDAND Bitwise AND (DALU) ANDDescriptionThese operations perform a "logical and" between the two source

Strona 285 - Rule L.D.9

ANDSC140 DSP Core Reference Manual A-41Status and Conditions Changed by InstructionExample 1and d2,d1Example 2and #$0ff2e,d2,d1Example 3and #$ff2e0000

Strona 286 - 7.5.10 Loop COF Rules

A-42 SC140 DSP Core Reference ManualANDInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/Destina

Strona 287 - Rule L.C.5

ANDSC140 DSP Core Reference Manual A-43AND Bitwise AND with 16-Bit Immediate (BMU) ANDDescriptionStatus and Conditions that Affect InstructionNone.Sta

Strona 288 - Rule L.C.7

A-44 SC140 DSP Core Reference ManualANDInstruction Formats and OpcodesInstruction FieldsDR HHHH Data/Address RegisterInstruction Words Cycles Type Opc

Strona 289 - Rule L.C.10

AND.WSC140 DSP Core Reference Manual A-45AND.W Bitwise AND with 16-Bit Immediate (BMU) AND.WDescriptionThese operations read from memory, modify the r

Strona 290 - 7.5.11 General Looping Rules

2-4 SC140 DSP Core Reference ManualArchitecture OverviewThe AGU in the SC140 core has two address arithmetic units (AAU) to allow two address generati

Strona 291 - 7.6.1 AGU Dynamic Rules

A-46 SC140 DSP Core Reference ManualAND.WStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionNone.Exampleand.w #$

Strona 292 - 7.6.2 Memory Access Rules

AND.WSC140 DSP Core Reference Manual A-47Instruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcode1

Strona 293 - 7.6.4 Loop Rules

A-48 SC140 DSP Core Reference ManualASLASL Arithmetic Shift Left ASLBy One Bit (DALU)DescriptionStatus and Conditions that Affect InstructionStatus an

Strona 294 - Dynamic Programming Rules

ASLSC140 DSP Core Reference Manual A-49Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDa,Db JJJJJ Data R

Strona 295

A-50 SC140 DSP Core Reference ManualASL2AASL2A Arithmetic Shift Left ASL2ABy Two Bits (AGU)DescriptionStatus and Conditions that Affect InstructionSta

Strona 296 - Rule SR.6

ASLASC140 DSP Core Reference Manual A-51ASLA Arithmetic Shift Left ASLABy One Bit (AGU)DescriptionStatus and Conditions that Affect InstructionStatus

Strona 297 - Rule A.1a

A-52 SC140 DSP Core Reference ManualASLLASLL Multiple-Bit Arithmetic Shift Left (DALU) ASLLDescriptionThese operations shift the contents of Dn by the

Strona 298 - 7.7 Programming Guidelines

ASLLSC140 DSP Core Reference Manual A-53Status and Conditions Changed by InstructionExample 1asll d0,d1Example 2asll d0,d1Register Address Bit Name De

Strona 299 - Rule L.N.5

A-54 SC140 DSP Core Reference ManualASLLInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDa JJJ Single Sou

Strona 300 - Programming Guidelines

ASLWSC140 DSP Core Reference Manual A-55ASLW Word Arithmetic Shift Left 16 Bits (DALU) ASLWDescriptionStatus and Conditions that Affect InstructionNon

Strona 301 - 7.8 LPMARK Rules

Architecture OverviewSC140 DSP Core Reference Manual 2-52.1.3 Program Sequencer Unit (PSEQ)The PSEQ performs instruction fetch, instruction dispatch,

Strona 302 - 7.8.3.1 LPMARK Notation

A-56 SC140 DSP Core Reference ManualASLWInstruction Formats and OpcodesInstruction FieldsDn FFF Single Source/Destination Data RegisterDa JJJ Single S

Strona 303 - 7.8.3.3 Loop LA Rules

ASRSC140 DSP Core Reference Manual A-57ASR Arithmetic Shift Right ASRBy One Bit (DALU)DescriptionStatus and Conditions that Affect InstructionStatus

Strona 304 - LPMARK Rule L.L.5

A-58 SC140 DSP Core Reference ManualASRInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDa JJJ Single Sou

Strona 305 - LPMARK Rule L.D.8 + L.D.9

ASRASC140 DSP Core Reference Manual A-59ASRA Arithmetic Shift Right ASRA By One Bit (AGU)DescriptionStatus and Conditions that Affect InstructionStatu

Strona 306 - 7.8.3.5 Loop COF Rules

A-60 SC140 DSP Core Reference ManualASRRASRR Multiple-Bit Arithmetic Shift Right (DALU) ASRRDescriptionThis operation shifts the contents of Dn by N b

Strona 307 - LPMARK Rule L.C.3 + L.C.5

ASRRSC140 DSP Core Reference Manual A-61Status and Conditions Changed by InstructionExample 1asrr #$3,d5Example 2asrr d3,d5Register Address Bit Name D

Strona 308 - LPMARK Rule L.C.10

A-62 SC140 DSP Core Reference ManualASRRSInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDa JJJ Single So

Strona 309 - LPMARK Rule SR.6

ASRWSC140 DSP Core Reference Manual A-63ASRW Word Arithmetic Shift Right 16 Bits (DALU) ASRWDescriptionStatus and Conditions that Affect InstructionNo

Strona 310 - 7.9 NOP Definition

A-64 SC140 DSP Core Reference ManualASRWInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/Destin

Strona 311 - 7.9.1 Grouping Examples

BFSC140 DSP Core Reference Manual A-65BBF Branch If False (AGU) BFDescriptionStatus and Conditions that Affect InstructionStatus and Conditions Change

Strona 312 - NOP Definition

2-6 SC140 DSP Core Reference ManualDALU2.2 DALUThis section describes the architecture and operation of the DALU, the block where most of the arithm

Strona 313 - [IFT CLR D0IFT NOP IFT NOP]

A-66 SC140 DSP Core Reference ManualBFInstruction Formats and OpcodesInstruction Fieldsd2$0000 $0000pc$0006 $0016Instruction WordsCycles1Note 1: If th

Strona 314

MOVES.4FSC140 DSP Core Reference Manual A-67BFD Branch If False Using a Delay Slot (AGU) BFDDescriptionStatus and Conditions that Affect InstructionSt

Strona 315 - Appendix A

A-68 SC140 DSP Core Reference ManualMOVES.4FInstruction Formats and OpcodesInstruction Fieldsd1$0000 $002Ad2$0000 $0000d4$0000 $001Apc$0006 $0016Instr

Strona 316 - A.1.1 Conventions

BMCHGSC140 DSP Core Reference Manual A-69BMCHG Bit-Masked Change a BMCHG16-Bit Operand (BMU)DescriptionThese operations use an unsigned 16-bit immedia

Strona 317 - M0-M3 Modulo registers

A-70 SC140 DSP Core Reference ManualBMCHG.WStatus and Conditions Changed by InstructionExamplebmchg #$f0f0,d1.hInstruction Formats and OpcodesInstruct

Strona 318 - Table A-4. Assembler Syntax

BMCHG.WSC140 DSP Core Reference Manual A-71#u16 iiiiiiiiiiiiiiii 16-bit unsigned immediate data

Strona 319

A-72 SC140 DSP Core Reference ManualBMCHG.WBMCHG.W Bit-Masked Change a BMCHG.W16-Bit Operand in Memory (BMU)DescriptionThese operations use an unsigne

Strona 320 - A.1.4 Encoding Notation

BMCHG.WSC140 DSP Core Reference Manual A-73Examplebmchg.w #$661f,<$800cInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterRegi

Strona 321 - A.1.5 Prefix Word Encoding

A-74 SC140 DSP Core Reference ManualBMCHG.Ws16 AAAAAAAAAAAAAAAA 16-bit signed SP address offset

Strona 322 - Instruction Fields

BMCLR;Instruction Set:BMCLRSC140 DSP Core Reference Manual A-75BMCLR Bit-Masked Clear a 16-Bit Operand (BMU) BMCLRDescriptionThese operations use an u

Strona 323 - A.1.5.2 Two-Word Prefix

DALUSC140 DSP Core Reference Manual 2-7The DALU programming model is shown in Table 2-1. Register D0 refers to the entire 40-bit register, whereas D0.

Strona 324 - DSP Core Instruction Set

A-76 SC140 DSP Core Reference ManualBMCLRStatus and Conditions Changed by InstructionExamplebmclr #$b646,d7.lInstruction Formats and OpcodesInstructio

Strona 325

BMCLRSC140 DSP Core Reference Manual A-77#u16 iiiiiiiiiiiiiiii 16-bit unsigned immediate data

Strona 326 - A.1.6 Instruction Types

A-78 SC140 DSP Core Reference ManualBMCLR.WBMCLR.W Bit-Masked Clear a BMCLR.W16-Bit Operand in Memory (BMU)DescriptionThese operations use an unsigned

Strona 327

BMCLR.WSC140 DSP Core Reference Manual A-79Instruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcod

Strona 328

A-80 SC140 DSP Core Reference ManualBMSETBMSET Bit-Masked Set a 16-Bit Operand (BMU) BMSETDescriptionThese operations use an unsigned 16-bit immediate

Strona 329

BMSETSC140 DSP Core Reference Manual A-81bmset #$2436,d1.lInstruction Formats and OpcodesInstruction FieldsC1 CCC Control RegistersDR HHHH Data/Addres

Strona 330

A-82 SC140 DSP Core Reference ManualBMSETBMSET.W Bit-Masked Set a BMSET.W16-Bit Operand in Memory (BMU)DescriptionThese operations use an unsigned 16-

Strona 331

BMSETSC140 DSP Core Reference Manual A-83Examplebmset.w #$f111,<$800cInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterRegist

Strona 332

A-84 SC140 DSP Core Reference ManualBMTSETBMTSET Bit-Masked Test and Set a BMTSET16-Bit Operand (BMU)DescriptionThese operations use an unsigned 16-bi

Strona 333 - A.2 Instructions

BMTSETSC140 DSP Core Reference Manual A-85Example 2bmtset #$4238,d4.lInstruction Formats and OpcodesInstruction FieldsDR HHHH Data/Address RegisterReg

Strona 334 - ABS Absolute Value (DALU) ABS

iv SC140 DSP Core Reference Manual2.2.2.1 Data Representation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-172.2

Strona 335

2-8 SC140 DSP Core Reference ManualDALU2.2.1.1 Data Registers (D0–D15)In this section, the D0–D15 data registers are referred to as Dn. They can be

Strona 336

A-86 SC140 DSP Core Reference ManualBMTSET.WBMTSET.W Bit-Masked Test and Set a BMTSET.W16-Bit Operand in Memory (BMU)DescriptionThese operations use a

Strona 337

BMTSET.WSC140 DSP Core Reference Manual A-87Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplebmtset.w #

Strona 338 - ADD Add (DALU) ADD

A-88 SC140 DSP Core Reference ManualBMTSET.WInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opco

Strona 339 - Example 2

BMTSTCSC140 DSP Core Reference Manual A-89BMTSTC Bit-Masked Test a BMTSTC16-Bit Operand If Clear (BMU)DescriptionThese operations use an unsigned 16-b

Strona 340

A-90 SC140 DSP Core Reference ManualBMTSTCInstruction Formats and OpcodesInstruction FieldsC1 CCC Control RegistersDR HHHH Data/Address RegisterL7:D7$

Strona 341

BMTSTC.WSC140 DSP Core Reference Manual A-91BMTSTC.W Bit-Masked Test a BMTSTC.W16-Bit Operand in Memory If Clear (BMU)DescriptionThese operations use

Strona 342

A-92 SC140 DSP Core Reference ManualBMTSTC.WStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplebmtstc.w #

Strona 343 - ADDA Add (AGU) ADDA

BMTSTC.WSC140 DSP Core Reference Manual A-93Instruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opco

Strona 344 - Example 1

A-94 SC140 DSP Core Reference ManualBMTSTSBMTSTS Bit-Masked Test a BMTSTS16-Bit Operand If Set (BMU)DescriptionThese operations use an unsigned 16-bit

Strona 345

BMTSTSSC140 DSP Core Reference Manual A-95Examplebmtsts #$24a6,d7.hInstruction Formats and OpcodesInstruction FieldsC1 CCC Control RegistersDR HHHH Da

Strona 346

DALUSC140 DSP Core Reference Manual 2-9A special case of the MOVE.L instruction is used for reading from or writing to the EXT portion of a data regis

Strona 347

A-96 SC140 DSP Core Reference ManualBMTSTS.WBMTSTS.W Bit-Masked Test a BMTSTS.W16-Bit Operand in Memory (BMU)DescriptionThese operations use an unsign

Strona 348

BMTSTS.WSC140 DSP Core Reference Manual A-97Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplebmtsts.w #

Strona 349

A-98 SC140 DSP Core Reference ManualBMTSTS.WInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opco

Strona 350 - ADDNC.W #s16,Da,Dn

BRASC140 DSP Core Reference Manual A-99BRA Branch (AGU) BRADescriptionStatus and Conditions that Affect InstructionNone.Status and Conditions Changed

Strona 351

A-100 SC140 DSP Core Reference ManualBRAExamplebra _label2 ; disassembled: bra >*+$8nopnop_label2Instruction Formats and OpcodesInstruction FieldsR

Strona 352 - ADR Add and Round (DALU) ADR

BRADSC140 DSP Core Reference Manual A-101BRAD Branch Using a Delay Slot (AGU) BRADDescriptionStatus and Conditions that Affect InstructionNone.Status

Strona 353

A-102 SC140 DSP Core Reference ManualBRADInstruction Formats and OpcodesInstruction FieldsRegister/Memory Address Before Afterlbl3 (displacement)$0000

Strona 354 - AND Bitwise AND (DALU) AND

BREAKSC140 DSP Core Reference Manual A-103BREAK Terminate the Loop and Branch BREAK to an Address (AGU)DescriptionStatus and Conditions that Affect In

Strona 355 - Example 3

A-104 SC140 DSP Core Reference ManualBREAKInstruction Formats and OpcodesInstruction FieldsInstruction Words Cycles Type Opcode15 8 7 0BREAK label 2 4

Strona 356

BSRSC140 DSP Core Reference Manual A-105BSR Branch to Subroutine (AGU) BSRDescriptionStatus and Conditions that Affect InstructionStatus and Condition

Strona 357

2-10 SC140 DSP Core Reference ManualDALU.2.2.1.2 Multiply-Accumulate (MAC) UnitThe MAC unit is the arithmetic part of the ALU containing both a mult

Strona 358

A-106 SC140 DSP Core Reference ManualBSRInstruction Formats and OpcodesInstruction FieldsInstruction Words Cycles Type Opcode15 8 7 0BSR <label 1 4

Strona 359 - Operation Assembler Syntax

BSRDSC140 DSP Core Reference Manual A-107BSRD Branch to Subroutine Using a Delay Slot (AGU) BSRDDescriptionStatus and Conditions that Affect Instructi

Strona 360

A-108 SC140 DSP Core Reference ManualBSRDInstruction Formats and OpcodesInstruction FieldsInstruction WordsCycles1Note 1: The branch uses 4 cycles min

Strona 361

BTSC140 DSP Core Reference Manual A-109BT Branch If True (AGU) BTDescriptionStatus and Conditions that Affect InstructionStatus and Conditions Changed

Strona 362 - ASL Arithmetic Shift Left ASL

A-110 SC140 DSP Core Reference ManualBTInstruction Formats and OpcodesInstruction Fieldsd2$0000 $0000pc$0006 $0016Instruction WordsCycles1Note 1: If t

Strona 363

BTDSC140 DSP Core Reference Manual A-111BTD Branch If True Using a Delay Slot (AGU) BTDDescriptionStatus and Conditions that Affect InstructionStatus

Strona 364 - ASL2A Rx

A-112 SC140 DSP Core Reference ManualBTDInstruction Formats and OpcodesInstruction Fieldsd1$0035 $002Ad2$0000 $0000d4$0000 $001Apc$0006 $0016Instructi

Strona 365 - Rx<<1 → Rx

CLBSC140 DSP Core Reference Manual A-113C-DCLB Count Leading Bits (DALU) CLBDescriptionStatus and Conditions that Affect InstructionNone.Status and Co

Strona 366

A-114 SC140 DSP Core Reference ManualCLBInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/Destin

Strona 367

CLRSC140 DSP Core Reference Manual A-115CLR Clear a Data Register (DALU) CLRDescriptionStatus and Conditions that Affect InstructionNone.Status and Co

Strona 368

DALUSC140 DSP Core Reference Manual 2-11DECEQ Decrement a data register and set T (the true bit) if zeroDECGE Decrement a data register and set T if g

Strona 369

A-116 SC140 DSP Core Reference ManualCLRInstruction FieldsDn FFF Destination Data RegisterDa JJJJJ Source Data RegisterDa jj Source Data Register000 D

Strona 370

CMPEQSC140 DSP Core Reference Manual A-117CMPEQ Compare for Equal (DALU) CMPEQDescriptionStatus and Conditions that Affect InstructionNone.Status and

Strona 371 - 01516313239 C

A-118 SC140 DSP Core Reference ManualCMPEQDn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 101 D5 111 D7Note: Th

Strona 372

CMPEQ.WSC140 DSP Core Reference Manual A-119CMPEQ.W Compare for Equal (DALU) CMPEQ.WDescriptionStatus and Conditions that Affect InstructionNone.Statu

Strona 373 - 15 8 7 0

A-120 SC140 DSP Core Reference ManualCMPEQ.WInstruction Formats and OpcodesInstruction FieldsDn FFF Single Source/Destination Data RegisterInstructio

Strona 374

CMPEQASC140 DSP Core Reference Manual A-121CMPEQA Compare for Equal (AGU) CMPEQADescriptionStatus and Conditions that Affect InstructionStatus and Con

Strona 375

A-122 SC140 DSP Core Reference ManualCMPEQAInstruction Formats and OpcodesInstruction Fieldsrx rrrr AGU Source RegisterRx RRRR AGU Source/Destination

Strona 376

CMPGTSC140 DSP Core Reference Manual A-123CMPGT Compare for Greater Than (DALU) CMPGTDescriptionStatus and Conditions that Affect InstructionNone.Stat

Strona 377

A-124 SC140 DSP Core Reference ManualCMPGTDn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 101 D5 111 D7Note: T

Strona 378

CMPGT.WSC140 DSP Core Reference Manual A-125CMPGT.W Compare for Greater Than CMPGT.W (DALU)DescriptionThese instructions set the T bit if the content

Strona 379 - BF Branch If False (AGU) BF

2-12 SC140 DSP Core Reference ManualDALU2.2.1.3 Bit-Field Unit (BFU)The BFU is the logic part of the ALU. It contains a 40-bit parallel bidirectiona

Strona 380

A-126 SC140 DSP Core Reference ManualCMPGT.WInstruction Formats and OpcodesInstruction FieldsDn FFF Single Source/Destination Data RegisterInstructio

Strona 381 - $00E0 0000

CMPGTASC140 DSP Core Reference Manual A-127CMPGTA Compare for Greater Than (AGU) CMPGTADescriptionStatus and Conditions that Affect InstructionStatus

Strona 382

A-128 SC140 DSP Core Reference ManualCMPGTAInstruction Formats and OpcodesInstruction Fieldsrx rrrr AGU Source RegisterRx RRRR AGU Source/Destination

Strona 383 - 16-Bit Operand (BMU)

CMPHISC140 DSP Core Reference Manual A-129CMPHI Unsigned Compare for Higher (DALU) CMPHIDescriptionStatus and Conditions that Affect InstructionNone.

Strona 384

A-130 SC140 DSP Core Reference ManualCMPHIDn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 101 D5 111 D7Note: T

Strona 385

CMPHIASC140 DSP Core Reference Manual A-131CMPHIA Unsigned Compare for Higher (AGU) CMPHIADescriptionStatus and Conditions that Affect InstructionStat

Strona 386

A-132 SC140 DSP Core Reference ManualCMPHIAInstruction Formats and OpcodesInstruction Fieldsrx rrrr AGU Source RegisterRx RRRR AGU Source/Destination

Strona 387

CONTSC140 DSP Core Reference Manual A-133CONT Continue to the Next Loop Iteration (AGU) CONTDescriptionStatus and Conditions that Affect InstructionSt

Strona 388

A-134 SC140 DSP Core Reference ManualCONTInstruction Formats and OpcodesInstruction FieldsInstruction WordsCycles1Note 1: If LC > 1, CONT uses 3 cy

Strona 389

CONTDSC140 DSP Core Reference Manual A-135CONTD Continue to Next Loop Iteration CONTDUsing a Delay Slot (AGU)DescriptionStatus and Conditions that Aff

Strona 390

DALUSC140 DSP Core Reference Manual 2-13 2.2.1.4 Data Shifter/LimiterThe data shifters/limiters provide special post-processing on data written from

Strona 391

A-136 SC140 DSP Core Reference ManualCONTDInstruction Formats and OpcodesInstruction Fieldsloopend0lbl3 add d0,d1,d2Instruction WordsCycles1Note 1: If

Strona 392

DEBUGSC140 DSP Core Reference Manual A-137DEBUG Enter Debug Mode (AGU) DEBUGDescriptionStatus and Conditions that Affect InstructionNoneStatus and Con

Strona 393

A-138 SC140 DSP Core Reference ManualDEBUGEVDEBUGEV Signal a Debug Event (AGU) DEBUGEVDescriptionStatus and Conditions that Affect InstructionNone.Sta

Strona 394

DECASC140 DSP Core Reference Manual A-139DECA Decrement a Register (AGU) DECADescriptionStatus and Conditions that Affect InstructionStatus and Condit

Strona 395

A-140 SC140 DSP Core Reference ManualDECA#u5 iiiii 5-bit unsigned immediate data = 1, set by the assembler

Strona 396

DECEQSC140 DSP Core Reference Manual A-141DECEQ Decrement and Set T If Equal Zero (DALU) DECEQDescriptionStatus and Conditions that Affect Instruction

Strona 397

A-142 SC140 DSP Core Reference ManualDECEQInstruction FieldsDn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 10

Strona 398

DECEQASC140 DSP Core Reference Manual A-143DECEQA Decrement and Set T If Equal Zero DECEQA(AGU)DescriptionStatus and Conditions that Affect Instructio

Strona 399

A-144 SC140 DSP Core Reference ManualDECGEDECGE Decrement and Set T DECGEIf Greater Than or Equal to Zero (DALU)DescriptionStatus and Conditions that

Strona 400

DECGESC140 DSP Core Reference Manual A-145Instruction FieldsDn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 10

Strona 401

2-14 SC140 DSP Core Reference ManualDALU2.2.1.5 ScalingThe data shifters in the shifter/limiter unit can perform the following data shift operations

Strona 402

A-146 SC140 DSP Core Reference ManualDECGEADECGEA Decrement and Set T DECGEAIf Greater Than or Equal to Zero (AGU)DescriptionStatus and Conditions tha

Strona 403

DECGEASC140 DSP Core Reference Manual A-147Instruction Formats and OpcodesInstruction FieldsRx RRRR AGU Source/Destination RegisterInstruction Words C

Strona 404

A-148 SC140 DSP Core Reference ManualDIDI Disable Interrupts (AGU) DIDescriptionStatus and Conditions that Affect InstructionStatus and Conditions Cha

Strona 405 - Bit-Masked Test a BMTSTC.W

DISC140 DSP Core Reference Manual A-14915 8 7 0DI 1 1 4 1001111101111101

Strona 406 - $24A6 --0010 0100 1010 0110

A-150 SC140 DSP Core Reference ManualDIVDIV Divide Iteration (DALU) DIVDescriptionOperation Assembler SyntaxIf Dn[39] ⊕ Da[39] = 1,then 2 * Dn + C + (

Strona 407

DIVSC140 DSP Core Reference Manual A-151Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplediv d2,d13. Ca

Strona 408 - 16-Bit Operand If Set (BMU)

A-152 SC140 DSP Core Reference ManualDIVInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDn FFF Single Sou

Strona 409

DMACSSSC140 DSP Core Reference Manual A-153DMACSS Multiply Signed By Signed and DMACSS Accumulate With Right Shifted Data Register (DALU)DescriptionSt

Strona 410 - Bit-Masked Test a BMTSTS.W

A-154 SC140 DSP Core Reference ManualDMACSSInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDc,Dd ee Data

Strona 411

DMACSUSC140 DSP Core Reference Manual A-155DMACSU Multiply Signed By Unsigned and DMACSUAccumulate With Right Shifted Data Register (DALU)DescriptionS

Strona 412

DALUSC140 DSP Core Reference Manual 2-15 The Ln bit is calculated (and set or cleared) for the following saturable instructions: ABS, ADC, ADR, ADD, A

Strona 413 - BRA Branch (AGU) BRA

A-156 SC140 DSP Core Reference ManualDMACSUInstruction FieldsDc,Dd ee Data Register PairsDn FFF Single Source/Destination Data Register00 D0,D1 01 D2,

Strona 414

DOENnSC140 DSP Core Reference Manual A-157DOENn DO Enable Long Loop (AGU) DOENnDescriptionThis instruction initializes the selected loop as a long loo

Strona 415 - Source Code Comments

A-158 SC140 DSP Core Reference ManualDOENnInstruction Formats and OpcodesInstruction Fieldsn Loop IdentifierDR HHHH Data/Address RegisterInstruction W

Strona 416

DOENSHnSC140 DSP Core Reference Manual A-159DOENSHn Do Enable Short Loop (AGU) DOENSHnDescriptionThis instruction initializes the selected loop as a s

Strona 417

A-160 SC140 DSP Core Reference ManualDOENSHnInstruction Formats and OpcodesInstruction Fieldsn Loop IdentifierDR HHHH Data/Address RegisterSR$00E4 000

Strona 418

DOSETUPnSC140 DSP Core Reference Manual A-161DOSETUPn Setup Long Loop DOSETUPnStart Address (AGU)DescriptionStatus and Conditions that Affect Instruc

Strona 419

A-162 SC140 DSP Core Reference ManualDOSETUPnInstruction Formats and OpcodesInstruction Fieldsn Loop IdentifierInstruction Words Cycles Type Opcode15

Strona 420

EISC140 DSP Core Reference Manual A-163E-JEI Enable Interrupts (AGU) EIDescriptionStatus and Conditions that Affect InstructionStatus and Conditions C

Strona 421

A-164 SC140 DSP Core Reference ManualEI

Strona 422

EORSC140 DSP Core Reference Manual A-165EOR Bitwise Exclusive OR (DALU) EORDescriptionStatus and Conditions that Affect InstructionNone.Status and Con

Strona 423 - BT Branch If True (AGU) BT

2-16 SC140 DSP Core Reference ManualDALUNote that in the unusual case where arithmetic saturation mode is set between a DALU instruction and a subsequ

Strona 424

A-166 SC140 DSP Core Reference ManualEORInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/Destin

Strona 425 - $00E0 0002

EORSC140 DSP Core Reference Manual A-167EOR Bitwise Exclusive OR on a 16-Bit Operand (BMU) EORDescriptionStatus and Conditions that Affect Instruction

Strona 426

A-168 SC140 DSP Core Reference ManualEORInstruction Formats and OpcodesInstruction FieldsDR HHHH Data/Address RegisterInstruction Words Cycles Type Op

Strona 427 - $0:$FF FFFF FFF5

EOR.WSC140 DSP Core Reference Manual A-169EOR.W Bitwise Exclusive OR on EOR.W a 16-Bit Operand in Memory (BMU)DescriptionThese operations read from me

Strona 428

A-170 SC140 DSP Core Reference ManualEOR.WExampleeor.w #$aaaa,(r0)Instruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterRegister/Mem

Strona 429 - $00E0 0001 $00E0 0000

EXTRACTSC140 DSP Core Reference Manual A-171EXTRACT Extract Signed Bit Field (DALU) EXTRACTDescriptionThese operations extract a bit field from a sour

Strona 430

A-172 SC140 DSP Core Reference ManualEXTRACTInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/De

Strona 431 - CMPEQ Da,Dn

EXTRACTUSC140 DSP Core Reference Manual A-173EXTRACTU Extract Unsigned Bit Field EXTRACTU(DALU)DescriptionThese operations extract a bit field from a

Strona 432 - 001 D1 011 D3 101 D5 111 D7

A-174 SC140 DSP Core Reference ManualEXTRACTUInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/D

Strona 433

IADDNC.WSC140 DSP Core Reference Manual A-175IADDNC.W Integer Addition IADDNC.WWithout Changing the Carry BitNot Affected by Saturation (DALU)Descri

Strona 434

DALUSC140 DSP Core Reference Manual 2-17The following table (Table 2-11) shows the arithmetic saturation and rounding operations for the four possible

Strona 435 - CMPEQA rx,Rx

A-176 SC140 DSP Core Reference ManualIFcIFc Conditionally Execute a Group or Subgroup (PREFIX) IFcDescriptionThese instructions add conditional contro

Strona 436

IFcSC140 DSP Core Reference Manual A-177Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionNone.Exampleift move.

Strona 437 - CMPGT Da,Dn

A-178 SC140 DSP Core Reference ManualILLEGALILLEGAL Generate an Illegal Exception ILLEGALRequest (AGU)DescriptionOperation Assembler Syntaxupon servic

Strona 438

ILLEGALSC140 DSP Core Reference Manual A-179Status and Conditions that Affect InstructionNone.Status and Conditions Changed by InstructionExampleilleg

Strona 439

A-180 SC140 DSP Core Reference ManualIMACIMAC Integer Multiply-Accumulate (DALU) IMACDescriptionStatus and Conditions that Affect InstructionNone.Sta

Strona 440

IMACSC140 DSP Core Reference Manual A-181–5 $FFFBx 3$0003–15 $000F+8$0008–7 $FFF9Example 2imac -d4,d5,d6–42 $002Ax 11 $000B–462 $FE32+4096$10003,634 $

Strona 441 - CMPGTA rx,Rx

A-182 SC140 DSP Core Reference ManualIMACDa,Db JJJJJ Data Register PairsDa,Da jj Data Register PairsDn FFF Single Source/Destination Data Register0000

Strona 442

IMACLHUUSC140 DSP Core Reference Manual A-183IMACLHUU Integer Multiply-Accumulate IMACLHUU Lower Unsigned By Upper Unsigned (DALU)DescriptionStatus an

Strona 443

A-184 SC140 DSP Core Reference ManualIMACLHUUInstruction Formats and OpcodesInstruction FieldsDa jjj Single Source/Destination Data RegisterDb JJJ Sin

Strona 444

IMACUSSC140 DSP Core Reference Manual A-185IMACUS Integer Multiply Accumulate IMACUSUnsigned By Signed (DALU)DescriptionStatus and Conditions that Aff

Strona 445

SC140 DSP Core Reference Manual vChapter 3Control Registers3.1 Core Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 446

2-18 SC140 DSP Core Reference ManualDALUFigure 2-3. DALU Data Representations2.2.2.2 Data FormatsThree types of two’s complement data formats are

Strona 447

A-186 SC140 DSP Core Reference ManualIMACUS2 $0002x –64$FFC0–128 $FF80+0$0000-128 $FF80Instruction Formats and OpcodesInstruction FieldsDa jjj Single

Strona 448

IMPYSC140 DSP Core Reference Manual A-187IMPY Integer Multiply (DALU) IMPYDescriptionStatus and Conditions that Affect InstructionNone.Status and Con

Strona 449 - CONTD label

A-188 SC140 DSP Core Reference ManualIMPYInstruction FieldsDa,Da jj Data Register PairsDa,Db JJJJJ Data Register PairsDn FFF Single Source/Destination

Strona 450

IMPY.WSC140 DSP Core Reference Manual A-189IMPY.W Signed Immediate Integer Multiply (DALU) IMPY.WDescriptionStatus and Conditions that Affect Instruct

Strona 451 - DEBUG 1 2 4 1001111001110000

A-190 SC140 DSP Core Reference ManualIMPY.W–8 $FFF8x –2$FFFE+16 $0010Instruction Formats and OpcodesInstruction FieldsDn FFF Single Source/Destination

Strona 452

IMPYHLUUSC140 DSP Core Reference Manual A-191IMPYHLUU Integer Multiply Upper IMPYHLUUUnsigned By Lower Unsigned (DALU)DescriptionStatus and Conditions

Strona 453 - where #u5 = 1

A-192 SC140 DSP Core Reference ManualIMPYHLUUInstruction Formats and OpcodesInstruction FieldsDa jjj Single Source/Destination Data RegisterDb JJJ Sin

Strona 454

IMPYSUSC140 DSP Core Reference Manual A-193IMPYSU Integer Multiply IMPYSUSigned By Unsigned (DALU)DescriptionStatus and Conditions that Affect Instruc

Strona 455 - DECEQ Dn

A-194 SC140 DSP Core Reference ManualIMPYSUInstruction Formats and OpcodesInstruction FieldsDa jjj Single Source/Destination Data RegisterDb JJJ Singl

Strona 456

IMPYUUSC140 DSP Core Reference Manual A-195IMPYUU Integer Multiply IMPYUUUnsigned By Unsigned (DALU)DescriptionStatus and Conditions that Affect Instr

Strona 457 - DECEQA Rx

DALUSC140 DSP Core Reference Manual 2-192.2.2.2.2 Signed IntegerThis format is used when processing data as integers. Using this format, the N-bit o

Strona 458 - DECGE Dn

A-196 SC140 DSP Core Reference ManualIMPYUUDb JJJ Single Source Data RegisterDn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6

Strona 459

INCSC140 DSP Core Reference Manual A-197INC Increment a Data Register By One (DALU) INCDescriptionStatus and Conditions that Affect InstructionStatus

Strona 460

A-198 SC140 DSP Core Reference ManualINCExample 2inc d15Arithmetic saturation mode set, SR[2], 32-bit overflow indicated in EMR[2].Instruction Formats

Strona 461

INC.FSC140 DSP Core Reference Manual A-199INC.F Increment HP of a Data Register by One (DALU) INC.FDescriptionStatus and Conditions that Affect Instru

Strona 462

A-200 SC140 DSP Core Reference ManualINC.FInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDn FFF Single S

Strona 463 - DI 1 1 4 1001111101111101

INCASC140 DSP Core Reference Manual A-201INCA Increment Register (AGU) INCADescriptionStatus and Conditions that Affect InstructionStatus and Conditio

Strona 464 - Divide Iteration (DALU) DIV

A-202 SC140 DSP Core Reference ManualINCAInstruction Formats and OpcodesInstruction FieldsRx RRRR AGU Source/Destination RegisterInstruction Words Cyc

Strona 465

INSERTSC140 DSP Core Reference Manual A-203INSERT Insert Bit Field (DALU) INSERTDescriptionThese operations insert a bit field from a source data regi

Strona 466

A-204 SC140 DSP Core Reference ManualINSERTInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDb jjj Single Source/Des

Strona 467

JFSC140 DSP Core Reference Manual A-205JF Jump If False (AGU) JFDescriptionIf the T bit is cleared, program execution continues at a specified 32-bit

Strona 468

2-20 SC140 DSP Core Reference ManualDALU2.2.2.3 MultiplicationMost of the operations are performed identically in fractional and integer arithmetic.

Strona 469

A-206 SC140 DSP Core Reference ManualJFInstruction Formats and OpcodesInstruction FieldsRn RRR Address Registerd1$00 0000 0000 $00 0000 0029d2$00 0000

Strona 470

JFDSC140 DSP Core Reference Manual A-207JFD Jump If False Using a Delay Slot (AGU) JFDDescriptionIf the T bit is cleared, program execution continues

Strona 471

A-208 SC140 DSP Core Reference ManualJFDInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterRegister/Memory Address Before AfterSR

Strona 472

JFDSC140 DSP Core Reference Manual A-209JMP Jump (AGU) JMPDescriptionThese operations continue program execution at a specified 32-bit memory destinat

Strona 473

A-210 SC140 DSP Core Reference ManualJFDInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcode15

Strona 474

JMPDSC140 DSP Core Reference Manual A-211JMPD Jump Using a Delay Slot (AGU) JMPDDescriptionStatus and Conditions that Affect InstructionNone.Status an

Strona 475 - $0000 1020

A-212 SC140 DSP Core Reference ManualJMPDInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcode1

Strona 476

JSRSC140 DSP Core Reference Manual A-213JSR Jump to Subroutine (AGU) JSRDescriptionThese operations jump to the subroutine location in program memory

Strona 477 - EI Enable Interrupts (AGU) EI

A-214 SC140 DSP Core Reference ManualJSRInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcode15

Strona 478

JSRDSC140 DSP Core Reference Manual A-215JSRD Jump to a Subroutine Using a Delay Slot (AGU) JSRDDescriptionExecutes the execution set in the delay slo

Strona 479 - $FF FFFF FFFB

DALUSC140 DSP Core Reference Manual 2-212.2.2.5.2 Unsigned ComparisonWhen performing an unsigned comparison, the condition code computation is diffe

Strona 480

A-216 SC140 DSP Core Reference ManualJSRDInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcode1

Strona 481

JTSC140 DSP Core Reference Manual A-217JT Jump If True (AGU) JTDescriptionIf the T bit is set, these operations continue program execution at a specif

Strona 482

A-218 SC140 DSP Core Reference ManualJTInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcode15

Strona 483

JTDSC140 DSP Core Reference Manual A-219JTD Jump If True Using Delay Slot (AGU) JTDDescriptionIf the T bit is set, this instruction continues program

Strona 484

A-220 SC140 DSP Core Reference ManualJTDInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcode15

Strona 485

LPMARKxSC140 DSP Core Reference Manual A-221L-MLPMARKx End-of-Loop Mark (PREFIX) LPMARKxDescriptionThe LPMARK prefix bits are used for hardware loops

Strona 486

A-222 SC140 DSP Core Reference ManualLPMARKxLPMARKBFor long loops (SLF=0), this prefix bit is placed at LA-2 (two sets before the last set of the loop

Strona 487

LPMARKxSC140 DSP Core Reference Manual A-223Status and Conditions Changed by LPMARK ExecutionThe loop flag (LFn) and short loop flag (SLFn) are cleare

Strona 488

A-224 SC140 DSP Core Reference ManualLSLLLSLL Multiple-Bit Bitwise Shift Left (DALU) LSLLDescriptionStatus and Conditions that Affect InstructionNone.

Strona 489 - IADDNC.W #s16,Dn

LSLLSC140 DSP Core Reference Manual A-225Example 2lsll d4,d2Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction Fie

Strona 490

2-22 SC140 DSP Core Reference ManualDALUFigure 2-5 shows the four cases for rounding a number in the Dn.h register. If scaling is set in the SR, the r

Strona 491

A-226 SC140 DSP Core Reference ManualLSRLSR Bitwise Shift Right One Bit (DALU) LSRDescriptionStatus and Conditions that Affect InstructionNone.Status

Strona 492 - Request (AGU)

LSRASC140 DSP Core Reference Manual A-227LSRA Bitwise Shift Right By One Bit (AGU) LSRADescriptionStatus and Conditions that Affect InstructionStatus

Strona 493

A-228 SC140 DSP Core Reference ManualLSRRLSRR Multiple-Bit Bitwise Shift Right (DALU) LSRR|DescriptionStatus and Conditions that Affect InstructionNon

Strona 494

LSRRSC140 DSP Core Reference Manual A-229Status and Conditions Changed by InstructionExample 1lsrr d4,d2Example 2lsrr d4,d2Register Address Bit Name D

Strona 495

A-230 SC140 DSP Core Reference ManualLSRRInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/Dest

Strona 496 - Da,Da jj Data Register Pairs

LSRWSC140 DSP Core Reference Manual A-231LSRW Word Bitwise Shift Right (DALU) LSRWDescriptionStatus and Conditions that Affect InstructionNone.Status

Strona 497

A-232 SC140 DSP Core Reference ManualLSRWInstruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/D

Strona 498

MACSC140 DSP Core Reference Manual A-233MAC Signed Fractional Multiply-Accumulate (DALU) MACDescriptionThese operations perform signed fractional mult

Strona 499

A-234 SC140 DSP Core Reference ManualMAC0.001 $1000x 0.011$30000.0000110$0600+0.1000000$40000.1000110$4600Example 2mac #$1000,d5,d6Instruction Formats

Strona 500

MACSC140 DSP Core Reference Manual A-235Da JJJ Single Source Data RegisterDa,Db JJJJJ Data Register PairsDa,Da jj Data Register PairsDn FFF Single

Strona 501 - IMPY Da,Db,Dn

DALUSC140 DSP Core Reference Manual 2-232.2.2.6.2 Two’s Complement RoundingWhen two’s complement rounding is selected by setting the rounding mode (

Strona 502

A-236 SC140 DSP Core Reference ManualMACRMACR Signed Fractional Multiply-Accumulate MACRand Round (DALU)DescriptionStatus and Conditions that Affect I

Strona 503 - IMPY.W #s16,Dn

MACRSC140 DSP Core Reference Manual A-2370.000 0000 1000$0080x 0.000 0000 1000$00800.000 0000 0000 0000 1000$000080000+0.000 0000 0000 0111 0000$0007r

Strona 504

A-238 SC140 DSP Core Reference ManualMACRDa,Da jj Data Register PairsDn FFF Single Source/Destination Data Register00 D1,D1 01 D3,D3 10 D5,D5 11 D7,

Strona 505

MACSUSC140 DSP Core Reference Manual A-239MACSU Fractional Multiply-Accumulate MACSUSigned By Unsigned (DALU)DescriptionStatus and Conditions that Aff

Strona 506

A-240 SC140 DSP Core Reference ManualMACSU1.100 $C000x 0.000 0000 0000 0001$0001 (2–15)1.111 1111 1111 1111 1000$FFFF 8000Instruction Formats and Opco

Strona 507 - $0:$FF FFFF FEDE

MACUSSC140 DSP Core Reference Manual A-241MACUS Fractional Multiply-Accumulate MACUSUnsigned By Signed (DALU)DescriptionStatus and Conditions that Af

Strona 508

A-242 SC140 DSP Core Reference ManualMACUSInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDc,Dd ee Data R

Strona 509 - IMPYUU Da,Db,Dn

MACUUSC140 DSP Core Reference Manual A-243MACUU Fractional Multiply-Accumulate MACUUUnsigned By Unsigned (DALU)DescriptionStatus and Conditions that

Strona 510

A-244 SC140 DSP Core Reference ManualMACUUInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDc,Dd ee Data R

Strona 511 - Dn + 1 → Dn

MARKSC140 DSP Core Reference Manual A-245MARK Push the PC into the Trace Buffer (AGU) MARKDescriptionStatus and Conditions that Affect InstructionNone

Strona 512

2-24 SC140 DSP Core Reference ManualDALUFigure 2-6 shows the four cases for rounding a number in the Dn.h register. If scaling is set in the SR, the r

Strona 513 - INC.F Dn

A-246 SC140 DSP Core Reference ManualMAXMAX Transfer Maximum Signed Value (DALU) MAXDescriptionStatus and Conditions that Affect InstructionNone.Statu

Strona 514

MAX2SC140 DSP Core Reference Manual A-247MAX2 Transfer Two 16-Bit MAX2Maximum Signed Values (DALU)DescriptionStatus and Conditions that Affect Instruc

Strona 515 - Rx + 1 → Rx

A-248 SC140 DSP Core Reference ManualMAX2Instruction FieldsDg,Dh GG Data Register Pairs00 D0,D4 01 D1,D5 10 D2,D6 11 D3,D7Note: This instruction can s

Strona 516

MAX2VITSC140 DSP Core Reference Manual A-249MAX2VIT MAX2 MAX2VITfor Viterbi Kernel (DALU)DescriptionThese operations independently compare the 16-bi

Strona 517 - INSERT Da,Db,Dn

A-250 SC140 DSP Core Reference ManualMAX2VITStatus and Conditions Changed by InstructionExamplemax2vit d4,d2Instruction Formats and OpcodesNote: This

Strona 518

MAXMSC140 DSP Core Reference Manual A-251MAXM Transfer Maximum Absolute Value (DALU) MAXMDescriptionStatus and Conditions that Affect InstructionNone.

Strona 519 - JF Jump If False (AGU) JF

A-252 SC140 DSP Core Reference ManualMAXMInstruction FieldsDg,Dh GG Data Register Pairs00 D0,D4 01 D1,D5 10 D2,D6 11 D3,D7Note: This instruction can s

Strona 520

MINSC140 DSP Core Reference Manual A-253MIN Transfer Minimum Signed Value (DALU) MINDescriptionStatus and Conditions that Affect InstructionNone.Statu

Strona 521

A-254 SC140 DSP Core Reference ManualMIN2MOVE.2F Move Two Fractional Words from MOVE.2FMemory to a Register Pair (AGU)DescriptionStatus and Conditions

Strona 522

MOVE.2FSC140 DSP Core Reference Manual A-255Instruction Formats and OpcodesNotes: 1. ** indicates serial grouping encoding.2. When the form (Rn + N0)

Strona 523 - JMP Jump (AGU) JMP

DALUSC140 DSP Core Reference Manual 2-252.2.2.7 Arithmetic Saturation ModeBy setting the arithmetic saturation mode (SM) bit in the SR, the arithmet

Strona 524

A-256 SC140 DSP Core Reference ManualMOVE.2LMOVE.2L Move Two Integer Longs MOVE.2Lto/from a Register Pair (AGU)DescriptionThese operations move two lo

Strona 525 - JMPD label {0 ≤ label < 2

MOVE.2LSC140 DSP Core Reference Manual A-257Instruction Formats and OpcodesInstruction Fieldsw Read/Write NotationDa:Db hh Data Register PairsEA MMM E

Strona 526

A-258 SC140 DSP Core Reference ManualMOVE.2WMOVE.2W Move Two Integer Words MOVE.2Wto/from a Register Pair (AGU)DescriptionStatus and Conditions that A

Strona 527

MOVE.2WSC140 DSP Core Reference Manual A-259Instruction Formats and OpcodesNotes: 1. ** indicates serial grouping encoding.2. When the form (Rn + N0)

Strona 528

A-260 SC140 DSP Core Reference ManualMOVE.4FMOVE.4F Move Four Fractional Words from MOVE.4FMemory to a Register Quad (AGU)DescriptionStatus and Condit

Strona 529 - JSRD label {0 ≤ label < 2

MOVE.4FSC140 DSP Core Reference Manual A-261move.4f (r0),d0:d1:d2:d3Instruction Formats and OpcodesNotes: 1. ** indicates serial grouping encoding.2.

Strona 530

A-262 SC140 DSP Core Reference ManualMOVE.4WMOVE.4W Move Four Integer Words MOVE.4Wto/from a Register Quad (AGU)DescriptionStatus and Conditions that

Strona 531 - JT Jump If True (AGU) JT

MOVE.4WSC140 DSP Core Reference Manual A-263move.4w d0:d1:d2:d3,(r0)Instruction Formats and OpcodesInstruction Fieldsw Read/Write NotationDa:Db:Dc:Dd

Strona 532

A-264 SC140 DSP Core Reference ManualMOVE.BMOVE.B Byte Move (AGU) MOVE.BDescriptionThese operations move 8-bit data from memory to a data or address r

Strona 533

MOVE.BSC140 DSP Core Reference Manual A-265Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemove.b d3,(

Strona 534

2-26 SC140 DSP Core Reference ManualDALU2.2.2.8 Multi-Precision Arithmetic SupportThe SC140 DALU supports multi-precision arithmetic for fractional

Strona 535

A-266 SC140 DSP Core Reference ManualMOVE.BInstruction Formats and OpcodesInstruction FieldsDR HHHH Data/Address RegisterInstruction Words Cycles Type

Strona 536

MOVE.BSC140 DSP Core Reference Manual A-267Rn RRR Address Registerea MM Effective Address Notation000 R0 010 R2 100 R4 110 R6001 R1 011 R3 101 R5 111

Strona 537 - Prefix Formats and Opcodes

A-268 SC140 DSP Core Reference ManualMOVE.FMOVE.F Move Fractional Word MOVE.Fto/from Memory (AGU)DescriptionThese operations read a fractional word fr

Strona 538

MOVE.FSC140 DSP Core Reference Manual A-269Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemove.f ($54

Strona 539

A-270 SC140 DSP Core Reference ManualMOVE.FInstruction Formats and OpcodesNotes: 1. ** indicates serial grouping encoding.2. When the form (Rn + N0) i

Strona 540

MOVE.FSC140 DSP Core Reference Manual A-271ea MM Effective Address NotationRn RRR Address Register00(Rn)+01(Rn)–10(Rn+N0)11(Rn)000 R0 010 R2 100 R4 11

Strona 541 - $AAAA AAAA $5555 5555

A-272 SC140 DSP Core Reference ManualMOVE.LMOVE.L Move Long Word (AGU) MOVE.LDescriptionThese operations move an immediate long word (32-bit data) int

Strona 542 -

MOVE.LSC140 DSP Core Reference Manual A-273Instruction FieldsC1 CCC Control RegistersC2 CCCC General RegistersC4 DDDDD General RegistersDb jjj Single

Strona 543

A-274 SC140 DSP Core Reference ManualMOVE.Lw Read/Write Notation0write1read#s32 (31)IIIIIIIIIIIIIIII(16)(15)iiiiiiiiiiiiiiii (0)32-bit signed immediat

Strona 544

MOVE.LSC140 DSP Core Reference Manual A-275MOVE.L Move Long Register Extensions (AGU) MOVE.LDescriptionThese six operations save (restore) the extensi

Strona 545

DALUSC140 DSP Core Reference Manual 2-27Figure 2-8 illustrates the use of these instructions in the case of a double-precision multiplication of 32-bi

Strona 546

A-276 SC140 DSP Core Reference ManualMOVE.LStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemove.l d0.e

Strona 547

MOVE.LSC140 DSP Core Reference Manual A-277Instruction Formats and OpcodesInstruction FieldsDe QQ Data RegisterDo qq Data RegisterDa.E:Db.E ff Data Re

Strona 548

A-278 SC140 DSP Core Reference ManualMOVE.La32 aaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAA 32-bit absolute long address

Strona 549

MOVE.LSC140 DSP Core Reference Manual A-279MOVE.L Move Long (AGU) MOVE.LDescriptionThese operations move a signed long word (32-bit data) from memory

Strona 550

A-280 SC140 DSP Core Reference ManualMOVE.LMOVE.L (a32),DRMOVE.L DR,(a32)Moves a 32-bit long word between a data or address register and a memory addr

Strona 551 - 0.000 0000 0000 1000 0000

MOVE.LSC140 DSP Core Reference Manual A-281Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemove.l d0,(

Strona 552

A-282 SC140 DSP Core Reference ManualMOVE.LMOVE.L DR,(Rn+u3)15 8 7 0MOVE.L (Rn+s15),DR 2 2 3 0 0 0wHHHH1 s s 0 0RRRMOVE.L DR,(Rn+s15) 100sssssssssssss

Strona 553

MOVE.LSC140 DSP Core Reference Manual A-283Instruction FieldsC3 DDDD General RegistersC4 DDDDD General RegistersDR HHHH Data/Address RegisterEA MMM Ef

Strona 554 - $FFFF 8000

A-284 SC140 DSP Core Reference ManualMOVE.La16 AAAAAAAAAAAAAAAA 16-bit unsigned absolute addressa32 aaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAA 32-bit absolute l

Strona 555

MOVE.WSC140 DSP Core Reference Manual A-285MOVE.W Move Immediate Integer Word (AGU) MOVE.WDescriptionThese operations move a signed immediate integer

Strona 556

vi SC140 DSP Core Reference Manual4.6.4 General EOnCE Register Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-344.7 EOn

Strona 557

2-28 SC140 DSP Core Reference ManualDALUFigure 2-9 illustrates the use of the fractional multiplication and multiply-accumulate instructions in the ca

Strona 558

A-286 SC140 DSP Core Reference ManualMOVE.WStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemove.w #$00

Strona 559 - MARK 1 1 4 1001111001110010

MOVE.WSC140 DSP Core Reference Manual A-287Instruction Formats and OpcodesInstruction FieldsC4 DDDDD General RegistersInstruction Words Cycles Type Op

Strona 560 - $FF FFFF FFF5

A-288 SC140 DSP Core Reference ManualMOVE.WDR HHHH Data/Address RegisterRn RRR Address Register0000 D0 0100 D4 1000 R0 1100 R40001 D1 0101 D5 1001 R1

Strona 561 - MAX2 Transfer Two 16-Bit MAX2

MOVE.WSC140 DSP Core Reference Manual A-289MOVE.W Move Integer Word (AGU) MOVE.WDescriptionThese operations either read a signed integer word from mem

Strona 562

A-290 SC140 DSP Core Reference ManualMOVE.WMOVE.W (Rn+u3),DRMOVE.W DR,(Rn+u3)Moves a signed word between a data or address register (DR) and a memory

Strona 563 - MAX2VIT MAX2 MAX2VIT

MOVE.WSC140 DSP Core Reference Manual A-291Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemove.w d1,(

Strona 564

A-292 SC140 DSP Core Reference ManualMOVE.WInstruction Formats and OpcodesInstruction Words Cycles Type Opcode15 8 7 0MOVE.W (a32),DR 3 1 3 0000HHHHAA

Strona 565 - $FF FFFF FFDD

MOVE.WSC140 DSP Core Reference Manual A-293Instruction Fieldsw Read/Write NotationC3 DDDD General RegistersC4 DDDDD General RegistersDR HHHH Data/Addr

Strona 566

A-294 SC140 DSP Core Reference ManualMOVE.Wa16 AAAAAAAAAAAAAAAA 16-bit unsigned absolute addressa32 aaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAA 32-bit absolute l

Strona 567 - $00 36AE 3FB4

MOVEcSC140 DSP Core Reference Manual A-295MOVEc Conditional Address Register Move (AGU) MOVEcDescriptionThis instruction conditionally copies the valu

Strona 568

DALUSC140 DSP Core Reference Manual 2-29Figure 2-10 illustrates the use of these instructions in the case of a signed integer double-precision multipl

Strona 569

A-296 SC140 DSP Core Reference ManualMOVEcInstruction Formats and OpcodesInstruction FieldsRq qqq Address RegisterRn RRR Address RegisterInstruction W

Strona 570

MOVES.2FSC140 DSP Core Reference Manual A-297MOVES.2F Move Two Fractional Words to MOVES.2FMemory With Scaling andSaturation (AGU)DescriptionThe data

Strona 571

A-298 SC140 DSP Core Reference ManualMOVES.2FThe Ln bit is set in d0, and the number in d0 is positive (bit 39 = 0), so the saturated value $7FFF is w

Strona 572 - respective data register

MOVES.4FSC140 DSP Core Reference Manual A-299MOVES.4F Move Four Fractional Words to MOVES.4FMemory With Scaling and Saturation (AGU)DescriptionThe dat

Strona 573

A-300 SC140 DSP Core Reference ManualMOVES.4FInstruction Formats and OpcodesNotes: 1. ** indicates serial grouping encoding.2. When the form (Rn + N0)

Strona 574

MOVES.FSC140 DSP Core Reference Manual A-301MOVES.F Move Fractional Word to MOVES.FMemory With Scaling and Saturation (AGU)DescriptionThis operation m

Strona 575

A-302 SC140 DSP Core Reference ManualMOVES.4FStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemoves.f d

Strona 576

MOVES.4FSC140 DSP Core Reference Manual A-303Instruction Formats and OpcodesInstruction FieldsDb jjj Single Source/Destination Data RegisterEA MMM E

Strona 577

A-304 SC140 DSP Core Reference ManualMOVES.4Fs15 sssssssssssssss Signed 15-bit offset

Strona 578 - MOVE.B Byte Move (AGU) MOVE.B

MOVES.LSC140 DSP Core Reference Manual A-305MOVES.L Move Long to MOVES.LMemory With Scaling and Saturation (AGU)DescriptionThe data is scaled accordin

Strona 579 - MOVE.B DR,(SP+s15)

2-30 SC140 DSP Core Reference ManualDALUFigure 2-11 illustrates the use of these instructions in the case of an unsigned integer double-precision mult

Strona 580

A-306 SC140 DSP Core Reference ManualMOVES.LInstruction Formats and OpcodesNotes: 1. ** indicates serial grouping encoding.2. When the form (Rn + N0)

Strona 581

MOVEU.BSC140 DSP Core Reference Manual A-307MOVEU.B Move Unsigned Byte from MOVEU.BMemory (AGU)DescriptionThese operations move an unsigned byte fro

Strona 582 - Move Fractional Word MOVE.F

A-308 SC140 DSP Core Reference ManualMOVEU.BStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemoveu.b ($

Strona 583 - MOVE.F Db,(ea)

MOVEU.BSC140 DSP Core Reference Manual A-309Instruction Formats and OpcodesInstruction FieldsDR HHHH Data/Address Registerea MM Effective Address Nota

Strona 584

A-310 SC140 DSP Core Reference ManualMOVEU.Ba32 aaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAA 32-bit absolute long addresss15 sssssssssssssss Signed 15-bit offset

Strona 585

MOVEU.LSC140 DSP Core Reference Manual A-311MOVEU.L Move Unsigned Immediate Long MOVEU.Lto a Data Register (AGU)Description Status and Conditions tha

Strona 586 - Move Long Word (AGU) MOVE.L

A-312 SC140 DSP Core Reference ManualMOVEU.LInstruction Formats and OpcodesInstruction FieldsDb jjj Single Source/Destination Data RegisterInstructi

Strona 587

MOVEU.WSC140 DSP Core Reference Manual A-313MOVEU.W Move Unsigned Immediate Word MOVEU.Wto a Register Portion (AGU)DescriptionThese operations move an

Strona 588 - 0write1read

A-314 SC140 DSP Core Reference ManualMOVEU.WInstruction Formats and OpcodesInstruction FieldsDb jjj Single Source/Destination Data RegisterInstructi

Strona 589

MOVEU.WSC140 DSP Core Reference Manual A-315MOVEU.W Move Unsigned Word from MOVEU.WMemory to a Register (AGU)DescriptionThese operations move an unsig

Strona 590 - MOVE.L (SP+s15),Do.E

Address Generation UnitSC140 DSP Core Reference Manual 2-312.3 Address Generation UnitThe AGU is one of the execution units in the SC140 core. The A

Strona 591

A-316 SC140 DSP Core Reference ManualMOVEU.WStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExamplemoveu.w (r

Strona 592

MOVEU.WSC140 DSP Core Reference Manual A-317Instruction Formats and OpcodesInstruction FieldsC4 DDDDD General RegistersDR HHHH Data/Address RegisterIn

Strona 593 - MOVE.L Move Long (AGU) MOVE.L

A-318 SC140 DSP Core Reference ManualMOVEU.WEA MMM Effective Address NotationRn RRR Address Register000 (Rn+N0) 010 (Rn) 100 (Rn)+N0 110 (Rn)+N2001 (R

Strona 594

MPYSC140 DSP Core Reference Manual A-319MPY Signed Fractional Multiply (DALU) MPYDescriptionStatus and Conditions that Affect InstructionStatus and Co

Strona 595 - MOVE.L C4,(SP+s15)

A-320 SC140 DSP Core Reference ManualMPY0.010 $2000 1/4x 1.100$C000 –1/21.111 $F000 –1/8Example 2mpy d6,d6,d7Instruction Formats and OpcodesNote: ** i

Strona 596

MPYSC140 DSP Core Reference Manual A-321Dn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 101 D5 111 D7Note: Th

Strona 597

A-322 SC140 DSP Core Reference ManualMPYRMPYR Signed Fractional Multiply MPYRand Round (DALU)DescriptionStatus and Conditions that Affect InstructionS

Strona 598

MPYRSC140 DSP Core Reference Manual A-3230.100 0000 0000 0001$4001 x 0.100 0000 0000 0010$4002 0.010 0000 0000 0001 1000 0000 0000 0000$2001 8000round

Strona 599

A-324 SC140 DSP Core Reference ManualMPYR

Strona 600 - $0000 0050

MPYSUSC140 DSP Core Reference Manual A-325MPYSU Fractional Multiply MPYSUSigned By Unsigned (DALU) DescriptionStatus and Conditions that Affect Instru

Strona 601

2-32 SC140 DSP Core Reference ManualAddress Generation UnitAll sixteen address registers (R0–R15) as well as the NSP or ESP are used for generating ad

Strona 602

A-326 SC140 DSP Core Reference ManualMPYSUDn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 101 D5 111 D7Note:

Strona 603

MPYUSSC140 DSP Core Reference Manual A-327MPYUS Fractional Multiply MPYUSUnsigned By Signed (DALU)DescriptionStatus and Conditions that Affect Instruc

Strona 604

A-328 SC140 DSP Core Reference ManualMPYUSInstruction FieldsDc,Dd ee Data Register PairsDn FFF Single Source/Destination Data Register00 D0,D1 01 D2

Strona 605

MPYUUSC140 DSP Core Reference Manual A-329MPYUU Fractional Multiply MPYUUUnsigned By Unsigned (DALU)DescriptionStatus and Conditions that Affect Instr

Strona 606

A-330 SC140 DSP Core Reference ManualMPYUUInstruction FieldsDc,Dd ee Data Register PairsDn FFF Single Source/Destination Data Register00 D0,D1 01 D2

Strona 607

NEGSC140 DSP Core Reference Manual A-331N-RNEG Negate (DALU) NEGDescription Status and Conditions that Affect InstructionStatus and Conditions Changed

Strona 608

A-332 SC140 DSP Core Reference ManualNEGInstruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDn FFF Single S

Strona 609

NOPSC140 DSP Core Reference Manual A-333NOP No Operation (PREFIX) NOPDescriptionStatus and conditions that Affect InstructionNone.Status and Condition

Strona 610

A-334 SC140 DSP Core Reference ManualNOTNOT Bitwise Complement (DALU) NOTDescriptionStatus and Conditions that Affect InstructionNone.Status and Condi

Strona 611

NOTSC140 DSP Core Reference Manual A-335Da JJJ Single Source Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 101 D5 111 D7Note: This instructi

Strona 612

Address Generation UnitSC140 DSP Core Reference Manual 2-33During every instruction cycle, the two AAUs can generate one 32-bit program memory address

Strona 613

A-336 SC140 DSP Core Reference ManualNOTNOT Binary Inversion of a 16-Bit Operand (BMU) NOTDescriptionStatus and Conditions that Affect InstructionNone

Strona 614

NOTSC140 DSP Core Reference Manual A-337Instruction Formats and OpcodesInstruction FieldsDR HHHH Data/Address RegisterInstruction Words Cycles Type Op

Strona 615

A-338 SC140 DSP Core Reference ManualNOT.WNOT.W Binary Inversion of a 16-Bit Operand NOT.W in Memory (BMU)DescriptionThese operations read from memory

Strona 616

NOT.WSC140 DSP Core Reference Manual A-339Examplenot.w (r1)Instruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterRegister/Memory Add

Strona 617

A-340 SC140 DSP Core Reference ManualOROR Bitwise Inclusive OR (DALU) ORDescriptionStatus and Conditions that Affect InstructionNone.Status and Condit

Strona 618 - MOVES.4F

ORSC140 DSP Core Reference Manual A-341Dn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 101 D5 111 D7Note: Thi

Strona 619 - MOVES.L Move Long to MOVES.L

A-342 SC140 DSP Core Reference ManualOROR Bitwise OR on a 16-Bit Operand (BMU) ORDescriptionStatus and Conditions that Affect InstructionNone.Status a

Strona 620

ORSC140 DSP Core Reference Manual A-343Instruction Formats and OpcodesInstruction FieldsDR HHHH Data/Address RegisterInstruction Words Cycles Type Opc

Strona 621 - Memory (AGU)

A-344 SC140 DSP Core Reference ManualOR.WOR.WBitwise OR on a 16-Bit Operand in Memory (BMU) OR.WDescriptionThese operations read from memory, modify t

Strona 622

OR.WSC140 DSP Core Reference Manual A-345Exampleor.w #$f01a,(r1) 1111 0000 0001 1010or 0001 0010 0011 0101 1111 0010 0011 1111Instruction Formats and

Strona 623

2-34 SC140 DSP Core Reference ManualAddress Generation Unit2.3.2 AGU Programming ModelThe programming model of the AGU is shown in Figure 2-13. The a

Strona 624

A-346 SC140 DSP Core Reference ManualOR.Ws16 AAAAAAAAAAAAAAAA Signed 16-bit SP address offset

Strona 625 - MOVEU.L #u32,Db

POPSC140 DSP Core Reference Manual A-347POP Pop a Register from the Software Stack (AGU) POPDescriptionThese operations read the memory address pointe

Strona 626

A-348 SC140 DSP Core Reference ManualPOPStatus and Conditions that Affect InstructionStatus and Conditions Changed By InstructionExamplepop d3Instruct

Strona 627

POPSC140 DSP Core Reference Manual A-349De EEEEE Extension Pairs, Even Registers, and Loop Start RegistersDo eeeee Modifier Control, Odd Registers, an

Strona 628

A-350 SC140 DSP Core Reference ManualPOPNPOPN Pop a Register from the Software Stack POPNUsing the Normal Stack Pointer (AGU)DescriptionThese operatio

Strona 629 - Memory to a Register (AGU)

POPNSC140 DSP Core Reference Manual A-351Status and Conditions that Affect InstructionStatus and Conditions Changed By InstructionExamplepopn d6.e:d7.

Strona 630

A-352 SC140 DSP Core Reference ManualPOPNDe EEEEE Extension Pairs, Even Registers, and Loop Start RegistersDo eeeee Modifier Control, Odd Registers, a

Strona 631

PUSHSC140 DSP Core Reference Manual A-353PUSH Push a Register onto the Software Stack (AGU) PUSHDescriptionThese operations move an even or odd regis

Strona 632 - Rn RRR Address Register

A-354 SC140 DSP Core Reference ManualPUSHStatus and Conditions that Affect InstructionStatus and Conditions Changed By InstructionNoneExamplepush d0.e

Strona 633 - MPY Da,Db,Dn

PUSHSC140 DSP Core Reference Manual A-355Instruction FieldsDe EEEEE Extension Pairs, Even Registers, and Loop Start RegistersDo eeeee Modifier Control

Strona 634

Address Generation UnitSC140 DSP Core Reference Manual 2-352.3.2.1 Address Registers (R0–R15)The sixteen 32-bit address registers R0–R15 can contain

Strona 635

A-356 SC140 DSP Core Reference ManualPUSHNPUSHN Push a Register onto the Software Stack PUSHNUsing the Normal Stack Pointer (AGU)DescriptionThese oper

Strona 636

PUSHNSC140 DSP Core Reference Manual A-357Status and Conditions that Affect InstructionStatus and Conditions Changed By InstructionExamplepushn d0.e:d

Strona 637

A-358 SC140 DSP Core Reference ManualPUSHNInstruction Formats and OpcodesInstruction FieldsDe EEEEE Extension Pairs, Even Registers, and Loop Start Re

Strona 638

RNDSC140 DSP Core Reference Manual A-359RND Round (DALU) RNDDescriptionTwo types of rounding can be used: convergent rounding (round to the nearest ev

Strona 639

A-360 SC140 DSP Core Reference ManualRNDStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionExample 1rnd d1,d5Exa

Strona 640

RNDSC140 DSP Core Reference Manual A-361Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDn FFF Single S

Strona 641

A-362 SC140 DSP Core Reference ManualROLROL Rotate One Bit Left Through the Carry Bit (DALU) ROLDescriptionStatus and Conditions that Affect Instructi

Strona 642

ROLSC140 DSP Core Reference Manual A-363Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDn FFF Single S

Strona 643

A-364 SC140 DSP Core Reference ManualRORROR Rotate One Bit Right Through the Carry Bit (DALU) RORDescriptionStatus and Conditions that Affect Instruc

Strona 644

RORSC140 DSP Core Reference Manual A-365Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDn FFF Single S

Strona 645 - NEG Negate (DALU) NEG

2-36 SC140 DSP Core Reference ManualAddress Generation Unit2.3.2.2.1 Shadow Stack Pointer RegistersBoth stack pointers have shadow registers which c

Strona 646

A-366 SC140 DSP Core Reference ManualRORRTE Return From Exception (AGU) RTEDescriptionNote: Because RTE does not use RAS, returning from a subroutine

Strona 647 - NOP No Operation (PREFIX) NOP

RORSC140 DSP Core Reference Manual A-367ExamplerteInstruction Formats and OpcodesRegister/Memory Address Before AfterESP$00000010 $00000008($000C)$00E

Strona 648 - NOT Da,Dn

A-368 SC140 DSP Core Reference ManualRTEDRTED Return From Exception With a Delay Slot (AGU) RTEDDescriptionStatus and Conditions that Affect Instructi

Strona 649

RTEDSC140 DSP Core Reference Manual A-369ExamplertedInstruction Formats and OpcodesInstruction Commentmove.w #$2000,vba Load the vector base address r

Strona 650 - NOT DR.H

A-370 SC140 DSP Core Reference ManualRTSRTS Return From Subroutine (AGU) RTSDescriptionNote: Because RTS uses the RAS mechanism, returning from an exc

Strona 651

RTSSC140 DSP Core Reference Manual A-371Instruction Formats and OpcodesInstruction WordsCycles1Note 1: RTS uses 3 cycles if the RAS is valid. RTS use

Strona 652

A-372 SC140 DSP Core Reference ManualRTSDRTSD Return From Subroutine With Delay Slot (AGU) RTSDDescriptionStatus and Conditions that Affect Instructio

Strona 653

RTSDSC140 DSP Core Reference Manual A-373Instruction Formats and OpcodesInstruction WordsCycles1Note 1: RTSD uses 3 cycles if the RAS is valid. RTSD u

Strona 654 - OR Da,Dn

A-374 SC140 DSP Core Reference ManualRTSTKRTSTK Restore PC from Stack (AGU) RTSTKDescriptionStatus and Conditions that Affect InstructionStatus and C

Strona 655

RTSTKSC140 DSP Core Reference Manual A-375ExamplertstkInstruction Formats and OpcodesInstruction Comment- - -jsr SUBJump to subroutine at SUB. Push th

Strona 656

Address Generation UnitSC140 DSP Core Reference Manual 2-372.3.2.6 Modifier Control Register (MCTL)The MCTL register is a 32-bit read/write register

Strona 657

A-376 SC140 DSP Core Reference ManualRTSTKDRTSTKD Restore PC from Stack RTSTKDUsing a Delay Slot (AGU)DescriptionStatus and Conditions that Affect In

Strona 658

RTSTKDSC140 DSP Core Reference Manual A-377ExamplertstkdInstruction Formats and OpcodesInstruction Comment- - -jsr SUBJump to subroutine at SUB. Push

Strona 659

A-378 SC140 DSP Core Reference ManualSAT.FSSAT.F Saturate Fractional Data Register SAT.F(DALU)DescriptionStatus and Conditions that Affect Instructio

Strona 660

SAT.FSC140 DSP Core Reference Manual A-379Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDa JJJ Single

Strona 661

A-380 SC140 DSP Core Reference ManualSAT.LSAT.L Saturate 32-Bit Data Register SAT.L (DALU)DescriptionStatus and Conditions that Affect InstructionNone

Strona 662

SAT.LSC140 DSP Core Reference Manual A-381Instruction FieldsDn FFF Single Source/Destination Data Register000 D0 010 D2 100 D4 110 D6001 D1 011 D3 1

Strona 663

A-382 SC140 DSP Core Reference ManualSBCSBC Subtract With Borrow (DALU) SBCDescriptionStatus and Conditions that Affect InstructionStatus and Conditio

Strona 664

SBCSC140 DSP Core Reference Manual A-383The two instructions shown can be used for a 64-bit subtraction, with the sub d0,d1,d1 performing the lower 32

Strona 665

A-384 SC140 DSP Core Reference ManualSBRSBR Subtract And Round (DALU) SBRDescriptionStatus and Conditions that Affect InstructionStatus and Conditions

Strona 666

SBRSC140 DSP Core Reference Manual A-3850010 1010 1110 0111 0000 0000 1000$2AE7 0080– 0001 0101 0011 0000 0000 0000 0011$1539 00300001 0101 1010 1110

Strona 667

SC140 DSP Core Reference Manual viiChapter 5Program Control5.1 Pipeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 668

2-38 SC140 DSP Core Reference ManualAddress Generation Unit2.3.3 Addressing ModesThe SC140 core provides four types of addressing modes: • Register d

Strona 669

A-386 SC140 DSP Core Reference ManualSKIPLSSKIPLS Skip Loop If LC Less Than or SKIPLSEqual to Zero (AGU)DescriptionStatus and Conditions that Affect

Strona 670

SKIPLSSC140 DSP Core Reference Manual A-387Instruction Formats and OpcodesInstruction FieldsInstruction Words Cycles Type Opcode15 8 7 0SKIPLS label 2

Strona 671

A-388 SC140 DSP Core Reference ManualSTOPSTOP Stop Instruction Processing (AGU) STOPDescriptionStatus and Conditions that Affect InstructionStatus and

Strona 672

SUBSC140 DSP Core Reference Manual A-389SUB Subtract (DALU) SUBDescriptionStatus and Conditions that Affect InstructionStatus and Conditions Changed b

Strona 673 - RND Round (DALU) RND

A-390 SC140 DSP Core Reference ManualSUBExample 2sub d0,d1,d2Scaling up is set in SR[5], so L2 bit is set from overflow from bit 30.Instruction Format

Strona 674

SUBSC140 DSP Core Reference Manual A-391Instruction FieldsDa,Db JJJJJ Data Register PairsDa,Da jj Data Register PairsDn FFF Single Source/Destinatio

Strona 675

A-392 SC140 DSP Core Reference ManualSUB2SUB2 Subtract Two 16-Bit Values (DALU) SUB2DescriptionStatus and Conditions that Affect InstructionNone.Statu

Strona 676 - 01516313239

SUB2SC140 DSP Core Reference Manual A-393Instruction Formats and OpcodesInstruction FieldsDn FFF Single Source/Destination Data RegisterDa JJJ Sin

Strona 677

A-394 SC140 DSP Core Reference ManualSUBASUBA Subtract (AGU) SUBADescriptionThis instruction subtracts an immediate or an AGU register from another AG

Strona 678

SUBASC140 DSP Core Reference Manual A-395Instruction Formats and OpcodesInstruction Fieldsrx rrrr AGU Source RegisterRx RRRR AGU Source/Destination Re

Strona 679

Address Generation UnitSC140 DSP Core Reference Manual 2-39• Post-decrement, (Rn)- —The operand address is in the address register. After the operand

Strona 680

A-396 SC140 DSP Core Reference ManualSUBLSUBL Shift Left and Subtract (DALU) SUBLDescriptionStatus and Conditions that Affect InstructionStatus and Co

Strona 681

SUBLSC140 DSP Core Reference Manual A-397Example 2subl d0,d1Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction Fie

Strona 682

A-398 SC140 DSP Core Reference ManualSUBNC.WSUBNC.W Subtract Without Changing SUBNC.Wthe Carry Bit (DALU)DescriptionStatus and Conditions that Affect

Strona 683

SUBNC.WSC140 DSP Core Reference Manual A-399Instruction Formats and OpcodesInstruction FieldsDn FFF Single Source/Destination Data RegisterInstructi

Strona 684

A-400 SC140 DSP Core Reference ManualSXT.xSXT.x Sign-Extension (DALU) SXT.xDescriptionThese operations sign-extend a data register. The sign bit (bit

Strona 685

SXT.xSC140 DSP Core Reference Manual A-401Example 3sxt.l d3Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction Fiel

Strona 686

A-402 SC140 DSP Core Reference ManualSXTA.xSXTA.x Sign-Extension (AGU) SXTA.xDescriptionThese operations sign-extend an AGU register (address or offse

Strona 687

SXTA.xSC140 DSP Core Reference Manual A-403Instruction Formats and OpcodesInstruction Fieldsrx rrrr AGU Source RegisterRx RRRR AGU Source/Destination

Strona 688

A-404 SC140 DSP Core Reference ManualTFRT-ZTFR Transfer Data Register to Data Register (DALU) TFRDescriptionStatus and Conditions that Affect Instruct

Strona 689

TFRSC140 DSP Core Reference Manual A-405Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction FieldsDa JJJ Single S

Strona 690 - [3] NMID Cleared

2-40 SC140 DSP Core Reference ManualAddress Generation Unitactive SP register are unchanged. The type of arithmetic used is always linear. An example

Strona 691

A-406 SC140 DSP Core Reference ManualTFRATFRA Transfer Address Register (AGU) TFRADescriptionStatus and Conditions that Affect InstructionStatus and

Strona 692

TFRASC140 DSP Core Reference Manual A-407Rx RRRR AGU Source/Destination Register0000 N0 0100 — 1000 R0 1100 R40001 N1 0101 — 1001 R1 1101 R50010 N2 01

Strona 693

A-408 SC140 DSP Core Reference ManualTFRATFRA Move the Other Stack Pointer TFRA to/from a Register (AGU)DescriptionStatus and Conditions that Affect

Strona 694 - $0000 0004

TFRASC140 DSP Core Reference Manual A-409Exampletfra r0,ospInstruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterRegister/Memory Add

Strona 695

A-410 SC140 DSP Core Reference ManualTFRcTFRc Conditionally Transfer Data Register TFRc to Data Register (DALU)DescriptionStatus and Conditions that A

Strona 696

TFRcSC140 DSP Core Reference Manual A-411Instruction Formats and OpcodesInstruction FieldsDa JJJ Single Source Data RegisterDn FFF Single Source/D

Strona 697

A-412 SC140 DSP Core Reference ManualTRAPTRAP Execute a Software Exception (AGU) TRAPDescriptionTRAP The starting address of the exception processing

Strona 698

TRAPSC140 DSP Core Reference Manual A-413Status and Conditions Changed by InstructionExample 1trapInstruction Formats and OpcodesRegister Address Bit

Strona 699

A-414 SC140 DSP Core Reference ManualTSTEQTSTEQ Test for Equal to Zero (DALU) TSTEQDescriptionStatus and Conditions that Affect InstructionNone.Status

Strona 700

TSTEQA.xSC140 DSP Core Reference Manual A-415TSTEQA.x Test for Equal to Zero (AGU) TSTEQA.xDescriptionSet the T bit if the source AGU register (Rx) is

Strona 701

Address Generation UnitSC140 DSP Core Reference Manual 2-412.3.3.4 Special Addressing Modes The special addressing modes do not use an address regis

Strona 702 - STOP 1 8 4 1001111101111001

A-416 SC140 DSP Core Reference ManualTSTEQA.xInstruction Formats and OpcodesInstruction FieldsRx RRRR AGU Source/Destination RegisterInstruction Words

Strona 703 - SUB Subtract (DALU) SUB

TSTGESC140 DSP Core Reference Manual A-417TSTGE Test for Greater Than TSTGEor Equal to Zero (DALU)DescriptionStatus and Conditions that Affect Instruc

Strona 704

A-418 SC140 DSP Core Reference ManualTSTGEA.LTSTGEA.L Test for Greater Than or Equal TSTGEA.Lto Zero (AGU)DescriptionStatus and Conditions that Affect

Strona 705

TSTGEA.LSC140 DSP Core Reference Manual A-419Instruction Formats and OpcodesInstruction FieldsRx RRRR AGU Source/Destination RegisterInstruction Words

Strona 706

A-420 SC140 DSP Core Reference ManualTSTGTTSTGT Test for Greater Than Zero (DALU) TSTGTDescriptionStatus and Conditions that Affect InstructionNone.St

Strona 707

TSTGTASC140 DSP Core Reference Manual A-421TSTGTA Test for Greater Than Zero (AGU) TSTGTADescriptionStatus and Conditions that Affect InstructionStatu

Strona 708 - SUBA Subtract (AGU) SUBA

A-422 SC140 DSP Core Reference ManualVSLVSL Viterbi Shift Left Move (AGU) VSLNote: In the operation fields, the term << 1 indicates shift left

Strona 709

VSLSC140 DSP Core Reference Manual A-423DescriptionThe VSL instructions are intended to optimize the implementation of the Viterbi decoder algorithm.

Strona 710 - SUBL Da,Dn

A-424 SC140 DSP Core Reference ManualVSLStatus and Conditions that Affect InstructionStatus and Conditions Changed by InstructionNone.Examplevsl.2w d1

Strona 711

VSLSC140 DSP Core Reference Manual A-425Instruction Formats and OpcodesInstruction FieldsRn RRR Address RegisterInstruction Words Cycles Type Opcode15

Strona 712

2-42 SC140 DSP Core Reference ManualAddress Generation Unit2.3.3.5 Memory Access WidthThe SC140 core supports variable width access to data memory.

Strona 713

A-426 SC140 DSP Core Reference ManualWAITWAIT Wait for an Interrupt (AGU) WAITDescriptionOperation Assembler SyntaxEnters the low-power standby WAIT p

Strona 714

WAITSC140 DSP Core Reference Manual A-427Status and Conditions that Affect InstructionStatus and Conditions Changed by InstructionNoneInstruction Form

Strona 715

A-428 SC140 DSP Core Reference ManualZXT.xZXT.x Zero Extension (DALU) ZXT.xDescriptionThese operations zero-extend a data register.Status and Conditio

Strona 716

ZXT.xSC140 DSP Core Reference Manual A-429Example 3zxt.l d0Instruction Formats and OpcodesNote: ** indicates serial grouping encoding.Instruction Fiel

Strona 717

A-430 SC140 DSP Core Reference ManualZXTA.xZXTA.x Zero Extension (AGU) ZXTA.xDescriptionThese operations zero-extend an AGU source register (address o

Strona 718 - TFR Da,Dn

ZXTA.xSC140 DSP Core Reference Manual A-431Instruction Formats and OpcodesInstruction Fieldsrx rrrr AGU Source RegisterRx RRRR AGU Source/Destination

Strona 719

A-432 SC140 DSP Core Reference ManualZXTA.x

Strona 720 - TFRA rx,Rx

SC140 DSP Core Reference Manual B-1Appendix BStarCore RegistryThe StarCore registry (SCR) is a system that identifies the core version. B.1 Using th

Strona 721

B-2 SC140 DSP Core Reference ManualStarCore RegistryIn SC100 implementations, the SCID is defined at the SoC level by strapping a set of core interfac

Strona 722 - TFRA Rn,OSP

Index I-1AAAU (address arithmetic unit) 1-3, 2-4ABS A-20Accelerator 2-5, 6-57Access width support 2-42ADC A-22ADD A-24ADD2 A-27ADDA A-29ADDL1A A-32ADD

Strona 723

Address Generation UnitSC140 DSP Core Reference Manual 2-43Table 2-19 summarizes the memory address alignment rule for each type of memory access.Tabl

Strona 724

I-2 IndexCCS (comparator condition selection bits) 4-60Change-of-flow instructions 2-68CLB A-113CLR A-115CMPEQ A-117CMPEQ.W A-119CMPEQA A-121CMPGT A-1

Strona 725

Index I-3 CS 4-55EDCAEN 4-55EDCAST5-0 (EDCA #5-0 status) 4-42EDCD (data event detection channel) 4-24, 4-58control register (EDCD_CTRL) 4-58mask regis

Strona 726

I-4 IndexESEL_DTB (ES mask disable trace register) 4-26, 4-65ESEL_ETB (ES mask enable trace register) 4-26, 4-64ESP (exception stack pointer register)

Strona 727

Index I-5 BMSET.W A-82BMTSET A-84BMTSET.W A-86BMTSTC A-89BMTSTC.W A-91BMTSTS A-94BMTSTS.W A-96BRA A-99BRAD A-101BREAK A-103BSR A-105BSRD A-107BT A-109

Strona 728 - TSTEQ Dn

I-6 IndexNOT.W A-338OR A-340, A-342OR.W A-344POP A-347POPN A-350PUSH A-353PUSHN A-356RND A-359ROL A-362ROR A-364RTE A-366RTED A-368RTS A-370RTSD A-372

Strona 729

Index I-7 MIN A-253Modifier registers (M0-M3) 2-36Modulo adder 2-33Modulo addressing 2-4Modulo addressing mode 2-45Move instructions 2-51, 2-52fractio

Strona 730

I-8 IndexRM (rounding mode bit) 3-5RND A-359ROL A-362ROR A-364Rounding 2-21, 2-23RTE A-366RTED A-368RTS A-370RTSD A-372RTSTK A-374RTSTKD A-376SS (scal

Strona 731 - TSTGE Dn

Index I-9 Trace unitcontrol register (TB_CTRL) 4-65read pointer register (TB_RD) 4-69register set 4-30virtual register (TB_BUFF) 4-69write pointer reg

Strona 733

SC140 DSP Core Reference Manual i

Strona 734 - TSTGT Dn

2-44 SC140 DSP Core Reference ManualAddress Generation UnitNote: The “—” that appears in the “R0-R7 Uses MCTL” heading means that it is not applicable

Strona 736

Address Generation UnitSC140 DSP Core Reference Manual 2-452.3.4 Address Modifier ModesThe AAU supports linear, reverse-carry, modulo, and multiple w

Strona 737

2-46 SC140 DSP Core Reference ManualAddress Generation Unitregister Rn has one Mj register assigned to it by encoding in the MCTL. The lower boundary

Strona 738

Address Generation UnitSC140 DSP Core Reference Manual 2-47Table 2-21 describes the modulo register values and the corresponding address calculation.2

Strona 739

viii SC140 DSP Core Reference Manual5.5.5 Fast Return from Subroutines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-365.6

Strona 740

2-48 SC140 DSP Core Reference ManualAddress Generation UnitTable 2-22 describes the modulo register Mj values and the corresponding multiple wrap-arou

Strona 741 - WAIT 1 8 4 1001111101111000

Address Generation UnitSC140 DSP Core Reference Manual 2-492.3.6 Bit Mask InstructionsThe SC140 core provides bit mask instructions on all address re

Strona 742

2-50 SC140 DSP Core Reference ManualAddress Generation UnitTable 2-24 lists the arithmetic instructions that are executed in the BMU.2.3.6.1 Bit Mas

Strona 743

Address Generation UnitSC140 DSP Core Reference Manual 2-512.3.6.1.1 Example of Normal Usage of the Semaphoring MechanismThe following sequence acce

Strona 744

2-52 SC140 DSP Core Reference ManualAddress Generation UnitThe suffix just after the period in the MOVE nomenclature indicates the following:• B = Byt

Strona 745

Address Generation UnitSC140 DSP Core Reference Manual 2-53Integer moves from memory (byte, word, long, two long) are right-aligned in the destination

Strona 746

2-54 SC140 DSP Core Reference ManualAddress Generation Unit.Figure 2-17. Fractional Move InstructionsThe four instructions MOVES.F, MOVES.2F, MOVES.

Strona 747 - Appendix B

Memory InterfaceSC140 DSP Core Reference Manual 2-55The extension bits of the even data register occupy bits 0 to 8 (bit 8 is the limit bit). The exte

Strona 748 - Table B-1. SCID Assignments

2-56 SC140 DSP Core Reference ManualMemory Interface• Memory must resolve access ordering on a cycle by cycle basis. All accesses on a given cycle mus

Strona 749 - Index I-1

Memory InterfaceSC140 DSP Core Reference Manual 2-57The two data buses that connect between the core and the memory are each 64 bits wide. Instruction

Strona 750 - I-2 Index

SC140 DSP Core Reference Manual ix6.7 Core Assembly Syntax with an ISAP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-636.7.1 Id

Strona 751 - Index I-3

2-58 SC140 DSP Core Reference ManualMemory InterfaceTable 2-26 describes the data representation for each 64-bit row in Figure 2-21.2.4.1.3 Data Mov

Strona 752 - I-4 Index

Memory InterfaceSC140 DSP Core Reference Manual 2-59Figure 2-22. Data Transfer in Big and Little Endian ModesFor single-register moves, assuming an

Strona 753 - , A-275, A-279

2-60 SC140 DSP Core Reference ManualMemory Interface2.4.1.4 Multi-Register MovesFor accesses involving more than one register, such as with MOVE.2W

Strona 754 - I-6 Index

Memory InterfaceSC140 DSP Core Reference Manual 2-61This is the desired result. This effect is achieved in little endian mode through logic in the cor

Strona 755 - Index I-7

2-62 SC140 DSP Core Reference ManualMemory Interface2.4.1.5 Instruction Word TransfersInstruction words are transferred to the core from memory over

Strona 756 - I-8 Index

Memory InterfaceSC140 DSP Core Reference Manual 2-63Figure 2-25 shows the memory accesses to the same memory area by both program fetches as well as d

Strona 757 - Index I-9

2-64 SC140 DSP Core Reference ManualMemory Interface2.4.1.6 Memory Access Behavior in Big/Little Endian ModesTable 2-27 shows the representation of

Strona 758 - I-10 Index

Memory InterfaceSC140 DSP Core Reference Manual 2-65MOVE.L(Extension)A0 = L1A1 = B1A2 = L0A3 = A1A0 = A1A1 = L0A2 = B1A3 = L1MOVE.2L A0 = AA1 = BA2 =

Strona 759

2-66 SC140 DSP Core Reference ManualMemory InterfaceNotes:1. Data selected according to VF0 bit in SR, selects D3.l<<1 if VF0=1, D1.L<<1 i

Strona 760

Memory InterfaceSC140 DSP Core Reference Manual 2-67Table 2-28 shows the representation of the stack support instructions in big and little endian mod

Komentarze do niniejszej Instrukcji

Brak uwag