To implement the PTP master in AFDX Switch, a refercence clock system is required.
For that
reason we are interfacing a GPS clock.
Proposal 1:
MOECN card has a UART interface with which we can interface GPS chipset on FPGA. GPS
chipset will send clock details every one second(based on configuration) to the CPU on MOECN
card. In this scheme, the PTP master protocol need to be implemented on CPU(PIC controller). And
the delay will be added to the packet as the packet traverse from CPU to the End system as shown
in fig(Purple color arrow indications). And also it is difficult to copy the PTP timer registers data in
Ethernet Phys to CPU for delay calulations. So the timing may not be so precisely calucaleted in
this scheme.
Proposal 2:
In this scheme, we will interface GPS chipset directly to FPGA. GPS chipset will send clock details
every one second(based on configuration) to the FPGA. In this scheme, the PTP master protocol
and GPS chipset driver need to be implemented on FPGA. We can directly read the PTP timer
registers data in Ethernet Phys as soon as we get a interrupt from PHY (PHY interrupts when
detects a PTP packet). So the timing can be precisely calucaleted in this scheme. In this scheme we
will be having 8 Ethernet ports for testing.
Note: The plan is to give provision for both the schemes in hardware so that based on feasibility we
can implement PTP master.