... | ... | @@ -56,30 +56,29 @@ below. |
|
|
|
|
|
## Interface of Tx and Rx Streamer modules
|
|
|
|
|
|
To use streamers, the user is required to
|
|
|
|
|
|
- **define configuration of transmission using VHDL generics:**
|
|
|
- *g\_data\_width* - must be identical for the Tx and Rx Streamer,
|
|
|
it defines the width of input/output data in (n\*16) bits.
|
|
|
- *g\_tx\_threshold* - minimum number of data words in the TX
|
|
|
buffer that will trigger transmission of an Ethernet frame.
|
|
|
- *g\_tx\_max\_words\_per\_frame* - maximum number of data words
|
|
|
in a single Ethernet frame. It also defines the maximum block
|
|
|
size.
|
|
|
- *g\_tx\_timeout* - transmission timeout (in clk\_sys\_i cycles),
|
|
|
after which the contents of TX buffer are sent regardless of the
|
|
|
amount of data that is currently stored in the TX Buffer, so
|
|
|
that data in the buffer does not get stuck.
|
|
|
- *g\_buffer\_size* - size of RX buffer in the Rx Streamer, in
|
|
|
data words.
|
|
|
- *g\_filter\_remote\_mac* - when it is TRUE, the Rx Streamer
|
|
|
receives only packets whose destination MAC equals
|
|
|
- **Transmission configuration:**
|
|
|
- *g\_data\_width* - generic defines the width of input/output
|
|
|
data in (n\*16) bits, it must be identical for the Tx and Rx
|
|
|
Streamer.
|
|
|
- *g\_tx\_threshold* - generic defines minimum number of data
|
|
|
words in the TX buffer that will trigger transmission of an
|
|
|
Ethernet frame.
|
|
|
- *g\_tx\_max\_words\_per\_frame* - generic defines maximum number
|
|
|
of data words in a single Ethernet frame. It also defines the
|
|
|
maximum block size.
|
|
|
- *g\_tx\_timeout* - generic defines transmission timeout (in
|
|
|
clk\_sys\_i cycles), after which the contents of TX buffer are
|
|
|
sent regardless of the amount of data that is currently stored
|
|
|
in the TX Buffer, so that data in the buffer does not get stuck.
|
|
|
- *g\_buffer\_size* - generic defines size of RX buffer in the Rx
|
|
|
Streamer, in data words.
|
|
|
- *g\_filter\_remote\_mac* - generic, when it is TRUE, the Rx
|
|
|
Streamer receives only packets whose destination MAC equals
|
|
|
*cfg\_mac\_remote\_i*. When false. accepts all incoming frames.
|
|
|
|
|
|
<!-- end list -->
|
|
|
|
|
|
- **provide networking configuration to the following inputs of Tx and
|
|
|
Rx Streamer:**
|
|
|
- **Networking configuration (Tx and Rx Streamer):**
|
|
|
- cfg\_mac\_local\_i - Local MAC address. Leave at 0 when using
|
|
|
with the WR MAC/Core, it will insert its own source MAC.
|
|
|
- cfg\_mac\_target\_i - Destination MAC address
|
... | ... | @@ -88,7 +87,8 @@ To use streamers, the user is required to |
|
|
|
|
|
<!-- end list -->
|
|
|
|
|
|
- **provide WR timing (optional, to allow latency measurement):**
|
|
|
- **WR timing input (optional, to allow latency measurement, Tx and Rx
|
|
|
Streamer):**
|
|
|
- clk\_ref\_i - White Rabbit reference clock
|
|
|
- tm\_time\_valid\_i - Time valid flag
|
|
|
- tm\_tai\_i - TAI seconds
|
... | ... | @@ -97,9 +97,9 @@ To use streamers, the user is required to |
|
|
|
|
|
<!-- end list -->
|
|
|
|
|
|
- \*write to the Tx Streamer and read from the Rx Streamer data words
|
|
|
using the interfaces in the tables and figure below.
|
|
|
\*
|
|
|
- **FIFO-like interface - the figure and tables below detail
|
|
|
interfaces of Tx and Rx Streamer, data words are written to the Tx
|
|
|
Streamer and read from the Rx Streamer**
|
|
|
/4216
|
|
|
|
|
|
*Tx Streamer**
|
... | ... | @@ -142,6 +142,8 @@ valid. | |
|
|
|
|
|
-----
|
|
|
|
|
|
4 March 2016
|
|
|
|
|
|
|
|
|
|
|
|
### Files
|
... | ... | |