# 功能验证

功能验证是在设计制造之前，判定数字电路设计在逻辑上是否正确——即其行为是否符合功能规格的意图——的活动。<sup>[1](https://people.ece.cornell.edu/land/courses/ece5760/Verilog/FreescaleTesting.pdf)</sup> 它是芯片开发中的主导活动：行业调查显示，2016年IC/ASIC项目总时间中平均有55%用于验证，<sup>[2](https://dvcon-proceedings.org/wp-content/uploads/trends-in-functional-verification-a-2016-industry-study.pdf)</sup> 而更早的一项估计则将高达70%的设计开发时间和资源归因于此。<sup>[3](https://www.scielo.org.ar/pdf/laar/v37n1/v37n1a13.pdf)</sup> 该领域自身的文献将其描述为片上系统开发中最大的挑战之一，且设计能力与验证信心之间的差距仍在持续扩大。<sup>[4](https://doi.org/10.1007/b135575)</sup>

| 关键事实 | 数值 |
|---|---|
| 定义 | 判定设计在逻辑上是否符合其规格<sup>[1](https://people.ece.cornell.edu/land/courses/ece5760/Verilog/FreescaleTesting.pdf)</sup> |
| 项目工作量占比 | IC/ASIC项目时间的55%（2016年调查）；据更早估计高达70%<sup>[2](https://dvcon-proceedings.org/wp-content/uploads/trends-in-functional-verification-a-2016-industry-study.pdf)</sup><sup> • </sup><sup>[3](https://www.scielo.org.ar/pdf/laar/v37n1/v37n1a13.pdf)</sup> |
| 首次流片成功率 | 2024年研究中仅14%的IC/ASIC项目成功，为二十年来最低<sup>[5](https://resources.sw.siemens.com/ko-KR/white-paper-2024-wilson-research-group-ic-asic-functional-verification-trend-report/)</sup> |
| 标准测试平台架构 | UVM测试、环境、代理（序列器、驱动器、监视器）、记分板、TLM通信<sup>[6](https://accellera.org/images/downloads/standards/uvm/uvm_users_guide_1.2.pdf)</sup> |
| 形式验证分支 | 模型（属性）检查和等价性检查<sup>[1](https://people.ece.cornell.edu/land/courses/ece5760/Verilog/FreescaleTesting.pdf)</sup> |
| 主导方法学标准 | UVM，2017年标准化为IEEE 1800.2<sup>[7](https://ocpip.org/images/resources/videos/Accellera-UVM-Tutorial-2017.pdf)</sup> |
| RTL仿真吞吐量 | 每秒20至1000个周期，而性能级模型为每秒1万至5万个周期<sup>[8](https://www.cerc.utexas.edu/~jaa/vlsi/lectures/17-1.pdf)</sup> |

## 工作原理

基于仿真的验证围绕被测设计（DUV）构建一个封闭系统。测试平台是仿真代码，向设计施加预定的输入序列并观察其响应。<sup>[9](http://www.r-5.org/files/books/computers/hw-layers/hardware/verification/Janick_Bergeron-Writing_Testbenches_using_SystemVerilog-EN.pdf)</sup> 设计用硬件描述语言描述，向其施加激励向量，监视器将输出与从规格推导出的预期行为进行比对；偏差会触发调试。<sup>[10](https://www.cambridge.org/core/books/practical-design-verification/systemverilog-and-vera-in-a-verification-flow/D901B91B3BFC0E1F23D332D6BC0B0F62)</sup>

在UVM 1.2架构中，UVM测试实例化一个UVM环境，其中包含UVM代理，每个代理配有序列器、驱动器和监视器，外加记分板，全部通过事务级建模（TLM）进行通信。<sup>[6](https://accellera.org/images/downloads/standards/uvm/uvm_users_guide_1.2.pdf)</sup> 驱动器将序列项转换为DUT接口上的引脚级活动，监视器将观察到的引脚活动转换回事务。记分板通过代理分析端口接收输入和输出事务，并将输入通过参考模型（也称为预测器）运行，以检查输出。<sup>[6](https://accellera.org/images/downloads/standards/uvm/uvm_users_guide_1.2.pdf)</sup> 飞思卡尔的可复用标准以厂商中立的方式规定了相同的要素：激励、零时间运行的事务器、驱动器、监视器、响应器、覆盖率收集器和响应检查器。<sup>[1](https://people.ece.cornell.edu/land/courses/ece5760/Verilog/FreescaleTesting.pdf)</sup>

## 实施方式

工作流程是一个循环：从功能规格创建验证计划，搭建环境，运行测试，调试异常，修复，重新运行，并更新计划。<sup>[11](https://uobdv.github.io/Design-Verification/Lectures/Current/5_Verification_Cycle_Methodology_Plan_narrated_v7-ink.pdf)</sup> 计划源自功能规格，定义验证级别、待验证功能、场景、覆盖率要求、完成标准、资源、工具、进度和风险。<sup>[11](https://uobdv.github.io/Design-Verification/Lectures/Current/5_Verification_Cycle_Methodology_Plan_narrated_v7-ink.pdf)</sup> 一个常见的区分是将验证计划（说明验证什么）与测试计划（说明如何验证：技术、环境结构、测试和退出标准）分开。<sup>[12](http://systemverilog.us/vf/verification_test_plan.pdf)</sup>

测试平台方法学经历了三代演进：工程师编写的定向测试、约束随机测试和智能测试。约束随机测试被认为将验证工程师的生产力提高了一倍，减少了对定向测试的需求，而断言将调试时间缩短了50%。<sup>[13](https://ieee.li/pdf/viewgraphs/verification_overview.pdf)</sup> 覆盖率必须从监视器、记分板和分析事务中采样，而非从激励中采样，失败的测试不应计入覆盖率，以防止虚假覆盖率。<sup>[14](https://github.com/uvmcollab/uvmcollab.github.io/blob/main/docs/uvm/guidelines/verification-plan.md)</sup> 退出标准通常包括代码覆盖率（行、分支、条件、翻转、路径、状态机）和功能覆盖率，以及通过所有测试和静态代码检查。<sup>[12](http://systemverilog.us/vf/verification_test_plan.pdf)</sup> 随机激励必须附带响应和覆盖率检查，每个回归测试必须独立运行。<sup>[1](https://people.ece.cornell.edu/land/courses/ece5760/Verilog/FreescaleTesting.pdf)</sup> 回归是在工作站集群上持续运行计划中的测试，最终到达流片（最终确定芯片设计以投入制造）就绪检查点。<sup>[11](https://uobdv.github.io/Design-Verification/Lectures/Current/5_Verification_Cycle_Methodology_Plan_narrated_v7-ink.pdf)</sup>

调试在进度中占主导地位：超过三分之一的验证时间用于调试，加上覆盖率分析后则超过一半；一家厂商的立场是，100%功能覆盖率和通过回归测试应作为签核的绝对最低标准。<sup>[15](https://qacf-www.synopsys.com/content/dam/synopsys/services/whitepapers/delivering-functional-verification-engagements.pdf)</sup> 吞吐量取决于抽象级别：性能时序模型每秒仿真1万至5万个周期，行为模型每秒1000至1万，RTL每秒20至1000，门级每秒4至25。<sup>[8](https://www.cerc.utexas.edu/~jaa/vlsi/lectures/17-1.pdf)</sup>

## 起源

《编写测试平台》一书引入了使用专有硬件验证语言的覆盖率驱动约束随机验证。<sup>[9](http://www.r-5.org/files/books/computers/hw-layers/hardware/verification/Janick_Bergeron-Writing_Testbenches_using_SystemVerilog-EN.pdf)</sup> 该方法学在《SystemVerilog验证方法学手册》（VMM）中得到整合，结合了约束随机激励、覆盖率驱动验证、断言和形式验证。<sup>[4](https://doi.org/10.1007/b135575)</sup>

标准化随后通过Accellera系统倡议推进，其UVM工作组致力于[通用验证方法学](https://www.edgepedia.org/zh/universal-verification-methodology)。<sup>[16](https://accellera.org/downloads/standards/uvm)</sup> UVM 1.0以OVM 2.1.1为起点发布，增加了寄存器、相位和TLM。<sup>[7](https://ocpip.org/images/resources/videos/Accellera-UVM-Tutorial-2017.pdf)</sup> 在Accellera的三个版本（1.0、1.1、1.2）之后，2015年获接受的IEEE PAR促成了2017年2月的批准，以IEEE 1800.2即通用验证方法学标准的形式发布。<sup>[7](https://ocpip.org/images/resources/videos/Accellera-UVM-Tutorial-2017.pdf)</sup> IEEE 1800.2定义了UVM功能API，而Accellera提供与1800.2 LRM匹配的[SystemVerilog](https://www.edgepedia.org/zh/systemverilog)参考实现；该标准可通过IEEE Get计划免费获取，Accellera未来所有开发均以1800.2为目标。<sup>[7](https://ocpip.org/images/resources/videos/Accellera-UVM-Tutorial-2017.pdf)</sup><sup> • </sup><sup>[17](https://dvcon-proceedings.org/wp-content/uploads/ieee-compatible-uvm-reference-implementation-and-verification-components.pdf)</sup> 底层的[事务级建模](https://www.edgepedia.org/zh/transaction-level-modeling)标准TLM-1和TLM-2.0是在SystemC中构建的。<sup>[6](https://accellera.org/images/downloads/standards/uvm/uvm_users_guide_1.2.pdf)</sup>

## 变体

Accellera UVM标准明确是一种混合体：它结合了来自AVM、OVM、eRM和VMM-RAL的技术，以及资源、TLM2和相位等较新的增补。<sup>[18](https://iccircle.com/static/upload/img20240207093017.pdf)</sup> UVM本身是一个SystemVerilog基类的开源库，可在任何IEEE 1800仿真器上运行，uvm_components构成测试平台层次结构。<sup>[18](https://iccircle.com/static/upload/img20240207093017.pdf)</sup>

基于断言的验证补充了激励驱动测试，但断言覆盖率并不意味着所有功能行为都已被检查，因此代码覆盖率和功能覆盖率仍是必要的补充指标。<sup>[19](https://psycnet.apa.org/doi/10.1145/3510578)</sup> 为实现激励的可移植性，可移植测试与激励标准（PSS）2.1规定了可跨多个目标平台复用的验证意图和行为，并支持自动化测试生成。<sup>[20](https://www.uvmworld.org/images/downloads/standards/pss/Portable_Test_Stimulus_Standard_v2.1.pdf)</sup> 自2023年底以来，机器学习已进入流程：上下文感知验证循环（CAVL）将编译器诊断、仿真日志和覆盖率指标视为反馈信号，并通过针对覆盖率空洞合成定向测试，在一个I2C案例研究中达到了完整的功能覆盖率。<sup>[21](https://www.mdpi.com/2079-9292/15/8/1763)</sup>

## 应用

功能验证广泛应用于半导体行业，从IP模块到完整的片上系统。Cadence的流程将Xcelium逻辑仿真器与Palladium Z2硬件仿真、Protium X2 FPGA原型以及Jasper形式平台配对，后者在设计周期早期应用智能证明技术和机器学习。<sup>[22](https://www.cadence.com/en_US/home/explore/functional-verification.html)</sup> 在安全关键行业，验证受标准约束，包括[IEC 61508](https://www.edgepedia.org/zh/iec-61508)、医疗器械的[IEC 60601](https://www.edgepedia.org/zh/iec-60601)、航空电子的DO-254/DO-178，以及汽车功能安全的[ISO 26262](https://www.edgepedia.org/zh/iso-26262)。<sup>[23](https://mdpi-res.com/d_attachment/electronics/electronics-07-00081/article_deploy/electronics-07-00081.pdf?version=1527310763)</sup>

## 局限性与替代方案

仿真对状态空间进行采样，因此无法证明正确性。通过仿真完全验证一个32位加法器需要\( 2^{64} \)个测试向量，这对大型设计是不可行的。<sup>[19](https://psycnet.apa.org/doi/10.1145/3510578)</sup> RTL仿真运行速度大约比目标时钟慢十亿倍，因此在硅片上只需几秒的操作系统启动，在RTL仿真器上需要数年；FPGA原型和硬件仿真器比RTL仿真快100至1000倍，可在数小时内完成操作系统启动，代价是可观测性——在FPGA平台上仅限于几千个内部信号，且更改需要数小时的比特流重新编译。<sup>[24](https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf)</sup> 仿真发现边界情况缺陷的有效性也会随时间下降，因为生成针对值得关注的边界情况的激励很困难，<sup>[25](https://cse.usf.edu/~haozheng/lib/verification/general/hybrid-survey-07.pdf)</sup> 而约束随机验证花费数千个冗余周期来命中一个低概率覆盖率仓，产生覆盖率平台期。<sup>[21](https://www.mdpi.com/2079-9292/15/8/1763)</sup>

形式验证是数学上的替代方案：模型检查证明设计满足所声明的属性，而等价性检查证明两个表示在逻辑上等价。<sup>[1](https://people.ece.cornell.edu/land/courses/ece5760/Verilog/FreescaleTesting.pdf)</sup> 静态形式验证从单一初始状态出发，对断言进行穷尽验证，无需测试平台即可提供证明和反例。<sup>[13](https://ieee.li/pdf/viewgraphs/verification_overview.pdf)</sup> 其局限是状态爆炸问题，因为状态随变量数量呈指数增长，以及定理证明所需的难以承受的人工引导工作量。<sup>[25](https://cse.usf.edu/~haozheng/lib/verification/general/hybrid-survey-07.pdf)</sup><sup> • </sup><sup>[23](https://mdpi-res.com/d_attachment/electronics/electronics-07-00081/article_deploy/electronics-07-00081.pdf?version=1527310763)</sup> 当所证明的属性集不完整时，模型检查也无法保证正确性，且缺乏广泛接受的属性完整性覆盖率指标。<sup>[26](https://dl.acm.org/doi/10.1109/TC.2007.1012)</sup> 基于仿真的覆盖率指标可复用于设定形式目标和衡量进展，<sup>[27](https://dl.acm.org/doi/10.5555/2157654.2157658)</sup> 混合方法被广泛推荐为仿真时间成本与形式资源成本之间的最佳平衡。<sup>[23](https://mdpi-res.com/d_attachment/electronics/electronics-07-00081/article_deploy/electronics-07-00081.pdf?version=1527310763)</sup> 工业混合方法的一个例子是琼斯（Jones）及其同事描述的Forte框架，它将符号轨迹评估模型检查与轻量级定理证明相结合，用于微处理器验证。<sup>[28](https://doi.org/10.1109/54.936245)</sup>

失效模式有充分记载。缺陷可能存在于验证环境以及HDL设计中，<sup>[11](https://uobdv.github.io/Design-Verification/Lectures/Current/5_Verification_Cycle_Methodology_Plan_narrated_v7-ink.pdf)</sup> 输出不匹配通常源于设计建模错误或时序建模错误。<sup>[10](https://www.cambridge.org/core/books/practical-design-verification/systemverilog-and-vera-in-a-verification-flow/D901B91B3BFC0E1F23D332D6BC0B0F62)</sup> 一项英特尔统计研究统计了[奔腾4](https://www.edgepedia.org/zh/pentium-4)在首次流片前发现的7855个缺陷，<sup>[3](https://www.scielo.org.ar/pdf/laar/v37n1/v37n1a13.pdf)</sup> 其中最大的单一类别“低级错误”占12.7%。<sup>[8](https://www.cerc.utexas.edu/~jaa/vlsi/lectures/17-1.pdf)</sup> 后果代价高昂：大型芯片的新掩模组成本约为100万美元或更多，<sup>[8](https://www.cerc.utexas.edu/~jaa/vlsi/lectures/17-1.pdf)</sup> 而2024年首次流片成功率降至项目数的14%，为二十年来最低。<sup>[5](https://resources.sw.siemens.com/ko-KR/white-paper-2024-wilson-research-group-ic-asic-functional-verification-trend-report/)</sup> 基于仿真的技术在IP模块级别效果良好，但在大型设计的完整SoC集成中效果下降，<sup>[2](https://dvcon-proceedings.org/wp-content/uploads/trends-in-functional-verification-a-2016-industry-study.pdf)</sup> 且验证的性能需求随设计规模呈指数增长。<sup>[29](https://link.springer.com/chapter/10.1007/978-1-4757-3281-8_22)</sup>

功能验证是硅前工作，不同于[硅后验证](https://www.edgepedia.org/zh/post-silicon-validation)——后者的可观测性仅限于主要I/O和调试基础设施（如JTAG和跟踪缓冲器），分析几分钟的硅片执行可能需要数天或数周的跟踪仿真；硅前模型提供内部信号100%的可观测性。<sup>[19](https://psycnet.apa.org/doi/10.1145/3510578)</sup>

## References

1. [Semiconductor Reuse Standard (SRS) for Functional Verification (Freescale)](https://people.ece.cornell.edu/land/courses/ece5760/Verilog/FreescaleTesting.pdf)
2. [Trends in Functional Verification: A 2016 Industry Study](https://dvcon-proceedings.org/wp-content/uploads/trends-in-functional-verification-a-2016-industry-study.pdf)
3. [Functional Verification: Approaches and Challenges](https://www.scielo.org.ar/pdf/laar/v37n1/v37n1a13.pdf)
4. [Bergeron, Janick and colleagues (2005). Verification Methodology Manual for SystemVerilog. .](https://doi.org/10.1007/b135575)
5. [2024 Wilson Research Group IC/ASIC functional verification trend report](https://resources.sw.siemens.com/ko-KR/white-paper-2024-wilson-research-group-ic-asic-functional-verification-trend-report/)
6. [Universal Verification Methodology (UVM) 1.2 User's Guide](https://accellera.org/images/downloads/standards/uvm/uvm_users_guide_1.2.pdf)
7. [Introducing IEEE 1800.2 (Accellera UVM Tutorial, 2017)](https://ocpip.org/images/resources/videos/Accellera-UVM-Tutorial-2017.pdf)
8. [Design Verification (UT Austin VLSI lecture notes)](https://www.cerc.utexas.edu/~jaa/vlsi/lectures/17-1.pdf)
9. [Writing Testbenches using SystemVerilog (Bergeron)](http://www.r-5.org/files/books/computers/hw-layers/hardware/verification/Janick_Bergeron-Writing_Testbenches_using_SystemVerilog-EN.pdf)
10. [Practical Design Verification, Ch. 6: SystemVerilog and Vera in a verification flow (Verma; Pradhan & Harris, eds.)](https://www.cambridge.org/core/books/practical-design-verification/systemverilog-and-vera-in-a-verification-flow/D901B91B3BFC0E1F23D332D6BC0B0F62)
11. [Verification Cycle, Methodology and Plan (University of Bath lecture notes)](https://uobdv.github.io/Design-Verification/Lectures/Current/5_Verification_Cycle_Methodology_Plan_narrated_v7-ink.pdf)
12. [SystemVerilog Assertions Handbook, 4th Edition, §6.5 Verification and Test Plan](http://systemverilog.us/vf/verification_test_plan.pdf)
13. [Evolution of Digital Verification (verification overview slides)](https://ieee.li/pdf/viewgraphs/verification_overview.pdf)
14. [Verification Plan and Test Plan (UVM collaboration guidelines)](https://github.com/uvmcollab/uvmcollab.github.io/blob/main/docs/uvm/guidelines/verification-plan.md)
15. [Delivering Functional Verification Engagements (Synopsys white paper)](https://qacf-www.synopsys.com/content/dam/synopsys/services/whitepapers/delivering-functional-verification-engagements.pdf)
16. [Download UVM (Universal Verification Methodology) - Accellera Systems Initiative](https://accellera.org/downloads/standards/uvm)
17. [IEEE-Compatible UVM Reference Implementation and Verification Components](https://dvcon-proceedings.org/wp-content/uploads/ieee-compatible-uvm-reference-implementation-and-verification-components.pdf)
18. [UVM Cookbook (Complete)](https://iccircle.com/static/upload/img20240207093017.pdf)
19. [A Survey on Assertion-based Hardware Verification (ACM Computing Surveys)](https://psycnet.apa.org/doi/10.1145/3510578)
20. [Portable Test and Stimulus Standard Version 2.1 (October 2023)](https://www.uvmworld.org/images/downloads/standards/pss/Portable_Test_Stimulus_Standard_v2.1.pdf)
21. [A Context-Aware Feedback Loop for AI-Assisted Verification IP Synthesis (CAVL)](https://www.mdpi.com/2079-9292/15/8/1763)
22. [What is Functional Verification? (Cadence)](https://www.cadence.com/en_US/home/explore/functional-verification.html)
23. [A Survey on Formal Verification Techniques for Safety-Critical Systems-on-Chip (Electronics, MDPI)](https://mdpi-res.com/d_attachment/electronics/electronics-07-00081/article_deploy/electronics-07-00081.pdf?version=1527310763)
24. [Post-Silicon Validation in the SoC Era: A Tutorial](https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf)
25. [Hybrid Techniques for Functional Verification (survey)](https://cse.usf.edu/~haozheng/lib/verification/general/hybrid-survey-07.pdf)
26. [Properties Incompleteness Evaluation by Functional Verification (IEEE Transactions on Computers, 2007)](https://dl.acm.org/doi/10.1109/TC.2007.1012)
27. [Planning for end-to-end formal using simulation-based coverage (FMCAD)](https://dl.acm.org/doi/10.5555/2157654.2157658)
28. [R.B. Jones and colleagues (2001). Practical formal verification in microprocessor design. IEEE Design & Test of Computers.](https://doi.org/10.1109/54.936245)
29. [Performance Tradeoffs for Emulation, Hardware Acceleration, and Simulation (Springer chapter, 2001)](https://link.springer.com/chapter/10.1007/978-1-4757-3281-8_22)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 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/functional-verification

English original: https://www.edgepedia.org/functional-verification
