PS/PL partitioning: putting the hard real-time on the FPGA
Linux is a brilliant operating system and a terrible place to put a sub-50-millisecond safety loop. That single observation decides the whole PS/PL split.
The KPI forces the choice
EdgeStream-GW must trigger a local actuation in under 50 ms with no cloud round-trip. Route that through the Linux scheduler and you inherit scheduling jitter you cannot bound. Route the detection through the FPGA fabric (PL) and it becomes a deterministic, continuous hardware comparison.
Two halves, two jobs
The PL (programmable logic) does the continuous work: digital noise filtering, FFT, and threshold detection. On a critical breach it raises a hardware interrupt — sub-millisecond and deterministic.
The PS (processing system, Linux) does the asynchronous work: it
receives the interrupt and dispatches a pre-configured ActionCommand to the
southbound actuator driver, with logging. The PS never sits in the hot path of the
signal itself.
The interface
The two halves talk over AXI — stream interfaces for high-bandwidth data, memory-mapped for control — plus the interrupt line. That interface is a contract, which means the software layers can be developed and tested with mocks before the RTL exists.
Target hardware
The reference target is the Puzhi ZU2CG / ZU3EG, a Zynq UltraScale+ class device. The partitioning is captured as an architecture decision (Decision 4) with a crisp rationale: routing high-frequency signals through Linux introduces non-deterministic OS latency, so the PL owns determinism and the PS owns orchestration.
The general rule: hardware owns the timing-critical path; software owns the policy. Get that boundary right and the latency budget becomes a design property, not a hope.