7.5.6

Status Bit Rules

7-22

7.5.7

Loop Nesting Rules

7-28

7.5.8

Loop LA Rules

7-31

7.5.9

Loop Sequencing Rules

7-33

7.5.10

Loop COF Rules

7-36

7.5.11

General Looping Rules

7-40

7.6

Dynamic Programming Rules

7-41

7.6.1

AGU Dynamic Rules

7-41

7.6.2

Memory Access Rules

7-42

7.6.3

RAS Rules

7-43

7.6.4

Loop Rules

7-43

7.6.5

Rule Detection Across COF Boundaries

7-44

7.6.5.1

Cycle-Based COF Rules

7-44

7.6.5.2

VLES-Based COF Rules

7-45

7.6.6

Rule Detection Across Exception Boundaries

7-46

7.7

Programming Guidelines

7-48

7.7.1

Rules Not Detected Across COF Boundaries

7-49

7.7.2

Good Programming Practices

7-49

7.7.2.1

Source Code Practices

7-49

7.7.2.2

Binary Code Practices

7-50

7.7.2.3

Software Development Practices

7-51

7.8

LPMARK Rules

7-51

7.8.1

LPMARK Instruction Type

7-51

7.8.2

Static Programming Rules

7-52

7.8.2.1

General Grouping Rules

7-52

7.8.2.2

Prefix Grouping Rules

7-52

7.8.3

Dynamic Programming Rules

7-52

7.8.3.1

LPMARK Notation

7-52

7.8.3.2

Loop Nesting Rules

7-53

7.8.3.3

Loop LA Rules

7-53

7.8.3.4

Loop Sequencing Rules

7-55

7.8.3.5

Loop COF Rules

7-56

7.8.3.6

General Looping Rules

7-59

7.8.3.7

Rule Detection Across Exception Boundaries

7-59

7.8.4

LPMARK Programming Guidelines

7-59

7.9

NOP Definition

7-60

7.9.1

Grouping Examples

7-61

Appendix A

SC140 DSP Core Instruction Set

A.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1

A.1.1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2

A.1.1.1 Brackets as ISAP indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4

A.1.1.2 Brackets as address indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4

A.1.2 Addressing Mode Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-5

A.1.3 Data Representation in Memory for the Examples. . . . . . . . . . . . . . . . . . . . . A-6

A.1.4 Encoding Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6

x

SC140 DSP Core Reference Manual

Page 10
Image 10
Freescale Semiconductor specifications SC140 DSP Core Instruction Set, Appendix a