Work

Développement et caractérisation d'une solution de traçage pour systèmes hétérogènes CPU-FPGA

Year: 2025
Type: dissertation
Abstract: The evolution of contemporary computing architectures is occurring in a context where the slowdown of Moore's law has accelerated the adoption of heterogeneous systems combining general-purpose processors (CPUs) with hardware accelerators such as GPUs, FPGAs, and ASICs. While these architectures significantly improve performance for specialized applications, they also introduce additional complexity. Traditional hardware and software debugging tools prove insufficient: software tracers provide only a partial view of hardware behavior, while FPGA-integrated analyzers (such as AMD/Xilinx ILAs) offer only localized, short-duration observations, limited in scope and in the number of accessible signals. This thesis proposes a complete, unified, and robust CPU–FPGA tracing infrastructure that enables fine-grained observability of modern heterogeneous systems and facilitates debugging, performance optimization, and the understanding of hardware–software interactions. The proposed infrastructure provides a unified tracing mechanism capable of simultaneously observing FPGA and CPU activity, temporally aligning their events, and enabling a global analysis of system behavior. On the hardware side, the main contribution lies in the design of a generic and modular FPGA tracer built around: 1) Configurable probes capable of monitoring signals, AXI buses, or state machines; 2) A probe-chain inspired by prior work, aggregated into a single AXIStream flow; 3) Aa multi-clock synchronization mechanism; and 4) A PCIe transfer system based on the XDMA subsystem. The entire architecture is automatically generated using Chisel from a high level description. On the software side, the thesis details the implementation of a dedicated Linux kernel driver exposing two devices: a memory-mapped interface for configuring probes and inserting synchronization markers, and a continuous event-stream interface for retrieving raw data from the FPGA. A post-processing module converts these streams into the Common Trace Format (CTF), enabling immediate compatibility with Trace Compass. An extensive experimental evaluation demonstrates the system's ability to sustain very high throughput over PCIe, to trace multiple clock domains continuously, and to maintain a minimal event-loss rate. The thesis analyzes the impact of FIFO depths, DMA bandwidth, event bursts, and multi-domain configurations. Identified limitations (such as scalability and the handling of extreme burst scenarios) are discussed, and several future directions are proposed, including the integration of trace-compression mechanisms.
Language: French
Open Access status: green
Funder: Mitacs
OpenAlex ID: W7140348803
Cites: 29
Cited by:
Related to: 10