摘要: 综合嵌入式系统通过外部总线实现各个子系统之间的通信连接。为解决综合嵌入式系统的接口测试问题,采用系统虚拟机仿真综合嵌入式系统的连接方式,通过在虚拟机中创建外部总线仿真模块,配置仿真模块的连接,从而实现虚拟机之间的通信。提出一种基于以太网通信的外部总线仿真结构,以CAN总线仿真为例,在全系统虚拟机QEMU的内部总线上配置与注册外部总线设备,为读写总线设备数据的接口建立共享内存,组织总线协议报文。实验结果表明,通过网络收发报文,可实现总线仿真节点模块之间的数据交换,从而达到仿真总线的数据通信功能。
关键词:
虚拟机,
PCI总线,
CAN总线,
功能性仿真,
总线仲裁,
中断
Abstract: The communication connection among subsystems of the integrated embedded systems is achieved by an external bus. In order to solve interface test problems of the integrated embedded system, integrated embedded systems are simulated by embedded systems virtual machines which create external bus simulation modules. And the communication among virtual machines is achieved by configuring connections of these modules. This technology presents an external bus simulation structure based on Ethernet communication, and takes Controllers Area Network(CAN) bus simulation as an example. It establishes shared memory for bus device interface reading and writing data and achieves the data exchange between simulation node modules via configurations of internal bus on QEMU which is a system virtual machine, registrations of external bus devices, organizations of bus protocol packets and sending and receiving packets through the network, so as to achieve the data communication capabilities of simulation bus.
Key words:
virtual machine,
Peripheral Component Interconnect(PCI) bus,
Controllers Area Network(CAN) bus,
functional simulation,
bus arbitration,
interrupt
中图分类号:
胡国卿,邵培南,陈磊,李翔. 基于QEMU的外部总线仿真技术[J]. 计算机工程.
HU Guo-qing, SHAO Pei-nan, CHEN Lei, LI Xiang. External Bus Simulation Technology Based on QEMU[J]. Computer Engineering.