Freescale-semiconductor StarCore SC140 Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Hardware Freescale-semiconductor StarCore SC140. Freescale Semiconductor StarCore SC140 User Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 760
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 0
1 2 3 4 5 6 ... 759 760

Shrnutí obsahu

Strany 1 - SC140 DSP Core

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

Strany 2

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

Strany 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

Strany 4

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

Strany 5

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

Strany 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

Strany 7

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

Strany 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

Strany 9

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

Strany 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

Strany 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

Strany 12

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

Strany 13 - List of Figures

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

Strany 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

Strany 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-

Strany 16

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 24 - Abbreviations

xii SC140 DSP Core Reference Manual

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 31

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

Strany 32

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

Strany 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,

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 41

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

Strany 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

Strany 43

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

Strany 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

Strany 45

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

Strany 46 - 2.2.1.6 Limiting

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

Strany 47

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

Strany 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

Strany 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

Strany 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

Strany 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 “

Strany 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

Strany 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

Strany 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

Strany 55

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

Strany 56

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

Strany 57

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

Strany 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

Strany 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

Strany 60

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 68 - 2.3.2.2.2 Initializing ESP

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 73

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 78

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

Strany 79

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 90 - 2.4.1.3 Data Moves

xviii SC140 DSP Core Reference Manual

Strany 91

4-70 SC140 DSP Core Reference ManualTrace Unit Registers

Strany 92

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

Strany 93

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

Strany 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

Strany 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

Strany 96

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

Strany 97

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

Strany 98 - 039 32 16

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

Strany 99

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

Strany 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

Strany 101 - Control Registers

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

Strany 102

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

Strany 103

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 109

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

Strany 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

Strany 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

Strany 112 - Interface

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

Strany 113 - EOnCE2 EOnCEn-1 EOnCEn

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 123

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

Strany 124 - 4.3.7 EOnCE Events

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 129

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 135 - 4.5.4 Event Selector (ES)

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

Strany 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

Strany 137

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

Strany 138

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

Strany 139

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

Strany 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

Strany 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

Strany 142

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

Strany 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.

Strany 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

Strany 145

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

Strany 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

Strany 147

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

Strany 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

Strany 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

Strany 150

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 155

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

Strany 156

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

Strany 157

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

Strany 158

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

Strany 159

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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.

Strany 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

Strany 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

Strany 169

6-70 SC140 DSP Core Reference ManualProgramming Rules

Strany 170

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

Strany 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

Strany 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

Strany 173

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

Strany 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

Strany 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

Strany 176 - + +- - +

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

Strany 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

Strany 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

Strany 179 - Trace Unit Registers

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

Strany 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

Strany 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,

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 190

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

Strany 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

Strany 192

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 201 - 5.3.3 Memory Access Timing

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

Strany 202

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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/

Strany 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

Strany 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

Strany 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

Strany 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.

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 223 - 5.7.4 Reset Processing State

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

Strany 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

Strany 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, “

Strany 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

Strany 227

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 240 - 6.4 ISAP Memory Access

7-64 SC140 DSP Core Reference ManualNOP Definition

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 246 - 6.7.3 Conditional Execution

1-6 SC140 DSP Core Reference ManualCore Architecture Features

Strany 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

Strany 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

Strany 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

Strany 250

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 262 - Rule G.P.1

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

Strany 263 - Rule G.P.5

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 271 - Rule D.6

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

Strany 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

Strany 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

Strany 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 —

Strany 275

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

Strany 276 - Rule SR.4

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 288 - Rule L.C.7

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

Strany 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

Strany 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

Strany 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 #$

Strany 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

Strany 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

Strany 294 - Dynamic Programming Rules

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

Strany 295

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

Strany 296 - Rule SR.6

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

Strany 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

Strany 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

Strany 299 - Rule L.N.5

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

Strany 300 - Programming Guidelines

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

Strany 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,

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 314

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

Strany 315 - Appendix A

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

Strany 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

Strany 317 - M0-M3 Modulo registers

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

Strany 318 - Table A-4. Assembler Syntax

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

Strany 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

Strany 320 - A.1.4 Encoding Notation

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

Strany 321 - A.1.5 Prefix Word Encoding

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

Strany 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

Strany 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.

Strany 324 - DSP Core Instruction Set

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

Strany 325

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

Strany 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

Strany 327

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

Strany 328

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

Strany 329

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

Strany 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-

Strany 331

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

Strany 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

Strany 333 - A.2 Instructions

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

Strany 334 - ABS Absolute Value (DALU) ABS

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

Strany 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

Strany 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

Strany 337

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

Strany 338 - ADD Add (DALU) ADD

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

Strany 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

Strany 340

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

Strany 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

Strany 342

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

Strany 343 - ADDA Add (AGU) ADDA

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

Strany 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

Strany 345

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

Strany 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

Strany 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

Strany 348

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

Strany 349

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

Strany 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

Strany 351

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

Strany 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

Strany 353

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

Strany 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

Strany 355 - Example 3

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

Strany 356

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

Strany 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

Strany 358

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

Strany 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

Strany 360

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

Strany 361

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

Strany 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

Strany 363

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

Strany 364 - ASL2A Rx

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

Strany 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

Strany 366

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

Strany 367

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

Strany 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

Strany 369

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

Strany 370

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

Strany 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

Strany 372

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

Strany 373 - 15 8 7 0

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

Strany 374

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

Strany 375

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

Strany 376

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

Strany 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

Strany 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

Strany 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

Strany 380

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

Strany 381 - $00E0 0000

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

Strany 382

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

Strany 383 - 16-Bit Operand (BMU)

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

Strany 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

Strany 385

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

Strany 386

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

Strany 387

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

Strany 388

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

Strany 389

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

Strany 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

Strany 391

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

Strany 392

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

Strany 393

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

Strany 394

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

Strany 395

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

Strany 396

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

Strany 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

Strany 398

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

Strany 399

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

Strany 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

Strany 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

Strany 402

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

Strany 403

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

Strany 404

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

Strany 405 - Bit-Masked Test a BMTSTC.W

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

