基于UVM类库构建外围芯片仿真模型及其在FPGA软件验证中的应用OA
Application of UVM-based peripheral chip simulation model in FPGA software verification
FPGA作为接口板广泛应用于嵌入式系统,运行于FPGA芯片中的RTL(Register Transfer Level)代码,其主要功能为完成与外围芯片的交互.针对该类FPGA软件,对其功能验证的困难之一在于根据外围芯片手册构建正常、异常工作模式的芯片仿真模型.对外围芯片仿真模型的构建,目前以利用System Verilog/Verilog-HDL/VHDL语言特性直接构建的静态仿真模型为主.该类仿真模型与RTL模型类似,具有结构化的特点,即在仿真运行过程中模型不可以根据需要的配置动态生成、动态消亡.该类仿真模型适用于对芯片工作模式在运行过程中保持不变场景的模拟;对于工作模式需要在运行过程中切换的验证场景的模拟,采用静态仿真模型,需要单独开发仿真模型与验证平台的通信接口.另外,由于 UVM 验证平台无法实现对静态仿真模型的动态生成,因此该类仿真模型嵌入到 UVM 验证平台中,无法利用UVM 强大的类库生态.为了解决上述问题,采用System Verilog面向对象特性的UVM 标准类库构建外围芯片的仿真模型,并将该仿真模型内嵌到 UVM 验证平台中.实测结果表明,在仿真运行过程中验证平台可实现对仿真模型工作模式的动态配置,即该仿真模型可实现对外围芯片多工作模式切换场景的模拟,丰富了FPGA软件的验证场景.提出基于 UVM 标准类库的芯片仿真模型,结合 UVM 验证平台,在一定程度上降低了外围芯片多工作模式切换场景的模拟难度和具有多种工作模式外围芯片的仿真模型的开发、维护难度,为接口时序控制类FPGA软件验证仿真模型的开发提供了新的思路.
FPGAs are extensively employed as interface boards in embedded systems.The software operating on these chips primarily interacts with peripheral devices.A significant challenge in verifying such FPGA software lies in developing configurable simulation models,supporting both normal and abnormal operations,based on peripheral chip specifications.Currently,these simulation models are predominantly implemented as static constructs using System Verilog/Verilog-HDL/VHDL language features.These simulation models,akin to RTL models,exhibit a structured nature.This implies that their configuration is static without supporting dynamic instantiation or teardown during the simulation.Therefore,this type of simulation model is suitable for verification scenarios in which the chip's operating mode remains unchanged during runtime.For verification scenarios where the operating mode needs to switch during runtime,using a static simulation model to simulate such scenarios requires the development of a communication interface with the veri-fication platform.Furthermore,since UVM verification platforms cannot dynamically instantiate such static simulation models,embed-ding them into a UVM environment prevents utilizing UVM's powerful class library ecosystem.To address the issues mentioned above,this paper employs the UVM standard class library,which leverages the object-oriented features of System Verilog,to construct a simu-lation model of peripheral chips.This simulation model is then embedded into the UVM verification platform.Experimental results demonstrate that the verification platform can dynamically configure the operating modes of the simulation model during runtime.In other words,the model is capable of simulating scenarios that involve switching between multiple operating modes of peripheral chips,thereby enriching the verification scenarios for FPGA software.The chip simulation model proposed in this paper,based on the UVM standard class library and integrated with the UVM verification platform,reduces to some extent the simulation complexity of peripheral chip multi-mode switching scenarios and alleviates the development and maintenance difficulties associated with simulation models for pe-ripherals featuring multiple operating modes.This approach provides a new and feasible solution for developing simulation models in the verification of FPGA software related to interface timing control.
刘亚永
北京计算机技术及应用研究所,北京 100854
信息技术与安全科学
FPGAUVM仿真模型验证外围芯片
FPGAUVMsimulation modelverificationperipheral chip
《集成电路与嵌入式系统》 2026 (7)
74-81,8
评论