Support for WhiteRabbit PTP core on Altera Arria V platform
The WhiteRabbit (WR) PTP core project provides a platform support package (PSP) for the Arria V family of FPGAs from Altera.
The main ingredient of the PSP is the FPGA gateware, which comes in the form of a parametrisable VHDL module, to be instantiated in your own design.
By using this module, the user gains the benefit of instantiating all the platform-specific support components for the WR PTP core (PHY, PLLs, etc.) in one go, without having to delve into the implementation details, using a setup that has been tested and is known to work well on Arria V FPGAs.
Getting it
The FPGA gateware is available on the dlamprid-vfchd branch of the wr-cores repository (soon to be merged in proposed_master branch).
To get it, use:
git clone -b dlamprid-vfchd git:https://www.ohwr.org/hdl-core-lib/wr-cores.git
cd wr-cores; git submodule update --init
Using it
The top-level VHDL module, which you can include in your own WR PTP core project, is located under platform/altera/xwrc_platform_altera.vhd. A VHDL package with the definition of the module can be found under platform/wr_altera_pkg.vhd.
To use it, set the g_fpga_family
to "arria5"
when you instantiate
the module.
You can also set the generic g_use_default_plls
to FALSE
if you want
to instantiate your own PLLs and provide the clock signals to the PSP.
Otherwise, the default PLLs will be instantiated inside the platform.
These include:
- System PLL which takes as input a 125MHz clock signal and generates a 62.5MHz system clock and a 125MHz reference clock.
- DMTD PLL which takes as input a 20MHz clock signal and generates a 62.5MHz clock for DMTD.
- External reference PLL (only if
g_with_external_clock_input=TRUE
) which takes as input a 10MHz clock signal and generates a 125MHz multiplied external reference clock.
A detailed description of all generics and ports is also provided.
An example (VHDL) instantiation of this module can be found in the VFC-HD board support package.
Support
To get support for the integration of the Arria V platform support package into your WR PTP core application, you can reach the WR developers on the white-rabbit-dev mailing list.
20 December 2016