Hi all,
I'm contemplating a distributed data acquisition system design, whereby N number of standalone data acquisition system (DAS) modules are connected via ethernet to a computer. The computer serves as the system 'master', and performs post-processing on the data collected by each of the distributed DAS modules.
Each DAS module is based upon an SoC FPGA; the Programmable Logic (PL) is responsible for high-throughput, low-latency signal acquisition and measurement and maintaining the device's internal high resolution timestamp, and the Processing System (PS) is responsible for device configuration management, initial signal processing and packaging, interfacing with external control systems and communicating with the computer 'master'. I was unsure as to whether an SoC approach would be most suited for this application, but have arrived at this solution (for the time being) following some very insightful input in this thread
here.
Each of the DAS modules would be the same, and would have the following high-level structure:

As per the above image, the high-throughput, low-latency circuitry (ADC, DI, TC, etc.) interfaces with the FPGA, with external control module interfacing (CAN, RS-232/RS-485, etc.) and device configuration interfacing with the CPU. Ethernet 1 is the designated ethernet interface for communication with the computer master; ethernet 2 is intended for industrial ethernet communication with external control modules. Data from the FPGA will be passed to the CPU for initial processing and packaging for transmission to the master via the available internal 32/64-bit interfaces (e.g. AXI4).
T1 is the internal timestamp/time domain pertaining to DAS 1, with T2 corresponding to the internal timestamp/time domain of DAS 2 and so forth up until Tn for DAS N. The timestamp functionality will be common across all DAS modules.
Below is an indicative representation of the system arrangement with 4 DAS modules, each connected to the computer master via their Ethernet 1 ports:

The concept I'm trying to understand at the moment is synchronisation. In order to support successful correlation of the acquired data across the distributed acquisition systems, the internal timestamps for each of the DAS modules (i.e. T1, T2, T3 and T4 in the above example) need to be synchronised with each other. From the research I've done, I believe the proposed ethernet approach could facilitate this synchronisation (with sub-microsecond accuracy) via the IEEE1588 PTP protocol. I could see this working as follows:
- As each DAS module comes online, it's internal 64-bit timestamp starts counting.
- The DAS module is configured as a PTP slave, and communicates with the computer master which is configured as the PTP grandmaster.
- The computer master determines the offsets, etc. via the PTP communication to establish clock synchronisation between the DAS module and the computer master.
- The DAS module sends its internal 64-bit timestamp value along with its data payload to the computer master, where the computer master converts the internal timestamp into the synchronised 'PTP domain' such that the data from each of the DAS modules is aligned to the same time reference/domain.
Does that make sense? Is that a reasonable approach? An alternative option I've pondered is waiting for all remote devices to be connected and PTP synchronisation established with the master, and then sending a 'START_TIMESTAMP' signal from the master to each of the remote devices to start their internal timestamps at the same time. If this approach was reliable/accurate then the internal timestamps wouldn't need to be sent with each data packet from each remote device to the master, as synchronisation of each of the device's internal timestamps would be guaranteed.
I had planned on using a Zynq 7000 SoC for this project, but upon further reading of the Xilinx documentation, as well as some forum questions/comments from users and Xilinx staff it appears that PTP functionality in the Zynq 7000 series SoC doesn't actually work? I've seen one or two mentions that PTP slave functionality does work, but most mentions of IEEE1588 are for ZynqMP and Versal only.
With that said, it looks like the PolarFire SoC supports PTP; any comments or recommendations as to a suitable SoC platform/family would also be appreciated!
Thanks!