作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2024, Vol. 50 ›› Issue (9): 189-196. doi: 10.19678/j.issn.1000-3428.0068240

• 体系结构与软件技术 • 上一篇    下一篇

基于UVM的SoC环境中PCIe验证平台设计

高秋辰1, 胡勇华2,*()   

  1. 1. 郑州大学计算机与人工智能学院, 河南 郑州 450001
    2. 湖南科技大学计算机科学与工程学院, 湖南 湘潭 411201
  • 收稿日期:2023-08-16 出版日期:2024-09-15 发布日期:2024-09-21
  • 通讯作者: 胡勇华
  • 基金资助:
    湖南省自然科学基金(023JJ50019)

Design of PCIe Verification Platform in SoC Environment Based on UVM

GAO Qiuchen1, HU Yonghua2,*()   

  1. 1. School of Computer and Artificial Intelligence, Zhengzhou University, Zhengzhou 450001, Henan, China
    2. School of Computer Science and Engineering, Hunan University of Science and Technology, Xiangtan 411201, Hunan, China
  • Received:2023-08-16 Online:2024-09-15 Published:2024-09-21
  • Contact: HU Yonghua

摘要:

系统级芯片(SoC)集成多种外设接口, 其外设接口的验证工作已经成为芯片开发最耗时的环节之一。PCIe协议为系统内部提供了高速的点对点串行互联服务, 同时还支持热插拔和热交换, 逐渐成为一种通用的总线协议。使用传统硬件描述语言(HDL)对PCIe接口设计进行验证时, 存在短时间内难以覆盖多种设计场景和边界条件, 以及验证不完备等问题。为了解决上述问题, 利用统一验证方法学(UVM)搭建1个PCIe接口的验证平台。该平台采用UVM定义的框架和测试类, 实现了顶层环境集成和测试约束的设计, 具有可重用性强和验证全面的特点。实现的内容包括SoC系统级环境集成、待测模块设计与连接、验证平台中sequencer类和monitor类的实现, 以及部分接口设计。为了确保测试用例覆盖尽可能多地设计状态和路径, 针对性地划分不同功能点, 并设计约束条件。通过多种覆盖率指标对测试用例的有效性和覆盖程度进行评估。实验结果表明, 该验证平台能缩短验证周期, 使综合覆盖率提高30%以上。

关键词: PCIe协议, 验证平台, 统一验证方法学, 覆盖率, 验证IP

Abstract:

The System of Chip (SoC) integrates multiple peripheral interfaces, the verification of which has become one of the most time-consuming steps in chip development. The PCIe protocol provides high-speed peer-to-peer serial interconnection services within the system, while supporting hot swapping, which has gradually become a universal bus protocol. When using conventional Hardware Description Languages (HDL) to validate PCIe interface designs, problems usually arise, such as difficulty in covering multiple design scenarios and boundary conditions in a short period, leading to insufficient verification. To address the above issues, this study utilizes Universal Verification Methodology (UVM) to build a PCIe interface validation platform. This platform adopts a UVM-defined framework and test classes, achieving top-level environmental integration and design of test constraints, with strong reusability and comprehensive verification. This implementation includes SoC system-level environmental integration, design, and connection of the modules to be tested, implementation of sequencer and monitor classes in the verification platform, and partial interface design. To ensure that the test cases cover as many design states and paths as possible, different functional points are divided deliberately, and constraint conditions are designed to evaluate the effectiveness and coverage of test cases using various coverage indicators. The experimental results show that the verification platform can curtail the verification cycle and increase the comprehensive coverage by more than 30%.

Key words: PCIe protocol, verification platform, Universal Verification Methodology(UVM), coverage rate, verification IP