当前位置:主页 > 科技论文 > 计算机论文 >

全系统模拟器配置与仿真控制机制设计

发布时间:2018-11-07 10:53
【摘要】:模拟器能够在硬件设计的同时进行软件的开发,实现软硬件交互设计,更好地满足系统的性能要求,缩短开发周期,加快产品上市。但是由于System C/C++等系统语言缺乏灵活性,使不同组件进行相连时,不仅繁琐,而且容易出错。而Python具有语言简洁、灵活、可扩展性、解释性等特点,将Python语言用于全系统模拟器的配置以及控制,可以提高模拟器的灵活性以及动态交互性。基于此,本文采用Python语言设计了模拟器的配置与仿真扩展机制。模拟器的配置与仿真控制机制的设计需要使得脚本语言能在系统语言之间相互访问。本文涉及的模拟器主要由System C语言编写。为了实现System C和Python之间能够相互访问,本文提出了功能扩展机制,设计了两个接口,分别为仿真接口和语言独立接口。仿真接口的设计使得Python脚本能够插入到System C仿真的各个阶段,完成仿真的功能扩展和修补工作。而语言独立接口主要是提供一个统一的方法,使Python从脚本环境,通过层次路径访问System C的仿真对象。基于功能扩展机制,为虚拟平台HVP设计了Python控制台。Python控制台的功能包括控制仿真运行和暂停的仿真控制功能、模块的集成与参数配置功能、可执行文件加载功能、存储空间读写功能等。控制台的实现,对于虚拟平台的灵活性和方便性有了大大的提高。在完成Python控制台的实现后,对Python控制台的功能验证包括对控制台中各个功能的验证。经过验证控制台的各个功能正确。并为虚拟平台的各个设备编写了测试程序,在虚拟平台上运行测试向量进行功能验证,最终所有的测试程序的执行结果正确,进一步说明了控制台的正确性。
[Abstract]:The simulator can develop software at the same time of hardware design, realize the interactive design of software and hardware, better meet the performance requirements of the system, shorten the development period and speed up the launch of products. However, due to the lack of flexibility in System C / C and other system languages, it is not only cumbersome but also error-prone when different components are connected. Python is simple, flexible, extensible and interpretive. Using Python language in the configuration and control of the simulator can improve the flexibility and dynamic interaction of the simulator. Based on this, this paper uses Python language to design the simulator configuration and simulation extension mechanism. The configuration of the simulator and the design of the simulation control mechanism need to enable the script language to access each other among the system languages. The simulator involved in this paper is mainly written by System C language. In order to realize the mutual access between System C and Python, this paper proposes a function extension mechanism and designs two interfaces, one is simulation interface and the other is language-independent interface. The design of the simulation interface enables the Python script to be inserted into all stages of the System C simulation to complete the functional expansion and repair of the simulation. The language independent interface mainly provides a unified method to enable Python to access the simulation object of System C through hierarchical path from the script environment. Based on the function extension mechanism, the Python console is designed for the virtual platform HVP. The functions of the Python console include the simulation control function of controlling simulation running and pausing, the function of module integration and parameter configuration, the function of executable file loading, the function of module integration and parameter configuration, and the function of loading executable file. Storage space reading and writing function. The realization of the console greatly improves the flexibility and convenience of the virtual platform. After the implementation of the Python console, the functional verification of the Python console includes the verification of the various functions in the console. Verify that the various functions of the console are correct. The test program is written for each device of the virtual platform, and the test vector is run on the virtual platform to verify the function. Finally, all the test programs are executed correctly, which further explains the correctness of the console.
【学位授予单位】:哈尔滨工业大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP337

【参考文献】

相关期刊论文 前10条

1 黄建军;李宥谋;刘婧;周欢;;基于Python语言的自动化测试系统的设计与实现[J];现代电子技术;2017年04期

2 吴萌萌;张德学;王维克;闫霄颖;;基于TLM2.0的硬件虚拟平台设计[J];单片机与嵌入式系统应用;2012年08期

3 孙纲德;丁勇;宋文华;罗小华;严晓浪;;基于软件模拟的SoC功能验证技术研究进展[J];小型微型计算机系统;2012年04期

4 庞九凤;佟冬;李皓;何浪;程旭;;面向基于x86处理器和AMBA的系统芯片的全系统模拟器PKUsim-86[J];电子学报;2011年02期

5 许建卫;陈明宇;杨伟;潘晓雷;郑规;赵健博;孙凝晖;;计算机体系结构模拟器技术和发展[J];系统仿真学报;2009年20期

6 高翔;张福新;汤彦;章隆兵;胡伟武;唐志敏;;基于龙芯CPU的多核全系统模拟器SimOS-Goodson[J];软件学报;2007年04期

7 朱裕禄;;Linux系统下的ELF文件分析[J];电脑知识与技术;2006年26期

8 孙君亮;李华敏;于古胜;葛明勇;;一种基于信号机制在UNIX实时应用中快速传递信息的方法[J];电讯技术;2006年04期

9 王晓曦,王秀利,周津慧,王永吉;NS2网络仿真器功能扩展方法及实现[J];小型微型计算机系统;2004年06期

10 何先波,唐宁九,吕方,袁敏;ELF文件格式及应用[J];计算机应用研究;2001年11期



本文编号:2316126

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2316126.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户93391***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com