www.ti.com

Peripheral Architecture

Example 1. Address Translation Example

The remote address 0400:0154h (or 0000 0054h) was translated to 8200:0054h on the DM643x (local) device in this example.

The translated address for packets received on the serial interface is determined as follows:

If (RX Packet Address < RX Address Map Size 1 Register) {

Translated Address = RX Packet Address +

RX Address Map Offset 1 Register

}else if (RX Packet Address < (RX Address Map Size 1 Register + RX Address Map Size 2 Register)) {

Translated Address = RX

Packet Address +

 

 

RX

Address

Map Offset

2 Register -

RX

Address

Map Size

1

Register

}else if (RX Packet Address < (RX Address Map Size 1 Register +

RX Address Map Size 2 Register + RX Address Map Size 3 Register)) {

Translated Address = RX Packet Address +

RX Address Map Offset 3 Register -

RX Address Map Size 1 Register -

RX Address Map Size 2 Register

}else if (RX Packet Address < (RX Address Map Size 1 Register +

RX Address Map Size 2 Register + RX Address Map Size 3 Register + RX Address Map Size 4 Register)) {

Translated Address = RX Packet Address +

RX Address Map Offset 4 Register -

RX Address Map Size 1 Register -

RX Address Map Size 2 Register -

RX Address Map Size 3 Register

}else {

Translated Address = 0x0

}

2.9Flow Control

The VLYNQ module includes flow control features. The VLYNQ module automatically generates flow control enable requests, /P/, when the RX/inbound FIFOs (FIFO1 and FIFO2) resources are consumed. The FIFOs can take up to 16 32-bit words.

The remote device will begin transmitting idles, /I/, starting on the first byte boundary following reception of the request. When sufficient RX FIFO resources have been made available, a flow control disable request, /C/, is transmitted to the remote device. In response, the remote device will resume transmission of data.

See Appendix A.

SPRU938B –September 2007

VLYNQ Port

19

Submit Documentation Feedback

Page 19
Image 19
Texas Instruments SPRU938B manual Flow Control, Example 1. Address Translation Example