# 通用验证方法学

**通用验证方法学（Universal Verification Methodology，UVM）** 是一套标准化的方法学与类库，以 [SystemVerilog](https://www.edgepedia.org/zh/systemverilog) 编写，用于为数字硬件设计构建模块化、可复用的功能验证环境。它由 Accellera 系统倡议组织（Accellera Systems Initiative）的 UVM 工作组开发，并由 IEEE 标准化为 IEEE 1800.2，最新版本为 1800.2-2020 版。<sup>[1](https://uvmworld.org/downloads/standards/uvm)</sup><sup> • </sup><sup>[2](https://standards.ieee.org/ieee/62530-2/11429/1800.2/7567/)</sup> 根据 IEEE 标准所界定的范围，UVM 旨在提升互操作性，降低知识产权（IP）在跨项目、跨电子设计自动化（EDA）工具复用时的成本，并使验证组件更易于复用。<sup>[2](https://standards.ieee.org/ieee/62530-2/11429/1800.2/7567/)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 一套 SystemVerilog 类库与方法学，用于构建模块化、可扩展、可复用的验证环境，由 Accellera 的 UVM 工作组开发<sup>[1](https://uvmworld.org/downloads/standards/uvm)</sup><sup> • </sup><sup>[3](https://manuals.plus/m/87117e30e17701a13434f785687d3776e710e13c74475b6ada4e7823244ea87a)</sup> |
| 标准 | IEEE 1800.2；现行版本为 1800.2-2020，此前有 1800.2-2017 版，另有 IEEE/IEC 联合版本 62530-2-2023<sup>[2](https://standards.ieee.org/ieee/62530-2/11429/1800.2/7567/)</sup> |
| 类库内容 | 核心基类（uvm_object、uvm_component、uvm_transaction）、报告机制、工厂、相位机制、TLM 接口，以及寄存器层<sup>[3](https://manuals.plus/m/87117e30e17701a13434f785687d3776e710e13c74475b6ada4e7823244ea87a)</sup> |
| 版本历史 | UVM 1.0（2011 年 2 月）、1.1（2011 年 6 月）、1.2（2014 年 6 月）、2017 系列、2020 系列；当前参考实现为 2020-3.2<sup>[1](https://uvmworld.org/downloads/standards/uvm)</sup> |
| 许可证 | Accellera 的 uvm-core 参考实现采用 Apache-2.0 许可证<sup>[4](https://github.com/accellera-official/uvm-core/blob/main/README.md)</sup> |
| 为何重要 | 验证消耗了集成电路开发工作中近 70% 的工作量，因此可复用、结构化的测试平台是提升生产力的主要杠杆<sup>[5](https://arxiv.org/abs/2504.19959)</sup> |
| 混合信号扩展 | UVM-MS 是面向混合信号验证的 UVM 标准，由 Accellera 于 2025 年 1 月发布<sup>[6](https://www.uvmworld.org/images/downloads/standards/uvm-ms/UVM-MS_1.0.pdf)</sup> |

## 目的与标准化

UVM 解决的是硬件验证中的协调问题。随着验证知识产权（VIP）的发展，团队为每个项目或每款仿真器重写测试平台，等于反复为同样的工作付费；而一套通用的方法学可以让为某个项目或工具编写的验证组件（UVC）集成到另一个项目或工具中。<sup>[1](https://uvmworld.org/downloads/standards/uvm)</sup><sup> • </sup><sup>[7](https://accellera.org/images/resources/videos/Accellera-UVM-Tutorial-2017.pdf)</sup> Accellera 于 2011 年 2 月发布了作为类参考的 UVM 1.0，随后于 2011 年发布 1.1，2014 年 6 月发布 1.2，之后该方法学被移交 IEEE，成为 1800.2 语言参考手册。<sup>[1](https://uvmworld.org/downloads/standards/uvm)</sup><sup> • </sup><sup>[7](https://accellera.org/images/resources/videos/Accellera-UVM-Tutorial-2017.pdf)</sup> IEEE 页面将 1800.2-2017 列为已被替代（修订）的标准，并指明现行版本为 1800.2-2020；IEEE/IEC 联合版本 62530-2-2023 以《SystemVerilog，第 2 部分：通用验证方法学语言参考手册》为题收录了相同内容。<sup>[2](https://standards.ieee.org/ieee/62530-2/11429/1800.2/7567/)</sup> 该标准的主要受众是 UVM 基类库的实现者、支持该库的工具实现者，以及它的用户。<sup>[2](https://standards.ieee.org/ieee/62530-2/11429/1800.2/7567/)</sup>

## 类库

UVM 类库为验证组件和测试环境提供了构建模块：基类、实用工具和宏。<sup>[8](https://manualzz.com/doc/7362048/accellera-uvm-1.2-universal-verification-methodology-user)</sup> 1.2 版类参考将类库按功能类别组织如下：<sup>[3](https://manuals.plus/m/87117e30e17701a13434f785687d3776e710e13c74475b6ada4e7823244ea87a)</sup>

- **核心基类**，如 `uvm_object`、`uvm_component` 和 `uvm_transaction`，是最基本的构建模块。
- **报告机制**，提供一致、可配置的消息记录与过滤功能。
- **工厂**，用于制造对象和组件的机制，使其可被动态配置和替换；例如，类型覆盖可以在任何请求基类型的地方用 `short_delay_frame` 替换通用的 `uart_frame`。<sup>[8](https://manualzz.com/doc/7362048/accellera-uvm-1.2-universal-verification-methodology-user)</sup>
- **相位机制**，一套标准化的执行流程，组件经过一组可扩展的相位来初始化、运行并完成每个测试。<sup>[3](https://manuals.plus/m/87117e30e17701a13434f785687d3776e710e13c74475b6ada4e7823244ea87a)</sup><sup> • </sup><sup>[8](https://manualzz.com/doc/7362048/accellera-uvm-1.2-universal-verification-methodology-user)</sup>
- **TLM 接口**，事务级建模的端口与导出，为组件提供一套一致的通信方法，用于发送和接收事务。<sup>[3](https://manuals.plus/m/87117e30e17701a13434f785687d3776e710e13c74475b6ada4e7823244ea87a)</sup><sup> • </sup><sup>[9](https://uvmkit.com/uvm_users_guide_1.1.pdf)</sup>
- **寄存器层**，对寄存器和存储器读写操作的抽象。<sup>[3](https://manuals.plus/m/87117e30e17701a13434f785687d3776e710e13c74475b6ada4e7823244ea87a)</sup>

该类库还提供了一个标准的资源共享数据库用于配置，以及一个用户可控的消息工具用于故障报告。<sup>[8](https://manualzz.com/doc/7362048/accellera-uvm-1.2-universal-verification-methodology-user)</sup>

## 测试平台架构

UVM 测试平台按组件角色分工，各角色的类由方法学固定。序列器生成事务级流量，驱动器将事务转换为被测设计（DUT）上的引脚级活动，监视器观察 DUT 信号并通过分析端口发布观察到的事务，而记分板和覆盖率收集器等分析组件则检查行为并度量激励。<sup>[8](https://manualzz.com/doc/7362048/accellera-uvm-1.2-universal-verification-methodology-user)</sup><sup> • </sup><sup>[9](https://uvmkit.com/uvm_users_guide_1.1.pdf)</sup> 相关的驱动器、序列器和监视器部件被封装在一起成为一个代理，UVM 方法学推荐这种封装方式以提升互操作性。<sup>[10](https://cds.cern.ch/record/2232660/files/pdf.pdf)</sup>

**分层。** 叠加在低层协议之上的协议通过分层序列来处理。低层序列从高层序列器拉取数据，并用这些数据约束它所创建的低层条目的属性；在监视路径上，高层监视器通过监听低层事务并忽略无关流量来重建高层事务。<sup>[8](https://manualzz.com/doc/7362048/accellera-uvm-1.2-universal-verification-methodology-user)</sup>

## 验证风格

UVM 是最常与覆盖率驱动、[约束随机验证](https://www.edgepedia.org/zh/constrained-random-verification)联系在一起的框架：约束块表达关系与限制，使生成的激励代表合法或故意非法的场景，而功能覆盖率度量随机激励实际覆盖了什么。<sup>[11](https://alpinumconsulting.com/blogs/verification/directed-testing-constrained-random-uvm-migration/)</sup><sup> • </sup><sup>[12](https://www.vlsimentor.com/uvm/verification-methodologies)</sup> 约束随机生成能够到达无人会手写的状态，但仅凭它本身无法揭示覆盖了什么，这正是覆盖率收集被内建于流程的原因。<sup>[12](https://www.vlsimentor.com/uvm/verification-methodologies)</sup> 该方法学也与其他技术共存：基于断言的检查和形式属性验证覆盖那些绝不能破坏的契约，而仿真处理其余部分。<sup>[12](https://www.vlsimentor.com/uvm/verification-methodologies)</sup>

实践中还有两点限定值得注意。UVM 是一套用于组织较大型环境的方法学和基类架构；仅仅使用 SystemVerilog 的随机变量、约束、覆盖组或断言，并不需要它。<sup>[11](https://alpinumconsulting.com/blogs/verification/directed-testing-constrained-random-uvm-migration/)</sup> 而且采用它本身并不会让验证变得更正确；对某些模块而言，少做仿真、多做形式验证效果更好。<sup>[13](https://www.circuit-design.space/uvm-methodology-in-practice/)</sup>

## 版本、实现与许可

Accellera 在标准之外还维护参考实现。发布历史从 UVM 1.0（2011 年）起，历经 1.1a、1.1b、1.1c 和 1.1d（2011 至 2013 年）、UVM 1.2（2014 年）、与 IEEE 1800.2 对齐的 UVM 2017 系列，以及与 IEEE 1800.2-2020 对齐的 UVM 2020 系列；所列最新发布为 2020-3.2。<sup>[1](https://uvmworld.org/downloads/standards/uvm)</sup> 官方 GitHub 仓库 accellera-official/uvm-core 以 Apache-2.0 许可证提供与 IEEE 1800.2-2020 匹配的 SystemVerilog 库，每个类和方法都带有注释，便于工具识别标准中对应的章节。<sup>[4](https://github.com/accellera-official/uvm-core/blob/main/README.md)</sup> 实现说明中记录了与标准的偏差以及额外 API 的类别：对下一版 IEEE 修订的候选贡献、仅用于调试的 API，以及向后兼容 API；后三类在技术上不属于 1800.2，因此使用它们的代码可能无法移植到其他实现。<sup>[4](https://github.com/accellera-official/uvm-core/blob/main/README.md)</sup>

Accellera 还将该方法学扩展到了数字仿真之外。《混合信号通用验证方法学》标准（UVM-MS）于 2025 年 1 月发布。<sup>[6](https://www.uvmworld.org/images/downloads/standards/uvm-ms/UVM-MS_1.0.pdf)</sup> 一项与[飞思卡尔半导体](https://www.edgepedia.org/zh/freescale-semiconductor)（Freescale Semiconductor）合作的 Cadence 案例研究报道，使用 wreal/实数模型并将 UVM 事务转发到旧有模块 API，可使顶层运行速度提升数个数量级，混合信号验证生产力约提升至原来的 2 倍。<sup>[14](https://www.casestudies.com/company/cadence-design-systems/case-study/moving-to-uvm-ms-to-meet-coverage-goals)</sup>

## 替代方案与自动化趋势

基于 Python 的框架及其他框架占据了 UVM 所覆盖领域的一部分。《国际电子与电信杂志》2026 年的一篇综述发现，cocotb 这一用于功能验证的 Python 框架提供了一条灵活、经济的路线，适合早期 RTL 验证和开源工作流；而 SystemVerilog/UVM 因其成熟的生态系统和商业工具集成，在大规模工业项目中仍具优势。<sup>[15](https://wydawnictwo.pan.pl/index.php/ijet/article/view/1135)</sup> PyUVM 用 Python 重新实现了 UVM 的概念；DVCon U.S. 2024 的一篇论文在多个设计 IP 上对 PyUVM 测试平台与成熟的 SystemVerilog-UVM 方法学进行了评估。<sup>[16](https://arxiv.org/abs/2407.10317)</sup> 对基于 Python 的替代方案的评论者指出，它们失去了 SystemVerilog 原生的约束求解器，而这是约束随机激励生成的核心组件。<sup>[13](https://www.circuit-design.space/uvm-methodology-in-practice/)</sup>

由于构建 UVM 测试平台是劳动密集型工作，近期研究致力于将其自动化。UVM² 框架使用大语言模型生成 UVM 测试平台，并通过覆盖率反馈对其进行改进；在最长 1.6K 行代码的 RTL 基准测试中，与经验丰富的工程师相比，它将测试平台搭建时间最多缩短至原来的 1/38.82，平均代码覆盖率和功能覆盖率分别达到 87.44% 和 89.58%。<sup>[5](https://arxiv.org/abs/2504.19959)</sup> HAVEN 是一个用于 UVM 测试平台合成的混合引擎，它在生成测试平台和序列的同时防止大语言模型直接编写 HDL。<sup>[17](https://arxiv.org/abs/2604.27643)</sup> 更早的生成器工作如 AUTG（2023 年国际微电子学会议）将黄金参考转换为带检查器的参考模型，并生成 UVM 测试平台组件，在基准 RTL 设计中找出了所有植入的缺陷。<sup>[18](https://doi.org/10.1109/ICM60448.2023.10378885)</sup>

UVM 环境还延伸到了硬件加速。协同仿真中使用的双域架构——工作站上运行行为级测试平台，硬件仿真器上运行可综合的 HDL——与方法学无关，契合 UVM 的分层原则，使团队能够从 UVM 获得横向和纵向复用，并在软件仿真、硬件仿真和 FPGA 平台之间复用。<sup>[19](https://www.edn.com/hardware-assisted-verification-from-its-dawn-to-systemverilog-uvm-and-transactors/)</sup>

## References

1. [Download UVM (Universal Verification Methodology), Accellera Systems Initiative](https://uvmworld.org/downloads/standards/uvm)
2. [IEEE 1800.2-2020, IEEE Standards Association](https://standards.ieee.org/ieee/62530-2/11429/1800.2/7567/)
3. [Universal Verification Methodology (UVM) 1.2 Class Reference, June 2014](https://manuals.plus/m/87117e30e17701a13434f785687d3776e710e13c74475b6ada4e7823244ea87a)
4. [accellera-official/uvm-core README, GitHub](https://github.com/accellera-official/uvm-core/blob/main/README.md)
5. [From Concept to Practice: an Automated LLM-aided UVM Machine for RTL Verification, arXiv:2504.19959](https://arxiv.org/abs/2504.19959)
6. [Universal Verification Methodology for Mixed-Signal Standard, Accellera, January 2025](https://www.uvmworld.org/images/downloads/standards/uvm-ms/UVM-MS_1.0.pdf)
7. [Introducing IEEE 1800.2, Accellera UVM Tutorial 2017](https://accellera.org/images/resources/videos/Accellera-UVM-Tutorial-2017.pdf)
8. [Accellera UVM 1.2 Universal Verification Methodology User's Guide](https://manualzz.com/doc/7362048/accellera-uvm-1.2-universal-verification-methodology-user)
9. [UVM 1.1 User's Guide](https://uvmkit.com/uvm_users_guide_1.1.pdf)
10. [CERN, UVM training material](https://cds.cern.ch/record/2232660/files/pdf.pdf)
11. [Directed Testing vs Constrained-Random UVM: A Practical Migration Path, Alpinum Consulting](https://alpinumconsulting.com/blogs/verification/directed-testing-constrained-random-uvm-migration/)
12. [UVM Verification Methodologies, VLSI Mentor](https://www.vlsimentor.com/uvm/verification-methodologies)
13. [UVM in Practice: The Parts That Earn Their Keep, and the Parts That Do Not, Circuit-Design.Space](https://www.circuit-design.space/uvm-methodology-in-practice/)
14. [Case Study: Freescale Semiconductor achieves 2X mixed-signal verification productivity with Cadence Virtuoso/Incisive](https://www.casestudies.com/company/cadence-design-systems/case-study/moving-to-uvm-ms-to-meet-coverage-goals)
15. [Piekoszewski, K., Rawski, M. (2026). Cocotb in modern functional verification, International Journal of Electronics and Telecommunications](https://wydawnictwo.pan.pl/index.php/ijet/article/view/1135)
16. [Towards Efficient Design Verification, Constrained Random Verification using PyUVM, arXiv:2407.10317](https://arxiv.org/abs/2407.10317)
17. [HAVEN: Hybrid Automated Verification ENgine for UVM Testbench Synthesis with LLMs, arXiv:2604.27643](https://arxiv.org/abs/2604.27643)
18. [AUTG: An Automatic UVM-based TestBench Generator for VLSI Chip Design Verification, ICM 2023, IEEE](https://doi.org/10.1109/ICM60448.2023.10378885)
19. [Hardware-assisted verification, from its dawn to SystemVerilog, UVM, and transactors, EDN](https://www.edn.com/hardware-assisted-verification-from-its-dawn-to-systemverilog-uvm-and-transactors/)

---
*Initially written Oct 15, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/universal-verification-methodology

English original: https://www.edgepedia.org/universal-verification-methodology
