Freescale-semiconductor StarCore SC140 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware Freescale-semiconductor StarCore SC140 herunter. Freescale Semiconductor StarCore SC140 User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 760
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 0
1 2 3 4 5 6 ... 759 760

Inhaltsverzeichnis

Seite 1 - SC140 DSP Core

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

Seite 2

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

Seite 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

Seite 4

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

Seite 5

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

Seite 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

Seite 7

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

Seite 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

Seite 9

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

Seite 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

Seite 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

Seite 12

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

Seite 13 - List of Figures

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

Seite 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

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

Seite 16

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 24 - Abbreviations

xii SC140 DSP Core Reference Manual

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 31

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

Seite 32

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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 41

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

Seite 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

Seite 43

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

Seite 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

Seite 45

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

Seite 46 - 2.2.1.6 Limiting

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

Seite 47

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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 55

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

Seite 56

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

Seite 57

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

Seite 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

Seite 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

Seite 60

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 68 - 2.3.2.2.2 Initializing ESP

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 73

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 78

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

Seite 79

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 90 - 2.4.1.3 Data Moves

xviii SC140 DSP Core Reference Manual

Seite 91

4-70 SC140 DSP Core Reference ManualTrace Unit Registers

Seite 92

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

Seite 93

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

Seite 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

Seite 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

Seite 96

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

Seite 97

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

Seite 98 - 039 32 16

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

Seite 99

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

Seite 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

Seite 101 - Control Registers

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

Seite 102

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

Seite 103

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 109

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

Seite 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

Seite 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

Seite 112 - Interface

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

Seite 113 - EOnCE2 EOnCEn-1 EOnCEn

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 123

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

Seite 124 - 4.3.7 EOnCE Events

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 129

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 135 - 4.5.4 Event Selector (ES)

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

Seite 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

Seite 137

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

Seite 138

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

Seite 139

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

Seite 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

Seite 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

Seite 142

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

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

Seite 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

Seite 145

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

Seite 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

Seite 147

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

Seite 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

Seite 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

Seite 150

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 155

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

Seite 156

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

Seite 157

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

Seite 158

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

Seite 159

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 169

6-70 SC140 DSP Core Reference ManualProgramming Rules

Seite 170

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

Seite 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

Seite 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

Seite 173

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

Seite 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

Seite 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

Seite 176 - + +- - +

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

Seite 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

Seite 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

Seite 179 - Trace Unit Registers

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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 190

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

Seite 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

Seite 192

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 201 - 5.3.3 Memory Access Timing

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

Seite 202

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 223 - 5.7.4 Reset Processing State

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

Seite 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

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

Seite 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

Seite 227

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 240 - 6.4 ISAP Memory Access

7-64 SC140 DSP Core Reference ManualNOP Definition

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 246 - 6.7.3 Conditional Execution

1-6 SC140 DSP Core Reference ManualCore Architecture Features

Seite 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

Seite 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

Seite 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

Seite 250

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 262 - Rule G.P.1

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

Seite 263 - Rule G.P.5

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 271 - Rule D.6

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

Seite 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

Seite 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

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

Seite 275

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

Seite 276 - Rule SR.4

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 288 - Rule L.C.7

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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 294 - Dynamic Programming Rules

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

Seite 295

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

Seite 296 - Rule SR.6

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

Seite 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

Seite 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

Seite 299 - Rule L.N.5

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

Seite 300 - Programming Guidelines

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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 314

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

Seite 315 - Appendix A

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

Seite 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

Seite 317 - M0-M3 Modulo registers

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

Seite 318 - Table A-4. Assembler Syntax

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

Seite 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

Seite 320 - A.1.4 Encoding Notation

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

Seite 321 - A.1.5 Prefix Word Encoding

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

Seite 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

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

Seite 324 - DSP Core Instruction Set

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

Seite 325

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

Seite 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

Seite 327

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

Seite 328

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

Seite 329

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

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

Seite 331

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

Seite 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

Seite 333 - A.2 Instructions

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

Seite 334 - ABS Absolute Value (DALU) ABS

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

Seite 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

Seite 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

Seite 337

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

Seite 338 - ADD Add (DALU) ADD

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

Seite 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

