摘要
针对基于SystemC的可重构专用处理器模拟器在整个系统的仿真时(包括操作系统、驱动、API及应用程序)耗时久、影响开发进度的问题,提出一种基于QEMU的模拟器设计方法。根据可重构专用处理器的功能特点和系统架构,对可重构专用处理器进行抽象,利用在仿真速度上优势明显的QEMU,设计并实现一个在功能和内部存储上精确的模拟器。实验测试结果表明,该模拟器提高了全系统仿真时的速度,在硬件开发板尚未就位前,为软件开发人员提供了一个可以进行软件开发和测试的平台,提高了开发效率。
A QEMU-based emulator for reconfigurable application specific processor was proposed to deal with the severe timeconsuming problem exists in the process of emulating the whole system of SystemC-based emulator encounters,including operating system,device drivers,application interfaces and software applications.Compared with SystemC,QEMU outperformed obviously in emulation speed,which provided chances to solve the problem above.By taking advantage of QEMU and abstracting functionality and architecture from the processor,the emulator designed and implemented performed with high accuracy on behavior and storage.In test,it shows great improvement on the speed of the full system emulation.And it also provides a platform for the software developers to develop and test their programs before the hardware development board being in place.
引文
[1]Herber P,Glesner S.A HW/SW co-verification framework for SystemC[J].ACM Transactions on Embedded Computing Systems,2013,12(1s):61.
[2]Teich J.Hardware/software codesign:The past,the present,and predicting the future[J].Proceedings of the IEEE,2012,100(Special Centennial Issue):1411-1430.
[3]LIANG Shuangjie.Research on system-level verification method of SoC software and hardware co-design[D].Xi’an:Xidian University,2014(in Chinese).[梁双杰.SoC软硬件协同设计系统级验证方法研究[D].西安:西安电子科技大学,2014.]
[4]Shen ST,Lee SY,Chen CH.Full system simulation with qemu:An approach to multi-view 3dGPU design[C]//IEEE International Symposium on Circuits and Systems,2010:3877-3880.
[5]Chiang MC,Yeh TC,Tseng GF.A QEMU and SystemCbased cycle-accurate ISS for performance estimation on SoC development[J].IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems,2011,30(4):593-606.
[6]HU Yibin.Research for extensible,cycle-accurate and fast multi-core simulators[D].Shanghai:Fudan University,2012(in Chinese).[胡益斌.可扩展,周期精确,快速多核模拟器研究[D].上海:复旦大学,2012.]
[7]Yeh TC,Chiang MC.On the interface between QEMU and SystemC for hardware modeling[C]//International Symposium on Next-Generation Electronics,2010:73-76.
[8]Patel A,Afram F,Ghose K.Marss-x86:A qemu-based micro-architectural and systems simulator for x86 multicore processors[C]//1st International Qemu Users’Forum,2011:29-30.
[9]LI Ang.The design and implementation of a method of remote PCI device driver[D].Nanjing:Nanjing University,2012(in Chinese).[李昂.一种远程PCI设备驱动方法的设计与实现[D].南京:南京大学,2012.]
[10]HU Guoqing,SHAO Peinan,CHEN Lei,et al.External bus simulation technology based on QEMU[J].Computer Engineering,2014,40(2):289-293(in Chinese).[胡国卿,邵培南,陈磊,等.基于QEMU的外部总线仿真技术[J].计算机工程,2014,40(2):289-293.]
[11]ZHOU Ping,MA Jiezhong.Design and implementation of emulation device based on open source virtual machine[J].Electronic Design Engineering,2011,19(18):43-45(in Chinese).[周平,马捷中.基于开源虚拟机的模拟设备的设计与实现[J].电子设计工程,2011,19(18):43-45.]