LightningSimV2:通过图编译与优化实现更快速、可扩展的高层次综合仿真
LightningSimV2: Faster and Scalable Simulation for High-Level Synthesis via Graph Compilation and Optimization
AI总结:
针对现有HLS仿真工具冗余计算多、大型设计仿真与设计空间探索效率低的问题,提出LightningSimV2工具,通过静态分析、解耦式图仿真等创新,实现全仿真最高3.5倍、增量DSE最高577倍的速度提升。
摘要:
高层次综合(HLS)通过将C或C++代码转换为底层RTL代码,实现了复杂硬件设计的快速原型开发。然而,HLS设计的测试与评估通常仍依赖速度缓慢的RTL级仿真器,这类仿真器往往需要数小时才能给出反馈,针对复杂设计的情况尤为明显。近期的研究成果LightningSim(闪电仿真器)为解决这一问题提供了思路,其仿真工作流的速度比RTL仿真快1到2个数量级。但该工具仍存在多种冗余计算导致的效率低下问题,在大型设计仿真和设计空间探索场景下运行速度较慢。\n针对这些效率问题,我们推出了速度更快、可扩展性更强的仿真工具LightningSimV2。该工具包含三项核心创新:第一,我们执行编译期静态分析,利用HLS设计中的重复结构(例如循环)来降低仿真工作负载;第二,我们提出了一种新颖的基于图的仿真方法,将仿真图构建步骤与图遍历步骤解耦,大幅减少了重复计算;第三,得益于这种解耦架构,LightningSimV2能够极快地执行增量停顿分析,可高效开展针对大量复杂硬件参数(例如最优FIFO深度)的设计空间探索(DSE)。此外,该设计空间探索方法非常适合并行计算,可进一步提升DSE的效率。\n与LightningSim相比,LightningSimV2在全仿真场景下实现了最高3.5倍的速度提升,在增量DSE场景下速度提升最高可达577倍。我们的代码已在GitHub开源,地址为https://github.com/sharc-lab/LightningSim/tree/v0.2.0。
英文摘要:
High-Level Synthesis (HLS) enables rapid prototyping of complex hardware designs by translating C or C++ code to low-level RTL code. However, the testing and evaluation of HLS designs still typically rely on slow RTL-level simulators that can take hours to provide feedback, especially for complex designs. A recent work, LightningSim, helps to solve this problem by providing a simulation workflow one to two orders of magnitude faster than RTL simulation. However, it still exhibits inefficiencies due to several types of redundant computation, making it slow for large design simulation and design space exploration. Addressing these inefficiencies, we introduce LightningSimV2, a much faster and scalable simulation tool. LightningSimV2 features three main innovations. First, we perform compile-time static analysis, exploiting the repetitive structures in HLS designs, e.g., loops, to reduce the simulation workload. Second, we propose a novel graph-based simulation approach, with decoupled simulation graph construction step and graph traversal step, significantly reducing repeated computation. Third, benefiting from the decoupled approach, LightningSimV2 can perform incremental stall analysis extremely fast, enabling highly efficient design space exploration of large numbers of complex hardware parameters, e.g., optimal FIFO depths. Moreover, the DSE is well-suited for parallel computing, further improving the DSE efficiency. Compared with LightningSim, LightningSimV2 achieves up to 3.5x speedup in full simulation and up to 577x speed up for incremental DSE. Our code is open-source on GitHub at https://github.com/sharc-lab/LightningSim/tree/v0.2.0.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。