Core Initialization; Ethernet Avb Endpoint Setup - Xilinx LogiCORE IP Ethernet AVB Endpoint v2.4 User Manual

Table of Contents

Advertisement

Chapter 13: Software Drivers

Core Initialization

When Using a LogiCORE IP Tri-Mode Ethernet MAC
Note:
EDK, the MAC is delivered with its own drivers and the functionality of this subsection is not required.
The Xilinx LogiCORE™ IP
clock frequency (the MDC signal) and requires specific non-default configuration (VLAN
enabled, Flow Control disabled). The following lines of code of perform these steps.

Ethernet AVB Endpoint Setup

This section describes the main elements that you may have to modify in order to operate
the Ethernet AVB Endpoint software in their application.
System-Specific Defines in xavb_hw.h
This header file assumes that the rtc_clk input is connected to a 125 MHz clock source.
If a clock with a different frequency is connected to this input, then the following #define
should be edited so that the increment written to the
Register"
System-Specific Defines in xavb.h
The timestamp reference plane is defined by IEEE P802.1AS to be at the PHY and since the
Ethernet AVB Endpoint captures the timestamp when the first symbol following the SFD is
seen at the Ethernet MAC Client interface, the software needs to know the fixed latency
values through the MAC and PHY. The following two #defines should be edited to store
the values (in nanoseconds) of the ingress and egress delays through the PHY that is being
used in the system. The values are set to 0 by default.
134
When connecting to the XPS LocalLink Tri-Mode Ethernet MAC (xps_ll_temac), available in
"Tri-Mode Ethernet MACs"
/* Configure MDIO Master in TEMAC - MUST be done before any MDIO
accesses */
XAvbMac_WriteConfig(InstancePtr->Config.BaseAddress,
/* Disable TEMAC Flow Control */
XAvbMac_WriteConfig(InstancePtr->Config.BaseAddress,
/* Initialize TEMAC by enabling Tx and Rx with VLAN capability */
XAvbMac_WriteConfig(InstancePtr->Config.BaseAddress,
XAVB_MAC_TX_VLAN_ENABLE_MASK));
matches the RTC clock.
#define XAVB_RTC_INCREMENT_NOMINAL_RATE 0x00800000
#define XAVB_TX_MAC2PHY_LATENCY_IN_NS 0
#define XAVB_RX_PHY2MAC_LATENCY_IN_NS 0
www.xilinx.com
require initialization of the MDIO
XAVB_MAC_MGMT_REG_OFFSET,
0x0000004F);
XAVB_MAC_FC_REG_OFFSET,
0x0);
XAVB_MAC_TX_REG_OFFSET,
(XAVB_MAC_TX_ENABLE_MASK |
"RTC Increment Value Control
Ethernet AVB Endpoint User Guide
UG492 September 21, 2010

Advertisement

Table of Contents
loading

Table of Contents