TMS320VC5502

Fixed-Point Digital Signal Processor

www.ti.com

SPRS166J –APRIL 2001 –REVISED AUGUST 2006

3.14 Internal Ports and System Registers

The 5502 includes three internal ports that interface the CPU core with the peripheral modules. Although these ports cannot be directly controlled by user code, the registers associated with each port can be used to monitor a number of error conditions that could be generated through illegal operation of the 5502. The port registers are described in the following sections.

The 5502 also includes two registers that can be used to monitor and control several aspects of the interface between the CPU and the system-level peripherals, these registers are also described in the following sections.

3.14.1 XPORT Interface

The XPORT interfaces the CPU core to all peripheral modules. The XPORT will generate bus errors for invalid accesses to any registers that fall under the ranges shown in Table 3-48. The INTERREN bit of the XPORT Configuration Register (XCR) controls the bus error feature of the XPORT. The INTERR bit of the XPORT Bus Error Register (XERR) is set to '1'when an error occurs during an access to a register listed in Table 3-48. The EBUS and DBUS bits can be used to distinguish whether the error occurred during a write or read access.

Table 3-48. I/O Addresses Under Scope of XPORT

I/O ADDRESS RANGE

0x0000–0x03FF

0x1400–0x17FF

0x2000–0x23FF

The PERITO bit of the XERR is used to indicate that a CPU, DMA, or HPI access to a disabled/idled peripheral module has generated a time-out error. The time-out error feature is enabled through the PERITOEN bit of the Time-Out Control Register (TOCR). A time-out error is generated when 512 clock cycles pass without a response from the peripheral register.

The XPORT can be placed into idle by setting the XPORTI bit of the Idle Control Register (ICR) and executing the IDLE instruction. When the XPORT is in idle, it will stop accepting new peripheral module requests and it will also not check for internal I/O bus errors. If there is a request from the CPU core or a peripheral module, the XPORT will not respond and hang. The ICR register will generate a bus error if the XPORT is idled without the CPU or Master Port domains being in idle mode.

98

Functional Overview

Submit Documentation Feedback

TMS320VC5502

Fixed-Point Digital Signal Processor

www.ti.com

SPRS166J –APRIL 2001 –REVISED AUGUST 2006

3.14.1.1 XPORT Configuration Register (XCR)

The XPORT Configuration Register bit layout is shown in Figure 3-44 and the bits are described in Table 3-49.

15

14

8

INTERREN

 

Reserved

R/W, 1

 

R, 0000000

7

 

0

 

 

Reserved

 

 

R, 00000000

LEGEND: R = Read, W = Write, n = value at reset

Figure 3-44. XPORT Configuration Register Layout (0x0100)

Table 3-49. XPORT Configuration Register Bit Field Description

BIT NAME

BIT NO.

ACCESS

RESET VALUE

 

DESCRIPTION

INTERREN

15

R/W

1

INTERREN bit

 

 

 

 

INTERREN = 0:

 

 

 

 

 

The XPORT will not generate a bus error for invalid accesses to

 

 

 

 

 

registers listed in Table 3-48. Note that any invalid accesses to

 

 

 

 

 

these registers will hang the pipeline.

 

 

 

 

INTERREN = 1:

 

 

 

 

 

The XPORT will generate a bus error for invalid accesses to

 

 

 

 

 

registers listed in Table 3-48.(1) Note that when a bus error

 

 

 

 

 

occurs, any data returned by the read instruction will not be

 

 

 

 

 

valid.

Reserved

14-0

R

000000000000000

Reserved

(1)This feature will not work if the XPORT is placed in idle through the ICR. However, a bus error will be generated if the XPORT is placed in idle without the CPU being in idle.

Submit Documentation Feedback

Functional Overview

99

TMS320VC5502

Fixed-Point Digital Signal Processor

www.ti.com

SPRS166J –APRIL 2001 –REVISED AUGUST 2006

3.14.1.2 XPORT Bus Error Register (XERR)

The XPORT Bus Error Register bit layout is shown in Figure 3-45 and the bits are described in Table 3-50.

15

14

13

12

11

 

8

INTERR

 

Reserved

PERITO

 

 

Reserved

R, 0

 

R, 00

R, 0

 

 

R, 0000

7

 

5

4

3

2

0

 

Reserved

EBUS

DBUS

 

Reserved

 

R, 000

 

R, 0

R, 0

 

R, 000

LEGEND: R = Read, W = Write, n = value at reset

 

 

 

 

 

 

Figure 3-45. XPORT Bus Error Register Layout (0x0102)

 

 

Table 3-50. XPORT Bus Error Register Bit Field Description

BIT NAME

BIT NO.

ACCESS

RESET VALUE

 

 

DESCRIPTION

