
Interfaces
Table 19-1: Properties of Avalon-ST Interfaces
Feature Property
Backpressure Ready latency = 0.
Data Width Data width = 8 bits; Bits per symbol = 8.
Channel Supported, up to 255 channels.
Error Not used.
Packet Supported only on the Avalon-ST Bytes to Packet Converter
core’s source interface and the Avalon-ST Packet to Bytes
Converter core’s sink interface.
For more information about Avalon-ST interfaces, refer to the
Avalon Interface Specifications.
Operation—Avalon-ST Bytes to Packets Converter Core
The Avalon-ST Bytes to Packets Converter core receives streams of bytes and transforms them into
packets. When parsing incoming bytestreams, the core decodes special characters in the following
manner, with higher priority operations listed first:
• Escape (0x7d)—The core drops the byte. The next byte is XORed with 0x20.
• Start of packet (0x7a)—The core drops the byte and marks the next payload byte as the start of a
packet by asserting the startofpacket signal on the Avalon-ST source interface.
• End of packet (0x7b)—The core drops the byte and marks the following byte as the end of a packet by
asserting the endofpacket signal on the Avalon-ST source interface. For single beat packets, both the
startofpacket and endofpacket signals are asserted in the same clock cycle.
• Channel number indicator (0x7c)—The core drops the byte and takes the next non-special character
as the channel number.
Figure 19-3: Examples of Bytestreams
0x7c 0x01 0x7a 0x7d 0x5a 0x01 0xff 0x7b 0x3a...
Channel 1 SO P Data = 0x7a Data byte s EOP Las t
Data
byte
Singl e-channel packet for Channel 1:
0x7c 0x02 0x7a 0x7b 0x3a
Channel 2 SO P EOP
Data
byte
Singl e-be at packet:
0x7c 0x00 0x7a 0x10 0x11 0x30 0x31 0x7b 0x14
Channel 0 SO P
(Ch 0)
Data
(Ch 0)
EOP
(Ch 0)
Data
(Ch 0)
Interleaved channel s in a pack et:
0x7c 0x01 0x7c 0x00 0x12 0x13
Channel 1 Data
(Ch 1)
Cha nnel 0 Dat a
(Ch 0)
19-2
Interfaces
UG-01085
2014.24.07
Altera Corporation
Avalon-ST Bytes to Packets and Packets to Bytes Converter Cores
Send Feedback
Komentarze do niniejszej Instrukcji