Project objective
This reference platform explores how to acquire continuous high-rate sensor data, process it in FPGA logic and move it efficiently into processor memory without making the CPU responsible for every sample or transfer.
The architecture is designed around sustained throughput rather than short benchmark bursts. The complete data path must remain stable when the input stream continues for long periods of time.
System architecture
Sensor and ADC interface
The acquisition chain begins at the physical interface. Depending on the product, the FPGA may receive samples from ADCs, industrial sensors, communication links or custom high-speed digital interfaces.
The FPGA interface layer is responsible for establishing a stable and correctly timed stream before any higher-level processing begins.
- Clock and data alignment
- Sample framing
- Interface synchronization
- Error detection
- Input buffering
- Channel alignment
FPGA preprocessing
Raw sensor data often does not need to be transferred directly into software. FPGA logic can reduce or reorganize the stream before it reaches system memory.
- Filtering
- Decimation
- Threshold detection
- Channel selection
- Packetization
- Timestamp insertion
- Format conversion
Performing these operations in a streaming pipeline can reduce both software workload and memory bandwidth requirements.
Why DMA matters
DMA allows the acquisition hardware to transfer data directly into system memory without requiring the CPU to copy every block manually.
This becomes increasingly important as acquisition rates increase. A CPU-driven copy loop can consume significant processing resources and introduce unpredictable timing into the data path.
Buffer architecture
Buffering is one of the most important design decisions in a sustained acquisition system.
The software side may temporarily slow down because of scheduling, storage, networking or downstream processing. The acquisition pipeline must absorb those short variations without losing data.
- Double buffering
- Ring buffers
- Descriptor queues
- Block-based DMA transfers
- Producer / consumer queues
The buffer depth should be based on real system behavior rather than simply choosing the largest buffer possible.
Back-pressure and overflow
A continuous acquisition system needs a defined response when the downstream software cannot keep up.
Depending on the application, the architecture may:
- Pause the source
- Drop selected samples or frames
- Increase buffering temporarily
- Reduce processing detail
- Raise an overflow event
The important point is that overload behavior is designed intentionally, rather than discovered only when buffers start overflowing.
Memory bandwidth
FPGA throughput does not automatically translate into system throughput. The memory subsystem must also sustain the required write and read rates.
Real performance therefore depends on:
- DMA burst behavior
- Memory controller efficiency
- Bus contention
- Cache behavior
- CPU access patterns
- Other devices sharing memory bandwidth
User-space software
Once the data reaches memory, a C++ application can consume it for storage, visualization, networking or additional processing.
The software should ideally operate on blocks or buffers rather than individual samples so that it can preserve the throughput achieved by the FPGA and DMA layers.
Bring-up strategy
Confirm sensor timing, clocks, framing and stable FPGA input behavior.
Verify block transfers, memory addressing and sustained DMA operation.
Run continuous traffic and verify that software consumes data without overflow or unexpected stalls.
Performance metrics
Useful validation metrics include:
- Sustained input sample rate
- FPGA pipeline utilization
- DMA throughput
- Memory bandwidth
- Buffer occupancy
- CPU utilization
- Dropped blocks or overflow events
- End-to-end latency
Measuring only peak DMA bandwidth is not enough. The more useful test is whether the complete system can maintain the required data rate under realistic operating conditions.
Common failure modes
- Input clock or synchronization errors
- DMA descriptors not recycled fast enough
- Buffers too small for temporary software stalls
- Incorrect cache coherency handling
- Memory bandwidth contention
- Excessive software copies
- Consumer processing slower than acquisition
- No defined strategy for back-pressure
Example data path
Consider a multi-channel acquisition system producing a continuous stream of sensor samples.
The FPGA receives and aligns the channels, performs filtering and timestamping, packages samples into blocks and sends them through DMA into a ring buffer in system memory.
A C++ application reads completed blocks, performs additional analysis, displays selected information and writes required data to storage or sends it across a network.
The important engineering challenge is ensuring that every stage can sustain the required average rate while also tolerating short-term variations in processing time.
Typical applications
- Scientific instrumentation
- Industrial sensing
- High-speed ADC systems
- Test and measurement equipment
- Radar and signal-processing platforms
- Medical instrumentation
- Custom sensor systems