INTERR

15

R

0

INTERR bit

 

 

 

 

 

 

INTERR = 0: No error

 

 

 

 

 

INTERR = 1: An error occurred during an access to one of the

 

 

 

 

registers listed in Table 3-48.

Reserved

14–13

R

00

Reserved

 

 

PERITO

12

R

0

PERITO bit

 

 

 

 

 

 

PERITO = 0: No error

 

 

 

 

 

PERITO = 1: A time-out error occurred during an access to a

 

 

 

 

peripheral register.

 

 

Reserved

11–5

R

0000000

Reserved

 

 

EBUS

4

R

0

EBUS error bit(1)

 

 

 

 

 

 

EBUS = 0: No error

 

 

 

 

 

 

EBUS = 1: An error occurred during an EBUS access (write) to

 

 

 

 

one of the registers listed in Table 3-48.

DBUS

3

R

0

DBUS error bit(1)

 

 

 

 

 

 

DBUS = 0: No error

 

 

 

 

 

 

DBUS = 1: An error occurred during a DBUS access (read) to

 

 

 

 

one of the registers listed in Table 3-48.

Reserved

2–0

R

000

Reserved

 

 

(1)See the TMS320C55x DSP CPU Reference Guide (literature number SPRU371) for more information on the D-bus and E-bus.

3.14.2 DPORT Interface

The DPORT interfaces the CPU to the EMIF module. The DPORT is capable of enabling write posting on the EMIF module. Write posting prevents stalls to the CPU during external memory writes. Two write posting registers, which are freely associated with E and F bus writes, exist within the DPORT and are used to store the write address and data so that writes can be zero wait state for the CPU. External memory writes will not generate stalls to the CPU unless the two write posting registers are filled. Write posting is enabled by setting the WPE bit of the DCR to 1.

The EMIFTO bit of the DERR is used to indicate that a CPU, DMA, HPI, or IPORT access to external memory has generated a time-out error. The time-out error feature is enabled through the EMIFTOEN bit of the Time-Out Control Register (TOCR). This function is not recommended during normal operation of the 5502.

The DPORT can be placed into idle through the EMIFI bit of the Idle Control Register (ICR) and executing the IDLE instruction. When the DPORT is in idle, it will stop accepting new EMIF requests. If there is a request from the CPU or the EMIF, the DPORT will not respond and hang. The ICR register will generate a bus error if the DPORT is idled without the CPU or Master Port domains being in idle.

100

Functional Overview

Submit Documentation Feedback

TMS320VC5502

Fixed-Point Digital Signal Processor

www.ti.com

SPRS166J –APRIL 2001 –REVISED AUGUST 2006

3.14.2.1 DPORT Configuration Register (DCR)

The DPORT Configuration Register bit layout is shown in Figure 3-46 and the bits are described in Table 3-51.

15

 

 

 

8

 

 

 

Reserved

 

 

 

R, 00000000

7

6

 

 

0

WPE

 

 

 

Reserved

R/W, 0

 

 

 

R, 0000000

LEGEND: R = Read, W = Write, n = value at reset

 

 

 

 

Figure 3-46. DPORT Configuration Register Layout (0x0200)

 

Table 3-51. DPORT Configuration Register Bit Field Description(1)

BIT NAME

BIT NO.

ACCESS

RESET VALUE

DESCRIPTION

Reserved

15-8

R

00000000

Reserved

WPE

7

R/W

0

Write Posting Enable bit(1)

 

 

 

 

WPE = 0: Write posting disabled

 

 

 

 

WPE = 1: Write posting enabled

Reserved

6-0

R

0000000

Reserved

(1)Write posting should not be enabled or disabled while the EMIF is conducting a transaction with external memory.

3.14.2.2 DPORT Bus Error Register (DERR)

The DPORT Bus Error Register bit layout is shown in Figure 3-47 and the bits are described in Table 3-52.

15

13

12

11

8

Reserved

 

EMIFTO

 

Reserved

R, 000

 

R, 0

 

R, 0000

7

 

 

 

0

 

 

Reserved

 

 

R, 0000000

LEGEND: R = Read, W = Write, n = value at reset

Figure 3-47. DPORT Bus Error Register Layout (0x0202)

Table 3-52. DPORT Bus Error Register Bit Field Description

BIT NAME

BIT NO.

ACCESS

RESET VALUE

DESCRIPTION

Reserved

15-13

R

000

Reserved

EMIFTO

12

R

0

EMIFTO bit

 

 

 

 

EMIFTO = 0: No error

 

 

 

 

EMIFTO = 1: Error 1 error

Reserved

11-0

R

000000000000

Reserved

Submit Documentation Feedback

Functional Overview

101

Соседние файлы в папке MAZ-DOD-MAT-2012