Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
34
Добавлен:
27.04.2015
Размер:
1.98 Mб
Скачать

OnCE™ Module

12.3.2 OnCE Programming Model

The programming model for the OnCE port consists of the registers which control all emulation and debugging tasks. These consist of command, status, and control registers, as well as breakpoint and bus status registers. The registers in the OnCE port programming model are shown in Figure 12-3 and Figure 12-4.

OCMDR

7

6

5

4

3

2

1

0

OnCE Command

R/W

GO

EX

RS4

RS3

RS2

RS1

RS0

Register

 

 

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

Write-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OSR

7

6

5

4

3

2

1

0

OnCE Status

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register

 

 

 

OS1

OS0

TO

HBO

SBO

OnCE Reset* = $00

*

*

*

 

 

 

 

 

Read-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OCR— $02

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

OnCE Control

COP

DE

BK

BK

BK

BK

BK

DRM

FH

EM1

EM0

PWD

BS1

BS0

BE1

BE0

Register

OnCE Reset = $0010

DIS

 

4

3

2

1

0

 

 

 

 

 

 

 

 

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OCNTR— $03 7

6

5

4

3

2

1

0

OnCE Count

 

 

8-bit event counter

 

 

 

Register

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE Reset = $0000

 

 

 

 

 

 

 

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OBAR— $04 15 14

13 12 11 10

9

8

7

6

5

4

3

2

1

0

 

OnCE Breakpoint

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-bit breakpoint address register

 

 

 

 

 

 

 

Address Register

 

 

 

 

 

 

 

 

 

Reset: Not modified

 

 

(program or data memory breakpoints)

 

 

 

 

 

 

 

Write-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* Indicates reserved bits, written as zero for future compatibility

 

 

 

 

 

 

 

 

 

 

 

OnCE reset occurs when hardware or COP reset occurs, and an ENABLE_ONCE instruction

 

 

 

 

 

 

is not latched into the JTAG instruction register (IR)

 

 

 

 

 

 

 

 

 

AA1389A

Figure 12-3. OnCE Module Registers Accessed Through JTAG

12-6

DSP56824 User’s Manual

 

OnCE Module Architecture

OPGDBR— $08

15 14 13 12 11 10 9

8

7

6

5

4

3

2

1

0

OnCE PGDB

16-bit register used to read registers and memory values

 

 

 

 

Register

 

 

 

 

 

from the DSP core

 

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPDBR— $09

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE PDB

 

 

16-bit register used to execute instructions in debug mode

 

 

 

 

Register

 

 

 

 

 

 

 

 

 

 

 

and restore pipeline upon exit

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPABFR— $0A

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE PAB

 

 

 

 

 

16-bit program fetch address

 

 

 

 

 

 

Fetch Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPABER— $10

15 14 13 12 11 10 9

8

7

6

5

4

3

2

1

0

OnCE PAB

 

16-bit program execute address

 

 

 

 

 

 

Execute Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

Read-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPABDR— $13

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

OnCE PAB

 

 

 

 

 

16-bit program decode address

 

 

 

 

 

 

Decode Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AA1389B

Figure 12-3. OnCE Module Registers Accessed Through JTAG (Continued)

 

OnCE™ Module

12-7

OnCE™ Module

OBAR2— $05

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

OnCE Breakpoint

 

 

 

 

 

16-bit breakpoint address register

 

 

 

 

 

Address Register 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(address or data breakpoints)

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OBMSK2— $06

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

OnCE Breakpoint

 

 

 

 

 

 

 

 

 

16-bit breakpoint mask register

 

 

 

 

 

Mask Register 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(address or data breakpoints)

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OBCTL2— $07

 

 

2

 

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE Breakpoint

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EN

 

INV

DAT

 

 

 

 

 

 

 

 

 

 

 

 

 

Control Register 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE Reset = $0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE reset occurs when hardware or Computer Operating Properly (COP) reset occurs, and an ENABLE_ONCE instruction

is not latched into the JTAG port instruction register (IR)

 

 

 

 

 

 

 

 

 

 

 

 

AA1389C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 12-3. OnCE Module Registers Accessed Through JTAG (Continued)

 

 

 

OPGDBR— X:$FFFF

15

14

13

12

 

11

10

 

9

8

 

7

6

5

4

 

3

2

1

0

 

 

OnCE PGDB

 

 

 

16-bit register used to read registers and memory values

 

 

 

 

 

Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

from the DSP core

 

 

 

 

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Write-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPDBR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

 

11

10

9

8

 

 

7

6

5

4

 

3

2

1

0

 

 

OnCE PDB

 

 

 

 

 

 

Register

 

 

 

 

16-bit register used to execute instructions in debug mode

 

 

 

 

 

Reset: Not modified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

and restore pipeline upon exit

 

 

 

 

 

 

 

 

Write-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE Port interrupt vector:

OnCE TRAP

P:$000C

OnCE TRAPs are Level 1 interrupts and not programmable in the IPR

Note: OPGDBR and OPDBR are not dedicated OnCE module registers. They share functionality with the core. If used

incorrectly, they can give unexpected results.

AA1390

Figure 12-4. OnCE Module Registers Accessed from the Core

The OnCE module has an associated interrupt vector $000C. The user can configure the event modifier (EM) bits of the OCR such that a OnCE event other than trace generates a level 1 non-maskable interrupt. This interrupt capability is described in Section 12.4.4.6, “Event Modifier (EM[1:0])—Bits 6–5.”

12-8

DSP56824 User’s Manual

 

Соседние файлы в папке DSP568xx