摘要
指令系统的仿真是单片机仿真软件开发的基础。给出了可进行CPU配置的指令仿真系统设计方案,通过分析内核CPU配置文件,设计指令获取算法、指令执行函数和指令解析函数来完成对其的仿真。实验结果表明:指令系统仿真在程序运行时间、指令功能、指令指针的移动、指针偏移量、寄存器值方面能较好地逼近真正硬件平台。
The simulation of Ins System is the base of developing progress of it.A design was provided in this article to implement the simulation of Ins System with friendly GUI and CPU cofiguration,which is accomplished by analyzing the CPU configuration,devising the instruction obtaining algorithm,instruction execution and instruction interpretation routine. The realization and experiment result show the time consuming of procedure block,the function of instruction,the movement of PC and the offset of PC,the result of register can be embodied in this Simulation of Ins system as well as in the real hardware environment.
出处
《军民两用技术与产品》
2008年第2期45-48,共4页
Dual Use Technologies & Products