Strany 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 + (

Strany 407

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

Strany 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

Strany 409

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

Strany 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

Strany 411

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

Strany 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

Strany 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,

Strany 414

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

Strany 415 - Source Code Comments

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

Strany 416

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

Strany 417

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

Strany 418

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

Strany 419

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

Strany 420

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

Strany 421

A-164 SC140 DSP Core Reference ManualEI

Strany 422

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

Strany 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

Strany 424

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

Strany 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

Strany 426

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

Strany 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

Strany 428

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

Strany 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

Strany 430

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

Strany 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

Strany 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

Strany 433

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

Strany 434

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

Strany 435 - CMPEQA rx,Rx

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

Strany 436

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

Strany 437 - CMPGT Da,Dn

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

Strany 438

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

Strany 439

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

Strany 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 $

Strany 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

Strany 442

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

Strany 443

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

Strany 444

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

Strany 445

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

Strany 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

Strany 447

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

Strany 448

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

Strany 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

Strany 450

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

Strany 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

Strany 452

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

Strany 453 - where #u5 = 1

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

Strany 454

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

Strany 455 - DECEQ Dn

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

Strany 456

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

Strany 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

Strany 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

Strany 459

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

Strany 460

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

Strany 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

Strany 462

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

Strany 463 - DI 1 1 4 1001111101111101

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

Strany 464 - Divide Iteration (DALU) DIV

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

Strany 465

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

Strany 466

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

Strany 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

Strany 468

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

Strany 469

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

Strany 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

Strany 471

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

Strany 472

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

Strany 473

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

Strany 474

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

Strany 475 - $0000 1020

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

Strany 476

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

Strany 477 - EI Enable Interrupts (AGU) EI

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

Strany 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

Strany 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

Strany 480

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

Strany 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

Strany 482

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

Strany 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

Strany 484

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

Strany 485

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

Strany 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

Strany 487

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

Strany 488

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

Strany 489 - IADDNC.W #s16,Dn

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

Strany 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

Strany 491

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

Strany 492 - Request (AGU)

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

Strany 493

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

Strany 494

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

Strany 495

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

Strany 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

Strany 497

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

Strany 498

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

Strany 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

Strany 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

Strany 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 (

Strany 502

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

Strany 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

Strany 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,

Strany 505

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

Strany 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

Strany 507 - $0:$FF FFFF FEDE

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

Strany 508

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

Strany 509 - IMPYUU Da,Db,Dn

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

Strany 510

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

Strany 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

Strany 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

Strany 513 - INC.F Dn

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

Strany 514

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

Strany 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

Strany 516

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

Strany 517 - INSERT Da,Db,Dn

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

Strany 518

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

Strany 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

Strany 520

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

Strany 521

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

Strany 522

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 527

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

Strany 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

Strany 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.

Strany 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

Strany 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

Strany 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

Strany 533

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

Strany 534

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

Strany 535

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

Strany 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

Strany 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

Strany 538

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

Strany 539

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

Strany 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

Strany 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

Strany 542 -

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

Strany 543

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

Strany 544

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

Strany 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

Strany 546

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

Strany 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

Strany 548

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

Strany 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

Strany 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

Strany 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,(

Strany 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

Strany 553

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

Strany 554 - $FFFF 8000

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

Strany 555

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

Strany 556

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

Strany 557

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

Strany 558

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 563 - MAX2VIT MAX2 MAX2VIT

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

Strany 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

Strany 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

Strany 566

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

Strany 567 - $00 36AE 3FB4

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

Strany 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

Strany 569

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

Strany 570

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

Strany 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

Strany 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

Strany 573

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

Strany 574

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

Strany 575

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

Strany 576

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

Strany 577

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

Strany 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

Strany 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

Strany 580

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

Strany 581

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

Strany 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 ($

Strany 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

Strany 584

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

Strany 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

Strany 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

Strany 587

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

Strany 588 - 0write1read

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

Strany 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

Strany 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

Strany 591

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

Strany 592

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

Strany 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

Strany 594

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

Strany 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

Strany 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

Strany 597

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

Strany 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

Strany 599

A-324 SC140 DSP Core Reference ManualMPYR

Strany 600 - $0000 0050

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

Strany 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

Strany 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:

Strany 603

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

Strany 604

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

Strany 605

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

Strany 606

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

Strany 607

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

Strany 608

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

Strany 609

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

Strany 610

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

Strany 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

Strany 612

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

Strany 613

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

Strany 614

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

Strany 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

Strany 616

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

Strany 617

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

Strany 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

Strany 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

Strany 620

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

Strany 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

Strany 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

Strany 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

Strany 624

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

Strany 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

Strany 626

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

Strany 627

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

Strany 628

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

Strany 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.

Strany 630

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

Strany 631

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

Strany 632 - Rn RRR Address Register

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

Strany 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

Strany 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

Strany 635

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

Strany 636

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

Strany 637

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

Strany 638

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

Strany 639

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

Strany 640

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

Strany 641

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

Strany 642

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

Strany 643

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

Strany 644

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

Strany 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

Strany 646

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

Strany 647 - NOP No Operation (PREFIX) NOP

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

Strany 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

Strany 649

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

Strany 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

Strany 651

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

Strany 652

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

Strany 653

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

Strany 654 - OR Da,Dn

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

Strany 655

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

Strany 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

Strany 657

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

Strany 658

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

Strany 659

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

Strany 660

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

Strany 661

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

Strany 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

Strany 663

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

Strany 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

Strany 665

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

Strany 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

Strany 667

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

Strany 668

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

Strany 669

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

Strany 670

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

Strany 671

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

Strany 672

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

Strany 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

Strany 674

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

Strany 675

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

Strany 676 - 01516313239

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

Strany 677

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

Strany 678

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

Strany 679

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

Strany 680

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

Strany 681

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

Strany 682

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

Strany 683

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

Strany 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

Strany 685

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

Strany 686

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

Strany 687

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

Strany 688

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

Strany 689

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

Strany 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

Strany 691

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

Strany 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

Strany 693

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

Strany 694 - $0000 0004

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

Strany 695

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

Strany 696

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

Strany 697

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

Strany 698

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

Strany 699

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

Strany 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

Strany 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

Strany 702 - STOP 1 8 4 1001111101111001

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

Strany 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

Strany 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

Strany 705

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

Strany 706

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

Strany 707

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

Strany 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

Strany 709

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

Strany 710 - SUBL Da,Dn

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

Strany 711

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

Strany 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.

Strany 713

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

Strany 714

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

Strany 715

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

Strany 716

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

Strany 717

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

Strany 718 - TFR Da,Dn

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

Strany 719

A-432 SC140 DSP Core Reference ManualZXTA.x

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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)

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 733

SC140 DSP Core Reference Manual i

Strany 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

Strany 736

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

Strany 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

Strany 738

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

Strany 739

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

Strany 740

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

Strany 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

Strany 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

Strany 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

Strany 744

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

Strany 745

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

Strany 746

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

Strany 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

Strany 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

Strany 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

Strany 750 - I-2 Index

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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 =

Strany 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

Strany 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

Komentáře k této Příručce

Žádné komentáře