Skip to main content
QUICK REVIEW

[论文解读] Manticore: Hardware-Accelerated RTL Simulation with Static Bulk-Synchronous Parallelism

Mahyar Emami, Sahand Kashani|arXiv (Cornell University)|Jan 23, 2023
Embedded Systems Design TechniquesComputer Science被引用 3
一句话总结

Manticore 是一种硬件加速的RTL仿真器,采用静态批量同步并行(BSP)执行模型,消除了运行时同步开销,实现了在225个基于FPGA的核心上高效细粒度并行。其仿真速率超过115 kHz,尽管时钟频率仅为高端CPU的几分之一,但仍优于最先进的软件仿真器(如Verilator)。

ABSTRACT

The demise of Moore's Law and Dennard Scaling has revived interest in specialized computer architectures and accelerators. Verification and testing of this hardware depend heavily upon cycle-accurate simulation of register-transfer-level (RTL) designs. The fastest software RTL simulators can simulate designs at 1--1000 kHz, i.e., more than three orders of magnitude slower than hardware. Improved simulators can increase designers' productivity by speeding design iterations and permitting more exhaustive exploration. One possibility is to exploit low-level parallelism, as RTL expresses considerable fine-grain concurrency. Unfortunately, state-of-the-art RTL simulators often perform best on a single core since modern processors cannot effectively exploit fine-grain parallelism. This work presents Manticore: a parallel computer designed to accelerate RTL simulation. Manticore uses a static bulk-synchronous parallel (BSP) execution model to eliminate fine-grain synchronization overhead. It relies entirely on a compiler to schedule resources and communication, which is feasible since RTL code contains few divergent execution paths. With static scheduling, communication and synchronization no longer incur runtime overhead, making fine-grain parallelism practical. Moreover, static scheduling dramatically simplifies processor implementation, significantly increasing the number of cores that fit on a chip. Our 225-core FPGA implementation running at 475 MHz outperforms a state-of-the-art RTL simulator running on desktop and server computers in 8 out of 9 benchmarks.

研究动机与目标

  • 解决现代多核CPU在RTL仿真中因细粒度并行性利用效率低下而导致的性能瓶颈。
  • 缩短仿真周转时间,提升硬件开发周期中设计者的生产效率。
  • 通过专用加速器架构,实现高吞吐量、周期精确的RTL设计仿真。
  • 证明静态调度可通过消除运行时同步成本,使细粒度并行在RTL仿真中变得实用。
  • 提供经编译器优化、确定性的硬件平台,支持可扩展的高性能仿真。

提出的方法

  • Manticore采用静态批量同步并行(BSP)执行模型,所有通信和同步均在编译时调度,从而消除运行时开销。
  • 该架构使用数百个简单、确定性的处理器核心,每个核心具有极简指令集,以利用RTL设计中的细粒度并发性。
  • 定制编译器静态分析RTL代码,识别并行任务,并根据数据依赖关系将任务及其通信与同步调度至各核心。
  • 通信通过硬件优化的片上网络(NoC)管理,支持核心间低延迟、批量同步的数据传输。
  • 系统在FPGA上实现,配备225个核心,运行频率为475 MHz,实现高核心数量与高能效。
  • 编译器为Manticore加速器生成二进制代码,确保编译与仿真周转时间快速,类似软件开发工作流。
Figure 1. An example single-clock netlist (top) and its DAG representation (bottom). Circles represent gates and rectangles represent registers.
Figure 1. An example single-clock netlist (top) and its DAG representation (bottom). Circles represent gates and rectangles represent registers.

实验结果

研究问题

  • RQ1静态调度能否消除细粒度并行RTL仿真中的运行时同步开销?
  • RQ2基于静态BSP的硬件加速仿真器与最先进的软件RTL仿真器相比,其仿真吞吐量如何?
  • RQ3具有数百个简单核心的专用架构在RTL仿真中相比通用CPU能提升多少性能?
  • RQ4是否可行通过确定性的、基于编译器调度的执行模型,而非动态运行时调度,实现RTL仿真中的高性能?
  • RQ5静态调度对多样化RTL基准测试的仿真吞吐量有何性能影响?

主要发现

  • Manticore的225核FPGA原型实现仿真速率超过115 kHz,显著优于在高端CPU上运行的Verilator。
  • 在9个基准测试中的8个,Manticore的表现优于在桌面和服务器级处理器上运行的最先进的软件RTL仿真器Verilator。
  • 静态BSP模型消除了运行时同步与通信开销,实现了对细粒度并行性的高效利用。
  • 基于编译器的静态调度使数百个核心可集成于单个芯片上,相比通用多核处理器,显著提升了并行性。
  • 仿真性能与设计的活动因子无关,而某些单线程仿真器(如ESSENT)对低活动工作负载敏感。
  • 该系统可实现每天多次长周期仿真,与传统仿真方式(每周仅数次)相比,显著提升了开发人员的生产力。
Figure 2. The static BSP execution model. Each core performs a local computation and then sends its result to the cores that need it for the next computation phase. Cores wait (with compiler-inserted NOp s) until all communication completes before starting new computation.
Figure 2. The static BSP execution model. Each core performs a local computation and then sends its result to the cores that need it for the next computation phase. Cores wait (with compiler-inserted NOp s) until all communication completes before starting new computation.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。