arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.10672physics.ins-dethep-ex
收藏

两个FPGA案例研究:高级综合与手动HDL在HEP应用中的比较

Two FPGA Case Studies Comparing High Level Synthesis and Manual HDL for HEP applications

Tétrault Marc-André

摘要:

核科学中的实时数据采集系统通常依赖于高速逻辑设计来达到快速数据速率的要求。它们主要用硬件描述语言(HDL)编码。然而,近年来出现了高级综合(HLS)编译器,其显著优点是它们依赖于广泛的C/C++语法。本文的目的是概述HDL和C/C++ HLS为基础的核科学中使用的两个实时数据采集模块的设计之间的差异。第一个模块是实时水晶识别模块,第二个模块是紧凑的事件时间戳排序模块。该评估由经验丰富的VHDL程序员完成,之前没有接受过HLS培训。对于晶体识别模块,HDL和HLS版本具有相同的事件处理间隔,并且HLS实现消耗的查找表和触发器是HDL版本的两倍。另一方面,HLS版本花了一半的时间来编写和调试。对于排序器模块,HLS版本需要大约3到4倍的逻辑资源,处理间隔稍长。与原始HDL代码相比,它也在一半的时间内完成。虽然仍然可以探索不同的编译器指令,以提高这些设计中的源代码清晰度,资源使用率和时序收敛,但该试验表明,HLS是核和等离子体科学实时系统自定义HDL实现的一种令人信服的替代方案。

英文摘要:

Real time data acquisition systems in nuclear science often rely on high-speed logic designs to reach the fast data rate requirements. They are mostly coded in a hardware description language (HDL). However, in recent years, high level synthesis (HLS) compilers have appeared, with the notable advantage that they rely on the widespread C/C++ syntax. This paper's aim is to outline differences between HDL and C/C++ HLS based designs for two real-time data acquisition modules used in nuclear science. The first module is a real-time crystal identification module, and the second is a compact event timestamp sorting module. This evaluation was done by an experienced VHDL programmer with no prior HLS training. For the crystal identification module, both HDL and HLS versions have the same event processing interval, and the HLS implementation consumes twice as many lookup tables and flip flops as the HDL version. On the other hand, the HLS version took half the time to write and debug. For the sorter module, the HLS version requires about 3 to 4 times more logic resources, with a slightly longer processing interval. It was also completed in half the time compared to the original HDL code. While different compiler directives can still be explored to improve source code clarity, resource usage and timing closure in these designs, this trial shows that HLS is a compelling alternative to custom HDL implementations for real time systems in nuclear and plasma science.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