DPTC-An FPGA-Based Trace Compression
Artikel i vetenskaplig tidskrift, 2020

Recording of flash-ADC traces is challenging from both the transmission bandwidth and storage cost perspectives. This work presents a configuration-free lossless compression algorithm, which addresses both limitations, by compressing the data on-the-fly in the controlling FPGA. Thus it can easily be used directly in front-end electronics. The method first computes the differences between consecutive samples in the traces, thereby concentrating the most probable values around zero. The values are then stored as groups of four, with only the necessary least-significant bits in a variable-length code, packed in a stream of 32-bit words. To evaluate the efficiency, the storage cost of compressed traces is modeled as a baseline cost including ADC noise, and a cost for pulses that depends on amplitude and width. The free parameters and the validity of the model are determined by compressing artificial traces with varying characteristics. The compression method was also applied to actual data from different types of detectors. A typical storage cost is around 4 to 5 bits per sample. Code for the FPGA implementation in VHDL and for the CPU decompression routine in C are available as open source software, both able to operate at speeds of 400 Msamples/s.

Data compression


lossless compression

Central Processing Unit

field programmable gate array (FPGA)

open source

real-time data acquisition


data acquisition


front-end electronics

data compression

Analog-to-digital conversion (ADC)


variable-length code


Field programmable gate arrays


Giovanni Bruni

Chalmers, Fysik, Subatomär fysik och plasmafysik

Håkan T Johansson

Subatomär, högenergi- och plasmafysik

IEEE Transactions on Circuits and Systems I: Regular Papers

1549-8328 (ISSN)

Vol. 67 1 189-197


Sannolikhetsteori och statistik


Annan elektroteknik och elektronik



Mer information

Senast uppdaterat