Publication: Reducing jitter in software scheduled output using precision time measurement (PTM) capability of peripheral component interconnect express (PCIe) endpoint.
No Thumbnail Available
Date
2017-03
Authors
Tiang, Chee Foon
Journal Title
Journal ISSN
Volume Title
Publisher
Abstract
Time-triggered protocol have gained in popularity with the advent of deterministic protocol in industrial control systems, advanced driver assistance system (ADAS) and mission critical communication in aerospace applications. Software implementation of time-triggered protocol using COTS have always faced the challenge of transmission jitter and one of the main source is due to the serial PCI Express bus. The PTM capability specified since PCI Express Base Specification v3.1, provides a means for characterizing the Round Trip message transit time between PTM Requester and Responder. From the Round Trip, the Link Delay traversing the PCI Express bus can be deduced. In this manner, a method to transfer PTM Master Time to the PCIe endpoint can be performed. Newer Intel Architecture based CPU like Apollo Lake has ability to correlate the Time Stamp Counter (TSC) and the underlying Always Running Timer (ART). ART being the PTM Time Source to the PCIe Root Complex, and thus the PTM Master time. A novel approach is developed on a PCIe PTM endpoint emulated on a FPGA platform, to find out the relationship between the transferred PTM Master Time and a free-running clock at the PCIe endpoint. This allow the correlation of the Endpoint Free Running clock all the way back to TSC, which is the clock the software running on Host CPU understands. By building a time-triggered output at the PCIe endpoint based of the local clock, scheduled by software, a pulse-per-second (PPS) output can be generated. Comparison between this PPS with other PPS source coming from the SoC, as well as PPS derived from the transferred PTM Master Time, allows the jitter performance to be evaluated. Using the aforementioned approach, sub microsecond jitter performance of the time-triggered output of 752 ns is achieved, which represents 86% improvement compared to purely software scheduled output.