摘要
为了建立嵌入式软件全数字仿真测试环境,利用宿主机平台上丰富的资源和工具来对嵌入式软件进行测试,就必须在宿主机中仿真目标机.文章以MCS-51系列8051CPU为例,介绍了8051虚拟机的工作原理与实现,并仿真了8051的指令集、定时器、串口、中断等,使得嵌入式软件能够运行在宿主机上,从而能够在宿主机上完成嵌入式软件的动态实时测试、覆盖测试.
In order to establish full- digital simulation testing environment of embedded softwares, using abundant resources and tools on host to test the embedded software, we must simulasimulate target machines on host. The paper presents working principles and the realization of the 8051 virtual machine and simulateds the 8051 instruction set, the timer, serial port, interruption, makes embedded software to run on the hosts. Thus, we can complete dynamic testing and coverage testing on host.
出处
《晋中学院学报》
2007年第3期78-82,共5页
Journal of Jinzhong University
关键词
虚拟机
8051单片机
指令集仿真
virtual machine
8051 single - chip computer
instruction set simulator