Seite 340

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

Seite 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

Seite 342

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

Seite 343 - ADDA Add (AGU) ADDA

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

Seite 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

Seite 345

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

Seite 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

Seite 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

Seite 348

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

Seite 349

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

Seite 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

Seite 351

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

Seite 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

Seite 353

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

Seite 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

Seite 355 - Example 3

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

Seite 356

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

Seite 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

Seite 358

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

Seite 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

Seite 360

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

Seite 361

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

Seite 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

Seite 363

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

Seite 364 - ASL2A Rx

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

Seite 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

Seite 366

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

Seite 367

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

Seite 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

Seite 369

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

Seite 370

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

Seite 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

Seite 372

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

Seite 373 - 15 8 7 0

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

Seite 374

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

Seite 375

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

Seite 376

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

Seite 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

Seite 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

Seite 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

Seite 380

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

Seite 381 - $00E0 0000

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

Seite 382

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

Seite 383 - 16-Bit Operand (BMU)

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

Seite 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

Seite 385

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

Seite 386

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

Seite 387

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

Seite 388

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

Seite 389

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

Seite 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

Seite 391

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

Seite 392

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

Seite 393

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

Seite 394

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

Seite 395

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

Seite 396

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

Seite 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

Seite 398

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

Seite 399

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

Seite 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

Seite 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

Seite 402

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

Seite 403

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

Seite 404

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

Seite 405 - Bit-Masked Test a BMTSTC.W

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

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

Seite 407

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

Seite 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

Seite 409

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

Seite 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

Seite 411

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

Seite 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

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

Seite 414

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

Seite 415 - Source Code Comments

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

Seite 416

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

Seite 417

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

Seite 418

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

Seite 419

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

Seite 420

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

Seite 421

A-164 SC140 DSP Core Reference ManualEI

Seite 422

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

Seite 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

Seite 424

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

Seite 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

Seite 426

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

Seite 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

Seite 428

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

Seite 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

Seite 430

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

Seite 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

Seite 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

Seite 433

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

Seite 434

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

Seite 435 - CMPEQA rx,Rx

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

Seite 436

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

Seite 437 - CMPGT Da,Dn

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

Seite 438

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

Seite 439

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

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

Seite 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

Seite 442

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

Seite 443

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

Seite 444

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

Seite 445

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

Seite 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

Seite 447

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

Seite 448

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

Seite 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

Seite 450

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

Seite 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

Seite 452

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

Seite 453 - where #u5 = 1

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

Seite 454

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

Seite 455 - DECEQ Dn

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

Seite 456

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

Seite 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

Seite 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

Seite 459

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

Seite 460

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

Seite 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

Seite 462

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

Seite 463 - DI 1 1 4 1001111101111101

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

Seite 464 - Divide Iteration (DALU) DIV

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

Seite 465

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

Seite 466

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

Seite 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

Seite 468

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

Seite 469

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

Seite 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

Seite 471

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

Seite 472

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

Seite 473

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

Seite 474

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

Seite 475 - $0000 1020

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

Seite 476

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

Seite 477 - EI Enable Interrupts (AGU) EI

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

Seite 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

Seite 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

Seite 480

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

Seite 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

Seite 482

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

Seite 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

Seite 484

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

Seite 485

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

Seite 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

Seite 487

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

Seite 488

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

Seite 489 - IADDNC.W #s16,Dn

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

Seite 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

Seite 491

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

Seite 492 - Request (AGU)

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

Seite 493

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

Seite 494

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

Seite 495

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

Seite 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

Seite 497

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

Seite 498

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

Seite 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

Seite 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

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

Seite 502

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

Seite 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

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

Seite 505

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

Seite 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

Seite 507 - $0:$FF FFFF FEDE

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

Seite 508

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

Seite 509 - IMPYUU Da,Db,Dn

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

Seite 510

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

Seite 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

Seite 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

Seite 513 - INC.F Dn

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

Seite 514

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

Seite 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

Seite 516

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

Seite 517 - INSERT Da,Db,Dn

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

Seite 518

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

Seite 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

Seite 520

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

Seite 521

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

Seite 522

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 527

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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 533

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

Seite 534

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

Seite 535

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

Seite 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

