A demand driven function verification method
-
摘要:
随着电子设计复杂度的持续增长,芯片的软件功能验证受到行业内越来越多的重视,业内采用传统测试方法和主流通用验证方法学(UVM)时,都是基于测试驱动的软件功能验证,导致验证环境内的组件具有较强的耦合性,在开展多重环境的软件功能验证时,需要花费大量的时间设计不同测试组件,不利于可重用性实现.本文提出了一种基于需求驱动的功能验证方法,利用需求之间存在的很多共性特点,提取了多重验证环境下的验证基础设施组件,创建出一种可集成化验证基础组件的参考库模型,利用需求驱动所有测试组件,做到了需求、激励、驱动、检测、被测件之间的100%隔离,创建出具有广泛使用的验证模式.新方法与UVM验证方法学相比,可重用性提升效果显著,具有组件独立、层次关系少、使用方便等特点,可满足不同需求和验证环境需要.举例对参考库的可重用性进行了有效性证明,最后对测试结果分析比较,表明新方法可以快速应用于多重环境的软件功能验证,提升工作效率.
Abstract:With the continuous growth of electronic design complexity, more and more attention has been paid to the software function verification of chips in the industry. When the traditional test methods and mainstream universal verification methodology (UVM) are adopted in the industry, they are based on test driven software function verification, resulting in strong coupling of components in the verification environment. When carrying out software function verification in multiple environments, It takes a lot of time to design different test components, which is not conducive to the realization of reusability. In this paper, a demand driven functional verification method is proposed. Using many common characteristics between requirements, the verification infrastructure components in multiple verification environments are extracted, and a reference library model of integrated verification infrastructure components is created. All test components are driven by requirements, so as to achieve 100% isolation among requirements, incentives, drivers, tests and tested parts, Create a widely used authentication pattern. Compared with UVM verification methodology, the new method has significant reusability improvement effect. It has the characteristics of independent components, few hierarchical relationships and convenient use, and can meet different needs and verification environment needs. Finally, the test results are analyzed and compared, which shows that the new method can be quickly applied to software function verification in multiple environments and improve work efficiency.
-
Key words:
- demand driven /
- functional verification /
- reference library /
- UVM /
- reusability
-
表 1 测试性能参数比较
Table 1. Comparison of test performance parameters
性能参数 UVM 新方法 提升效率 测试代码量 3 000~4 000行 400~500行 1 000% 文件数量 13个 5个 61.5% 测试层数 5层 3层 40.0% 单点测试时间 90秒 30秒 66.7% 总的测试时间 120小时 72小时 40.0% -
[1] EI-ASHRY S, KHAMIS M, IBRAHIM H, et al. On error Injection for NoC platforms: A UVM-based generic verification environment[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2020, 39(5): 1137-1150. DOI: 10.1109/TCAD.2019.2908921. [2] WANG J Y, TAN N X, ZHOU Y F, et al. A UVM verification platform for RISC-V SoC from module to system level[C]//2020 IEEE 5th International Conference on Integrated Circuits and Microsystems (ICICM). Nanjing, China: IEEE, 2020: 242-246. DOI: 10.1109/ICICM50929.2020.9292250. [3] SALAH K, MOSTAFA H. Constructing effective UVM testbench for DRAM memory controllers[C]//2018 New Generation of CAS (NGCAS). Valletta: IEEE, 2018: 178-181. DOI: 10.1109/NGCAS.2018.8572135. [4] WANG J, LI H W, WANG T C, et al. Abstraction-guided simulation using markov analysis for functional verification[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2016, 35(2): 285-297. DOI: 10.1109/TCAD.2015.2419622. [5] FOSTER H D. Trends in functional verification: a 2014 industry study[C]//201552nd ACM/EDAC/IEEE Design Automation Conference (DAC). San Francisco, CA, USA: IEEE, 2015. DOI: 10.1145/2744769.2744921. [6] EISSA A S, IBRAHEM M A, ELMOHR M A, et al. A reusable verification environment for NoC platforms using UVM[C]//IEEE EUROCON 2017-17th International Conference on Smart Technologies. Ohrid, Macedonia: IEEE, 2017: 239-242. DOI: 10.1109/EUROCON.2017.8011112. [7] BISWAL B P, SINGH A, SINGH B. Cache coherency controller verification IP using SystemVerilog assertions (SVA) and universal verification methodologies (UVM)[C]//201711th International Conference on Intelligent Systems and Control (ISCO). Coimbatore, India: IEEE, 2017: 21-24. DOI: 10.1109/ISCO.2017.7855984. [8] 陈琳娜, 孟建熠, 林志涛. 面向串行总线的层次化UVM验证平台设计[J]. 传感器与微系统, 2018, 37(9): 84-86. DOI: 10.13873/J.1000-9787(2018)09-0084-03.CHEN L N, MENG J Y, LIN Z T. Design of hierarchical UVM verification platform for serial bus[J]. Transducer and Microsystem Technologies, 2018, 37(9): 84-86. DOI: 10.13873/J.1000-9787(2018)09-0084-03. [9] 谢峥, 王腾, 雍珊珊, 等. 一种基于UVM面向RISC CPU的可重用功能验证平台[J]. 北京大学学报(自然科学版), 2014, 50(2): 221-227. DOI: 10.13209/j.0479-8023.2014.031.XIE Z, WANG T, YONG S S, et al. A RISC CPU oriented reusable functional verification platform based on UVM[J]. Acta Scientiarum Naturalium Universitatis Pekinensis, 2014, 50(2): 221-227. DOI: 10.13209/j.0479-8023.2014.031. [10] MOHAMAD N, OOI C Y, ISMAIL N, et al. SVA checker generator for FPGA-based verification platform[C]//2016 IEEE International Symposium on Circuits and Systems (ISCAS). Montreal, QC, Canada: IEEE, 2016: 1750-1753. DOI: 10.1109/ISCAS.2016.7538906. [11] SHERA E, WEGENER C. Buck converter modeling in SystemVerilog for verification and virtual test applications[C]//2015 IEEE 20th International Mixed-Signals Testing Workshop (IMSTW). Paris, France: IEEE, 2015: 1750-1753. DOI: 10.1109/IMS3TW.2015.7177865. [12] 克里斯-斯皮尔. SystemVerilog验证(测试平台编写指南)[M]. 张春, 麦宋平, 赵益新, 译. 北京: 科学出版社, 2015.SPEAR C. SystemVerilog for verification[M]. ZHANG C, MAI S P, ZHAO Y X, trans. Beijing: Science Press, 2015. [13] 欧树云. 数字IC功能验证: 模型语言、激励生成及例证研究[D]. 长沙: 国防科学技术大学, 2017.OU S Y. The functional verification of digital IC: research of modeling language, stimulus-generation and instances[D]. Changsha: National University of Defense Technology, 2017. [14] NI W, ZHANG J C. Research of reusability based on UVM verification[C]//2015 IEEE 11th International Conference on ASIC (ASICON). Chengdu, China: IEEE. 2015. DOI: 10.1109/ASICON.2015.7517189. [15] 李晨阳, 宋澎申, 王涛, 等. 一种基于UVM的高层次化验证平台设计[J]. 微电子学与计算机, 2019, 36(6): 79-83. DOI: 10.19304/j.cnki.issn1000-7180.2019.06.017.LI C Y, SONG S S, WANG T, et al. An high hierarchical verification platform based on UVM[J]. Microelectronics & Computer, 2019, 36(6): 79-83. DOI: 10.19304/j.cnki.issn1000-7180.2019.06.017. -