# 硬件仿真

硬件仿真是一种硅前验证方法，它将芯片或系统设计——从RTL（寄存器传输级：芯片制造前的设计描述）或门级网表映射到可编程硬件上——以足够高的速度执行，从而在芯片制造完成之前就能运行真实的嵌入式软件。HDL仿真器执行设计的速度为几十或几百赫兹，而仿真器运行速度可达数百千赫兹至兆赫兹级别，大约快三到六个数量级。<sup>[1](https://www.rizzatti.com/the-rise-fall-and-rebirth-of-in-circuit-emulation-part-1-of-2/)</sup><sup> • </sup><sup>[2](https://www.eetimes.com/a-match-made-in-chip-verification-heaven-simulation-and-emulation/)</sup> 与FPGA原型板不同，商用仿真器可映射超过十亿门的设计，并提供广泛的信号可见性和可配置的追踪功能，但受限于有限的捕获资源。<sup>[3](https://www.electronicdesign.com/technologies/test-measurement/article/21800494/point-counterpoint-hardware-emulations-versatility)</sup>

| 关键事实 | 数值 |
|---|---|
| 执行速度 | 基于处理器的仿真在1倍时钟下为600 kHz至1.5 MHz；Cadence Palladium Z1上可达4 MHz<sup>[4](https://www.design-reuse.com/article/58131-a-primer-on-processor-based-emulation/)</sup><sup> • </sup><sup>[5](https://www.cadence.com/content/dam/cadence-www/global/en_US/documents/tools/system-design-verification/palladium-z1-ds.pdf)</sup> |
| 设计容量 | 最高92亿ASIC门（Palladium Z1）；超过300亿门（ZeBu Server 5，10机架），可扩展至600亿门以上<sup>[5](https://www.cadence.com/content/dam/cadence-www/global/en_US/documents/tools/system-design-verification/palladium-z1-ds.pdf)</sup><sup> • </sup><sup>[6](https://www.synopsys.com/content/dam/synopsys/verification/technical-papers/zebu-server5-spec-mar2023.pdf)</sup> |
| 编译速度 | 单工作站每小时最高1.4亿门（Palladium Z1）；基于FPGA的大型流程需数天至数周<sup>[5](https://www.cadence.com/content/dam/cadence-www/global/en_US/documents/tools/system-design-verification/palladium-z1-ds.pdf)</sup><sup> • </sup><sup>[7](https://people.csail.mit.edu/sanchez/papers/2023.ash.micro.pdf)</sup> |
| 相对仿真的加速比 | 全芯片Bluegene/Q多FPGA仿真相比逻辑级软件仿真加速超过100,000倍<sup>[8](https://dl.acm.org/doi/10.1145/2145694.2145720)</sup> |
| 调试可见性 | 仿真器通常比FPGA原型提供更好的内部信号可见性和可配置追踪，但捕获资源有限<sup>[3](https://www.electronicdesign.com/technologies/test-measurement/article/21800494/point-counterpoint-hardware-emulations-versatility)</sup> |
| 成本演变 | 1992年约每门5美元、需数月搭建（Quickturn Enterprise），到现代系统每门不到1美分、搭建时间不到一周<sup>[9](https://dvcon-proceedings.org/wp-content/uploads/hardware-emulation-ice-vs-virtual-presentation.pdf)</sup> |

## 工作原理

两种机制占主导地位。在基于处理器的仿真中，设计数据库被编译为大量微型布尔处理器的指令。在每个时间步中，每个处理器可以计算任意4输入逻辑函数，输入可以是任何处理器此前计算的结果、设计输入或存储器内容。<sup>[4](https://www.design-reuse.com/article/58131-a-primer-on-processor-based-emulation/)</sup> 一个仿真周期调度建模完整设计所需的所有处理器步骤；大型设计通常调度125至320个步骤，在1倍时钟下对应600 kHz至1.5 MHz。<sup>[4](https://www.design-reuse.com/article/58131-a-primer-on-processor-based-emulation/)</sup> 由于数千个求解器并发工作，对于每秒周期数而言，处理单元的速度不如并发性重要。<sup>[10](http://www.deepchip.com/items/0522-02.html)</sup>

在基于FPGA的仿真中，RTL被综合为分布在许多FPGA上的可配置逻辑。例如，Mentor Veloce 2由定制的Crystal2芯片构建，这些芯片包含可编程逻辑阵列、用户存储器、在芯片间传输信号的虚拟连线逻辑，以及追踪每个时序元件的调试资源。<sup>[11](https://indico.cern.ch/event/305730/contributions/703215/attachments/581425/800387/Veloce_Emulator.pdf)</sup> 分区、时钟与同步以及调试支持必须保持跨FPGA的周期精确性和周期可重现性。<sup>[8](https://dl.acm.org/doi/10.1145/2145694.2145720)</sup>

## 实现方式

工程师首先准备设计：门控时钟必须转换，因为未能生成预期的门控时钟会迫使工具使用级联时钟而非时钟树；工艺库的存储器实例化被替换为FPGA存储器原语或通用存储器模型。<sup>[12](https://blaauw.engin.umich.edu/wp-content/uploads/sites/342/2024/02/FALCON_-An-FPGA-Emulation-Platform-for-Domain-Specific-SoCs-DSSoCs.pdf)</sup> 编译随后执行RTL综合、跨仿真器芯片或FPGA的分区、布局布线以及资源分配，生成平台特定的配置或执行映像；基于FPGA的流程生成比特流。<sup>[11](https://indico.cern.ch/event/305730/contributions/703215/attachments/581425/800387/Veloce_Emulator.pdf)</sup><sup> • </sup><sup>[13](https://technav.ieee.org/topic/hardware-emulation/)</sup> 对于大型SoC，这需要数小时或数天。<sup>[13](https://technav.ieee.org/topic/hardware-emulation/)</sup>

编译后的设计随后连接到激励源：在工作站上运行、通过事务器连接的测试平台、虚拟原型或物理目标硬件。基于事务的通信——主机交换的是事务而非单个信号翻转——是主机与被测硬件设计之间SCE-MI接口的基础。<sup>[14](https://www.eejournal.com/article/20100601-simem/)</sup> 调试设置在运行前选择要追踪的信号，因为捕获资源有限。<sup>[15](https://arxiv.org/abs/2604.15073)</sup>

## 起源

硬件仿真紧随20世纪80年代后半叶现场可编程门阵列的发明而出现，互连FPGA阵列被用于在流片前验证设计。人们试验了专用的基于硬件的验证引擎，并开始了硬件辅助验证工具——包括仿真器和基于FPGA的原型——的研发。<sup>[1](https://www.rizzatti.com/the-rise-fall-and-rebirth-of-in-circuit-emulation-part-1-of-2/)</sup>

基于处理器的架构曾在IBM内部仅供内部使用，从未商业化推出；1996年IBM将该技术以OEM方式授权给Quickturn，CoBALT（并发广播阵列逻辑技术）仿真系统是一个基于定制处理器的编译码系列。<sup>[16](https://www.edn.com/quickturns-new-emulation-family-sets-the-standard-for-verification-performance-and-capacity/)</sup> 1998年Cadence收购了Quickturn并停止了基于FPGA的方案，理由是搭建和编译缓慢、调试效果差、执行速度随设计规模增大而下降；Cadence将基于处理器的架构作为[Palladium](https://www.edgepedia.org/zh/palladium)系列推广。<sup>[17](https://www.edn.com/hardware-emulation-in-mid-life-moving-to-center-stage/)</sup> 在学术工作中，RAMP（多处理器研究加速器）——一个用于多处理器架构研究的多FPGA平台——由约翰·瓦夫日内克（John Wawrzynek）及其同事于2007年在《IEEE Micro》上描述。<sup>[18](https://doi.org/10.1109/mm.2007.39)</sup>

## 变体

EDA行业已确定三种仿真架构：基于处理器的架构，由Cadence在Palladium系列中推广；基于定制FPGA的架构，由Mentor Graphics（现[Siemens EDA](https://www.edgepedia.org/zh/siemens-eda)）在Veloce系列中倡导；以及基于标准FPGA的架构，由EVE采用，其ZeBu名称代表“零缺陷”（zero-bugs）。<sup>[3](https://www.electronicdesign.com/technologies/test-measurement/article/21800494/point-counterpoint-hardware-emulations-versatility)</sup><sup> • </sup><sup>[19](https://www.rizzatti.com/lauro-on-cdns-palladium-xp2-vs-ment-veloce-2-vs-snps-zebu-3/)</sup>

使用模式包括仿真加速、连接到实际硬件的在线仿真（ICE）、带有事务器用于PCIe和USB等协议的协同仿真测试平台，以及VirtuaLAB等虚拟协议方案。<sup>[11](https://indico.cern.ch/event/305730/contributions/703215/attachments/581425/800387/Veloce_Emulator.pdf)</sup> 在ICE模式下，仿真器插入物理目标系统上的插座中，替代尚未制造完成的芯片，用实时数据验证设计；ICE适合真实流量和专有接口，而基于虚拟事务器的模式适合远程访问、确定性行为和假设分析。<sup>[9](https://dvcon-proceedings.org/wp-content/uploads/hardware-emulation-ice-vs-virtual-presentation.pdf)</sup> ICE提供最高性能，通常比软件仿真器快10,000至100,000倍，但需要在仿真器周围配置速度缓冲器件。<sup>[4](https://www.design-reuse.com/article/58131-a-primer-on-processor-based-emulation/)</sup> 混合协同仿真将主机上的虚拟平台（如SystemC/TLM或快速CPU模型）与以周期精度执行选定RTL块的仿真器耦合在一起。<sup>[15](https://arxiv.org/abs/2604.15073)</sup>

## 应用

仿真位于设计流程的后段，此时较长的编译时间可以接受，因为RTL变更很少；商用仿真器设计为以MHz速度支持超大型设计，而一些大型FPGA原型系统也可以验证十亿门级设计。<sup>[7](https://people.csail.mit.edu/sanchez/papers/2023.ash.micro.pdf)</sup> 一旦构建了仿真映像，它便可在数小时或数天的高吞吐量执行、回归测试和大型验证活动中重复使用。<sup>[15](https://arxiv.org/abs/2604.15073)</sup> 嵌入式软件启动是一个标志性用途：一项已发表的协同验证工作在产品制造前完成了操作系统开发，并在硅前发现了致命的DMA缺陷，芯片返回后评估板一天内即正常工作；Ultra Sparc I项目在制造前通过在[仿真](https://www.edgepedia.org/zh/simulation)器上启动Solaris测试平台代码完成了验证。<sup>[20](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/2004/dac04/pdffiles/p299.pdf)</sup> 由1,000台PC组成的软件仿真机群每天可处理近十亿个周期，但无法运行顺序嵌入式软件测试，对此硬件仿真才是合适的选择。<sup>[2](https://www.eetimes.com/a-match-made-in-chip-verification-heaven-simulation-and-emulation/)</sup>

## 局限与替代方案

从数据来看，某一代产品的已发表比较显示，Palladium-XP2和Veloce-2约为1.5至2.0 MHz，ZeBu Server 3约为5.0 MHz，编译速率分别约为每小时70、35和5百万门。<sup>[19](https://www.rizzatti.com/lauro-on-cdns-palladium-xp2-vs-ment-veloce-2-vs-snps-zebu-3/)</sup> 没有独立基准能解决这些差异。

故障模式有充分记录。编译大型设计可能需要数天至数周，因为网表必须跨仿真器芯片分区，每个分区都要布局布线；一项在两个Alveo U250 FPGA上的研究设计经过数天调优后仅达到1.4 MHz，受限于FPGA间延迟。<sup>[21](https://people.csail.mit.edu/sanchez/papers/2026.lotus.isca.pdf)</sup><sup> • </sup><sup>[7](https://people.csail.mit.edu/sanchez/papers/2023.ash.micro.pdf)</sup> 调试可观测性代价高昂：需要调试时，数MHz的峰值性能降至10至100 kHz，而以调试为重点与以性能为重点的架构在Coremark测试上显示出接近100倍的性能差异。<sup>[22](https://dvcon-proceedings.org/wp-content/uploads/TS1D-Architecture-to-tradeoff-Performance-vs-Debug-for-SW-Development-on-Emulation-Platform-paper.pdf)</sup> 以全速捕获每个内部信号是不可行的，追踪缓冲区有限，因此必须预先选择信号和触发条件，未监控的缺陷会迫使重新编译。<sup>[15](https://arxiv.org/abs/2604.15073)</sup> 更高性能的ICE同样意味着更低的调试能力，并且需要为外设配备Speedbridge适配器。<sup>[22](https://dvcon-proceedings.org/wp-content/uploads/TS1D-Architecture-to-tradeoff-Performance-vs-Debug-for-SW-Development-on-Emulation-Platform-paper.pdf)</sup>

与替代方案对比：RTL仿真上限约为2,000万门，在该规模下速度低于每秒1个周期，而硬件仿真快1,000倍至1,000,000倍，容量为20亿门，容量优势达100倍。<sup>[10](http://www.deepchip.com/items/0522-02.html)</sup> FPGA原型运行更快，在自由运行的异步时钟下为10至300 MHz，而硬件仿真采用同步确定性时钟；FPGA原型的成本也低得多，但当前一代的容量因平台而异，HAPS-200等系统在RTL级别可运行高达108亿门的芯片设计，而原型缺乏完全可见性，并因映射伪影产生原型特有的调试困惑。<sup>[3](https://www.electronicdesign.com/technologies/test-measurement/article/21800494/point-counterpoint-hardware-emulations-versatility)</sup><sup> • </sup><sup>[10](http://www.deepchip.com/items/0522-02.html)</sup><sup> • </sup><sup>[23](https://semiwiki.com/eda/synopsys/372834-unified-emulation-and-prototyping-pipedream-or-reality/)</sup>

## References

1. [The Rise, Fall, and Rebirth of In-Circuit Emulation (Part 1 of 2)](https://www.rizzatti.com/the-rise-fall-and-rebirth-of-in-circuit-emulation-part-1-of-2/)
2. [A Match Made in Chip Verification Heaven: Simulation and Emulation](https://www.eetimes.com/a-match-made-in-chip-verification-heaven-simulation-and-emulation/)
3. [Point/Counterpoint: Hardware Emulation's Versatility](https://www.electronicdesign.com/technologies/test-measurement/article/21800494/point-counterpoint-hardware-emulations-versatility)
4. [A primer on processor-based emulation](https://www.design-reuse.com/article/58131-a-primer-on-processor-based-emulation/)
5. [Cadence Palladium Z1 Enterprise Emulation Platform (datasheet)](https://www.cadence.com/content/dam/cadence-www/global/en_US/documents/tools/system-design-verification/palladium-z1-ds.pdf)
6. [Synopsys ZeBu Server 5 Spec Sheet (March 2023)](https://www.synopsys.com/content/dam/synopsys/verification/technical-papers/zebu-server5-spec-mar2023.pdf)
7. [Accelerating RTL Simulation with Hardware-Software Co-Design (ASH, MICRO 2023)](https://people.csail.mit.edu/sanchez/papers/2023.ash.micro.pdf)
8. [A cycle-accurate, cycle-reproducible multi-FPGA system for accelerating multi-core processor simulation](https://dl.acm.org/doi/10.1145/2145694.2145720)
9. [Hardware Emulation: ICE vs Virtual User Experiences (DVCon 2016 slides)](https://dvcon-proceedings.org/wp-content/uploads/hardware-emulation-ice-vs-virtual-presentation.pdf)
10. [The science of SW simulators, acceleration, prototyping, emulation (ESNUG 522)](http://www.deepchip.com/items/0522-02.html)
11. [The Veloce Emulator and its Use for Verification and System Integration of Complex Multi-node SOC Computing System](https://indico.cern.ch/event/305730/contributions/703215/attachments/581425/800387/Veloce_Emulator.pdf)
12. [FALCON: An FPGA Emulation Platform for Domain-Specific SoCs (DSSoCs)](https://blaauw.engin.umich.edu/wp-content/uploads/sites/342/2024/02/FALCON_-An-FPGA-Emulation-Platform-for-Domain-Specific-SoCs-DSSoCs.pdf)
13. [Hardware Emulation | IEEE Technology Navigator](https://technav.ieee.org/topic/hardware-emulation/)
14. [From Simulation to Emulation](https://www.eejournal.com/article/20100601-simem/)
15. [Emulation-based System-on-Chip Security Verification: Challenges and Opportunities](https://arxiv.org/abs/2604.15073)
16. [Quickturn's New Emulation Family Sets the Standard for Verification Performance and Capacity - EDN](https://www.edn.com/quickturns-new-emulation-family-sets-the-standard-for-verification-performance-and-capacity/)
17. [Hardware Emulation in Mid-Life, Moving to Center Stage - EDN](https://www.edn.com/hardware-emulation-in-mid-life-moving-to-center-stage/)
18. [John Wawrzynek and colleagues (2007). RAMP: Research Accelerator for Multiple Processors. IEEE Micro.](https://doi.org/10.1109/mm.2007.39)
19. [Lauro on CDNS Palladium-XP2 vs. MENT Veloce 2 vs. SNPS ZeBu 3](https://www.rizzatti.com/lauro-on-cdns-palladium-xp2-vs-ment-veloce-2-vs-snps-zebu-3/)
20. [A Fast Hardware/Software Co-Verification Method for System-On-a-Chip by Using a C/C++ Simulator and FPGA Emulator with Shared Register Communication (DAC 2004)](https://www.cs.york.ac.uk/rts/docs/SIGDA-Compendium-1994-2004/papers/2004/dac04/pdffiles/p299.pdf)
21. [Lotus: A Multi-FPGA Task Dataflow Architecture to Accelerate Cycle-Level Simulation (ISCA 2026)](https://people.csail.mit.edu/sanchez/papers/2026.lotus.isca.pdf)
22. [Architectures to Tradeoff Performance vs. Debug for Software Development on Emulation Platform](https://dvcon-proceedings.org/wp-content/uploads/TS1D-Architecture-to-tradeoff-Performance-vs-Debug-for-SW-Development-on-Emulation-Platform-paper.pdf)
23. [Unified Emulation and Prototyping: Pipedream or Reality? (SemiWiki, Synopsys EP-Ready)](https://semiwiki.com/eda/synopsys/372834-unified-emulation-and-prototyping-pipedream-or-reality/)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 21, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Semiconductor devices & fabrication

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/hardware-emulation

English original: https://www.edgepedia.org/hardware-emulation
