CSI Positioning Hardware Accelerator Using FPGA
2026 (English)Independent thesis Basic level (professional degree), 10 credits / 15 HE credits
Student thesis
Abstract [en]
This thesis presents the design and testing of a hardware accelerator for CSI-based positioning using an FPGA. The goal was to investigate if a quantized Convolutional Neural Network (CNN) could estimate a position from Channel State Information (CSI) and run fast enough on FPGA hardware. The model was trainedin software using PyTorch and Brevitas. The trained model was then exported to QONNX and converted to a hardware accelerator using the FINN toolchain. The final hardware test was done on a Zybo Z7-20 FPGA board using PYNQ.
Three antenna scenarios were tested: Distributed, Uniform Linear Array (ULA), and Uniform Rectangular Array (URA). The evaluation used an indoor MaMIMO CSI dataset that covers an area of approximately 2.5 m by 2.5 m. The verified quantized software model showed a mean positioning error of 15.83 mm for Distributed, 34.28 mm for ULA, and 17.16 mm for URA. The hardware performance test on the Zybo Z7-20 showed an average latency of about 4.608 ms and a throughput of about 217 FPS for all three scenarios. The Vivado resource reports showed that the design fit on the selected FPGA board.
The results show that a quantized CNN model for CSI-based positioning can be implemented as an FPGA accelerator. The accelerator reached low latency, while the positioning accuracy was evaluated using the verified quantized software model. The FPGA test focused on deployment, latency, throughput, and resource usage. Future work should validate the end-to-end FPGA positioning output by comparing the FPGA output values directly with the software model andground-truth labels.
Abstract [sv]
Denna rapport presenterar design och testning av en hårdvaruaccelerator för CSI-baserad positionering med FPGA. Målet var att undersöka om ett kvantiserat Convolutional Neural Network (CNN) kundeuppskattaenposition från Channel State Information (CSI) och köras tillräckligt snabbt på FPGA-hårdvara. Modellen tränades först i mjukvara med PyTorch och Brevitas. Den tränade modellen exporterades sedan till QONNX och konverterades till en hårdvaruaccelerator med FINN. Det slutliga hårdvarutestet gjordes på ett Zybo Z7-20 FPGA-kort med PYNQ.
Tre antennscenarier testades: Distributed, Uniform Linear Array (ULA) och Uniform Rectangular Array(URA). Vid utvärderingen använde vi ett inomhus MAMIMO CSI dataset som täckte ett område på ungefär 2.5m gånger 2.5m. Den verifierade kvantiserade mjukvarumodellen visade ett medelpositioneringsfel på 15.83 mm för Distributed, 34.28 mm för ULA och 17.16 mm för URA. Hårdvarutestet på Zybo Z7-20 visade en genomsnittlig latens på ungefär 4.608 ms och en genomströmning på ungefär 217 FPS för alla tre scenarier. Resursrapporterna från Vivado visade att designen fick plats på det valda FPGA-kortet.
Resultaten visar att en kvantiserad CNN-modell för CSI-baserad positionering kan implementeras som en FPGA-accelerator. Acceleratorn uppnådde låg latens,medan positioneringsnoggrannheten utvärderades med den verifierade kvantiserade mjukvarumodellen. FPGA-testet fokuserade på driftsättning, latens, genomströmning och resursanvändning. Framtida arbete bör validera den kompletta FPGA-positioneringsutgången genom att jämföra FPGA-utgångsvärden direkt med mjukvarumodellen och sanna positionsvärden.
Place, publisher, year, edition, pages
2026. , p. 41
Keywords [en]
CSI-positioning, FPGA, CNN, FINN, Brevitas, QONNX, Zybo Z7-20
Keywords [sv]
CSI-positionering, FPGA, CNN, FINN, Brevitas, QONNX, Zybo Z7-20
National Category
Artificial Intelligence
Identifiers
URN: urn:nbn:se:hh:diva-60308OAI: oai:DiVA.org:hh-60308DiVA, id: diva2:2099931
Educational program
Mechatronic Engineer, 180 credits
Supervisors
Examiners
2026-10-062026-09-092026-10-06Bibliographically approved