Seite 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

Seite 538

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

Seite 539

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

Seite 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

Seite 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

Seite 542 -

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

Seite 543

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

Seite 544

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

Seite 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

Seite 546

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

Seite 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

Seite 548

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

Seite 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

Seite 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

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

Seite 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

Seite 553

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

Seite 554 - $FFFF 8000

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

Seite 555

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

Seite 556

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

Seite 557

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

Seite 558

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 563 - MAX2VIT MAX2 MAX2VIT

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

Seite 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

Seite 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

Seite 566

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

Seite 567 - $00 36AE 3FB4

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

Seite 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

Seite 569

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

Seite 570

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

Seite 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

Seite 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

Seite 573

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

Seite 574

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

Seite 575

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

Seite 576

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

Seite 577

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

Seite 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

Seite 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

Seite 580

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

Seite 581

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

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

Seite 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

Seite 584

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

Seite 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

Seite 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

Seite 587

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

Seite 588 - 0write1read

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

Seite 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

Seite 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

Seite 591

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

Seite 592

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

Seite 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

Seite 594

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

Seite 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

Seite 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

Seite 597

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

Seite 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

Seite 599

A-324 SC140 DSP Core Reference ManualMPYR

Seite 600 - $0000 0050

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

Seite 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

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

Seite 603

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

Seite 604

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

Seite 605

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

Seite 606

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

Seite 607

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

Seite 608

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

Seite 609

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

Seite 610

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

Seite 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

Seite 612

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

Seite 613

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

Seite 614

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

Seite 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

Seite 616

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

Seite 617

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

Seite 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

Seite 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

Seite 620

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

Seite 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

Seite 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

Seite 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

Seite 624

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

Seite 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

Seite 626

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

Seite 627

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

Seite 628

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

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

Seite 630

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

Seite 631

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

Seite 632 - Rn RRR Address Register

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

Seite 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

Seite 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

Seite 635

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

Seite 636

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

Seite 637

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

Seite 638

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

Seite 639

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

Seite 640

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

Seite 641

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

Seite 642

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

Seite 643

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

Seite 644

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

Seite 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

Seite 646

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

Seite 647 - NOP No Operation (PREFIX) NOP

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

Seite 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

Seite 649

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

Seite 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

Seite 651

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

Seite 652

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

Seite 653

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

Seite 654 - OR Da,Dn

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

Seite 655

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

Seite 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

Seite 657

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

Seite 658

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

Seite 659

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

Seite 660

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

Seite 661

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

Seite 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

Seite 663

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

Seite 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

Seite 665

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

Seite 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

Seite 667

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

Seite 668

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

Seite 669

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

Seite 670

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

Seite 671

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

Seite 672

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

Seite 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

Seite 674

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

Seite 675

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

Seite 676 - 01516313239

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

Seite 677

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

Seite 678

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

Seite 679

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

Seite 680

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

Seite 681

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

Seite 682

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

Seite 683

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

Seite 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

Seite 685

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

Seite 686

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

Seite 687

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

Seite 688

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

Seite 689

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

Seite 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

Seite 691

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

Seite 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

Seite 693

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

Seite 694 - $0000 0004

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

Seite 695

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

Seite 696

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

Seite 697

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

Seite 698

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

Seite 699

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

Seite 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

Seite 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

Seite 702 - STOP 1 8 4 1001111101111001

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

Seite 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

Seite 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

Seite 705

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

Seite 706

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

Seite 707

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

Seite 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

Seite 709

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

Seite 710 - SUBL Da,Dn

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

Seite 711

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

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

Seite 713

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

Seite 714

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

Seite 715

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

Seite 716

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

Seite 717

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

Seite 718 - TFR Da,Dn

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

Seite 719

A-432 SC140 DSP Core Reference ManualZXTA.x

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 733

SC140 DSP Core Reference Manual i

Seite 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

Seite 736

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

Seite 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

Seite 738

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

Seite 739

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

Seite 740

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

Seite 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

Seite 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

Seite 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

Seite 744

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

Seite 745

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

Seite 746

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

Seite 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

Seite 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

Seite 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

Seite 750 - I-2 Index

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Kommentare zu diesen Handbüchern

Keine Kommentare