作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (15): 247-249. doi: 10.3969/j.issn.1000-3428.2006.15.087

• 工程应用技术与实现 • 上一篇    下一篇

嵌入式软件模拟测试平台的设计与实现技术

王海晟1;楼文晓2   

  1. 1. 西安理工大学计算机学院,西安 710048;2. 西安软件工程技术研究中心,西安 710075
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-08-05 发布日期:2006-08-05

Design and Development Technology of Embedded Software Simulation Test Platform

WANG Haisheng1;LOU Wenxiao2   

  1. 1. School of Computer Science and Technology, Xi’an University of Technology, Xi’an 710048; 2. Xi’an Software Engineering Research Center, Xi’an 710075
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-08-05 Published:2006-08-05

摘要: 总结了嵌入式软件模拟测试平台研制过程中所遇到的技术难点和相应的解决途径。该平台主要包括静态分析和动态模拟运行两个子系统,静态分析部分拥有逆向生成程序流程图的功能。介绍了生成“流程图图块文件”的思想。CPU模拟是该平台的核心,给出了CPU模拟的工作方式和流程,以及测试覆盖率的统计方案。采用了两种存储器体系结构,寻址方式的模拟不仅保证了正确地确定操作数,而且能够正确统计指令执行时间。介绍了模拟时钟的设计思想,以及中断控制模拟器的工作原理,描述了中断信号的发生、中断优先级的控制措施。

关键词: 嵌入式软件, 模拟测试, ARM, 中断, 时钟周期

Abstract: The paper is a technique summary about the key technique and the approach to overcome the difficulty, during development embedded software simulation test platform. The test platform consists of two subsystem: static analysis and dynamic execution. The function of creating flowchart from program is praised by users. An idea is described about making “flowchart chart block file”. The CPU simulation is the kernel of the platform. A work mode and flow is described to simulate CPU. It presents test coverage statistic method. The platform introduces two memory system structure, addressing mode simulation guarantees that not only the operand is correctly obtained, but also the instruction execution time is correctly calculated. The design of clock simulation is described. It presents how to use simulation clock as pacesetter to control computer system and the work principle of the interrupt simulation, describes control measure about interrupt signal taking place and interrupt priority control.

Key words: Embedded software, Simulation test, ARM, Interrupt, Clock cycle

中图分类号: