Fast data packet sorting method based on FPGA on-chip RAM

Abstract The study of fast sorting algorithms has long been an enduring research focus. Traditional sorting algorithms often suffer from high time complexity, typically staying at ( n 2 ) or O ( n × log 2 n ). Given the parallel processing advantages of field programmable gate array (FPGA), it has become a popular platform for algorithm acceleration. However, existing hardware sorting acceleration methods remain rooted in classical software algorithm models, merely leveraging hardware for parallel execution, without fully exploring the unique architecture and resources of FPGAs. In response, this paper proposes a fast sorting method that leverages on-chip random-access memory (RAM), uniquely tailored to FPGA characteristics. First, a mapping is established between the key fields of data packets and the on-chip RAM addresses. Then, the data packets are written into RAM based on this mapping, which also inevitably result in some RAM addresses being left empty. Next, a indicator register is maintained to dynamically track which RAM addresses are empty. Finally, the data packets are sequentially read from RAM addresses, and the indicator register helps skip empty addresses to enhance readout efficiency. Due to the inherent ordering of RAM addresses, the data packets become naturally ordered after read. Simulation results confirm that this method can reduce the time complexity to O ( n ), providing a novel solution for fast sorting in real-time data streams.

Authors

Institutions

Publication Details

Journal
Journal of Instrumentation
Published
2025-02-01
DOI
https://doi.org/10.1088/1748-0221/20/02/p02023
Primary Topic
Particle Detector Development and Performance
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Fast data packet sorting method based on FPGA on-chip RAM

Wentao Wang, Jianhua Zhang, Wei Jiang, Bo Yang et al.
Journal of Instrumentation
Particle Detector Development and Performance
article

Fast data packet sorting method based on FPGA on-chip RAM

Wentao Wang, Jianhua Zhang, Wei Jiang, Bo Yang, Xiao-Feng Cao
article en

Abstract

Abstract The study of fast sorting algorithms has long been an enduring research focus. Traditional sorting algorithms often suffer from high time complexity, typically staying at ( n 2 ) or O ( n × log 2 n ). Given the parallel processing advantages of field programmable gate array (FPGA), it has become a popular platform for algorithm acceleration. However, existing hardware sorting acceleration methods remain rooted in classical software algorithm models, merely leveraging hardware for parallel execution, without fully exploring the unique architecture and resources of FPGAs. In response, this paper proposes a fast sorting method that leverages on-chip random-access memory (RAM), uniquely tailored to FPGA characteristics. First, a mapping is established between the key fields of data packets and the on-chip RAM addresses. Then, the data packets are written into RAM based on this mapping, which also inevitably result in some RAM addresses being left empty. Next, a indicator register is maintained to dynamically track which RAM addresses are empty. Finally, the data packets are sequentially read from RAM addresses, and the indicator register helps skip empty addresses to enhance readout efficiency. Due to the inherent ordering of RAM addresses, the data packets become naturally ordered after read. Simulation results confirm that this method can reduce the time complexity to O ( n ), providing a novel solution for fast sorting in real-time data streams.

Journal of InstrumentationVol. 20(02)
Southwest University of Science and Technology (CN), China Academy of Engineering Physics (CN)
Openalex Percentile: Top 98%
Particle Detector Development and Performance
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.