实时嵌入式系统协调设计的行为验证模型
Behavioral Verification Model for Real Time Embedded System
-
摘要: 嵌入式系统协调设计中,通常采用协同验证方法检验系统设计的正确性,目前比较常用的验证手段有行为验证和基于处理器结构的指令集模拟.指令集模拟从底层时序关系模拟CPU功能,通过建立与硬件模拟器连结关系来验证软硬件接口.指令集模拟的主要特点是模拟精度高,但模拟速度慢,对于不同的CPU结构需要构造不同的指令集模拟器.文中研究一种基于RTOS实时嵌入式系统行为验证模型,通过扩展RTOS功能,建立RTOS软件模拟器,实现RTOS模拟器和VHDL/VerilogHDL协同模拟交互.RTOS模拟器把嵌入式软件功能代码、CPU接口代码以及定制硬件驱动代码分开,实现嵌入式软件设计与硬件平台的弱相关,从更高层次验证系统功能.Abstract: There are several means to verify target system function in hardware/software co-design field. Instruction set simulator (ISS) is widely used due to its ability to accurately simulate target CPU at low level. As virtual CPU is running in host machine, ISS simulates target instruction set at bus cycle or instruction cycle, so it is usually very time consuming. A fast behavioral verification model with real time operating system (RTOS) approach is presented, and the mechanism of verification is described in full detail to illustrate how the model works correctly. The RTOS simulator divides embedded software into three parts, namely the embedded software function code, RTOS hardware interface code and customized ASIC driver code. The customized ASIC driver is responsible to deal with all kinds of request/replay between hardware and software, so that RTOS simulator can communicate with VHDL or Verilog HDL Simulator and realize fast verification.
下载: