
2.5 Initialization
2.6 Auto Negotiation
2.7 Address Translation
Architecture
Since VLYNQ devices can be controlled solely over the serial interface (that is, no local CPU exists), anautomatic reliable initialization sequence (without user configuration) establishes a connection betweentwo VLYNQ devices, just after a VLYNQ module is enabled and auto-negotiation occurs. Auto-negotiationis defined in Section 2.6 . The same sequence is used to recover from error conditions.
Bit 0 in the VLYNQ status register (LINK bit) is set to 1 when a link is established.
A link pulse timer generates a periodic link code every 2048 serial clock cycles. The link is lost when timeexpires and no link code has been detected during a period of 4096 serial clock cycles.
Auto-negotiation occurs after reset. It involves placing a negotiation protocol in the outbound data andprocessing the inbound data to establish connection information. The width of the data pins on the serialinterface is automatically determined at reset as a part of the initialization sequence. For a connectionbetween two VLYNQ devices of version 2.0 and later (VLYNQ on DM646x device is version 2.6), thenegotiation protocol using the available serial pins is used to convey the maximum width capability of eachdevice. The TXD data pins are not required to have the same width as the RXD data pins.
The auto width negotiation does not occur until after completion of the VLYNQ 1.x legacy widthconfiguration, which involves a period of 2000 VLYNQ 1.x system clock cycles for connection to VLYNQ1.x devices. After the VLYNQ 1.x has determined its width, it receives the VLYNQ2.x auto widthnegotiation protocol. The VLYNQ 1.x device does not recognize this protocol and transmits error codesover the serial interface. The received error codes allow the VLYNQ 2.x devices to determine how manyserial pins are valid on the connected VLYNQ 1.x device.
Once the width is established, VLYNQ further identifies the version (version 1.x or version 2.x ) of theremote VLYNQ. This better determines the capabilities of the connected VLYNQ device. This is softwarereadable via the VLYNQ auto-negotiation register (AUTNGO), bit 16 (0 = Ver 1.x , 1 = Ver 2.x), after thelink has been established.
Once a link is established, remote VLYNQ device(s) are memory mapped into the local (host) device'saddress space, similar to any other on chip peripherals. Part of the initialization sequence is to enumeratethe VLYNQ devices (single or multiple) into a coherent memory map for accessing each device.
After the enumeration, the host (local) device can access the remote device address map using localdevice addresses. The VLYNQ module in the host device manages the address translation of the localaddress to the remote address. A remote VLYNQ device is mapped to the local device’s address via theaddress map registers (TX address map, RX address map size n, RX address map offset n, where n= 1to 4). The transmit side has a contiguous map; the size of the map is the same as the remote device map.Figure 7 illustrates this mapping.
In the local device, the address of the VLYNQ Remote Memory Map in the local configuration space willbe the transmit address accessing remote device's over the serial interface and is programmed in the TXAddress Map (XAM) register. When the local device transmits, it first strips off the transmit address offsetin local device memory map. Then sends the data with an address offset from the transmit address.
VLYNQ allows each receive packet address to be translated into one of the four mapped regions. The sizeand offset of each memory region must be aligned to 32-bit words. No restriction is placed onprogramming the size or on the offset of each mapped region, as long as the total memory that is mappedinto these one to four regions is not more then 64 MBytes.
Note: Care should be taken while programming the receive address map size register (RAMS n)and the receive address map offset register (RAMO n) values. These registers should beprogrammed with valid address locations and memory size to match the devicespecifications. See the Memory Map Summary and the System Interconnect sections in yourdevice-specific data manual to identify the valid memory regions that can be accessed by anoff-chip peer device through the VLYNQ interface.
16 VLYNQ Port SPRUER8 – December 2007Submit Documentation Feedback