摘要
随着全球芯片技术的飞速发展,处理器的性能逐渐成为了制约各公司前进的短板。而RISCV开源处理器是一种新的精简指令集架构,与其他处理器最大的不同之处在于:它采用模块化的指令集,更易于扩展和组装。然而,目前可重用RISCV的验证平台还不成熟,这可能会造成验证不够充分且效率低等问题。为此,文中设计一种基于通用验证方法学(UVM)的可重用RISCV验证平台。该平台使用UVM搭建一整套RISCV验证环境,包括随机汇编指令自动生成平台、GNU编译器套件(GCC)对汇编指令的编译、C++参考模型的运行、RISCV处理器的运行和结果监测、Python脚本对最终结果的比较以及代码和功能覆盖率的收集等。同时,利用VCS和Verdi等EDA工具对RISCV处理器进行仿真功能测试。结果表明,所搭建的验证环境能够快速、有效地验证RISCV设计的正确性,且可重用程度高,可以更加全面快速地完成RISCV处理器的验证工作。
With the rapid development of global chip technology,the performance of processors has gradually become a short board that restricts the progress of various companies.The RISCV open-source processor is a new reduced instruction set architecture.The biggest difference between RISCV open-source processor and other processors is that it applies modular instruction sets,which is easier to expand and assemble.However,the current reusable RISCV verification platform is immature,which may lead to insufficient verification and low verification efficiency.A reusable RISCV verification platform based on the university verification methodology(UVM)is introduced.On the platform,UVM is used to build a whole set of RISCV verification environment,including an automatic generation platform for random assembly instructions,compilation of assembly instructions by the GNU compiler collection(GCC),operation of C++reference models,RISCV processor operation and result monitoring,comparison of final results by Python scripts,and collection of code and functional coverage.EDA tools such as VCS and Verdi are used to perform simulation function tests on RISCV processors.The results show that the built verification environment can quickly and effectively verify the correctness of RISCV design and has a high degree of reusability,which can complete the verification work of RISCV processors more comprehensively and quickly.
作者
胡小刚
孙维东
唐屹晨
毛晓炜
HU Xiaogang;SUN Weidong;TANG Yicheng;MAO Xiaowei(No.58 Research Institute of China Electronics Technology Group Corporation,Wuxi 214072,China)
出处
《现代电子技术》
2023年第16期39-43,共5页
Modern Electronics Technique