Efficient modeling of preemption in a virtual prototype

J. Cockx
{"title":"Efficient modeling of preemption in a virtual prototype","authors":"J. Cockx","doi":"10.1109/IWRSP.2000.854977","DOIUrl":null,"url":null,"abstract":"A virtual prototype combines a hardware model with hardware/software cosimulation to support the development and debugging of embedded software before a hardware prototype is available. Existing techniques for hardware/software cosimulation execute the software either on an instruction set simulator for accuracy or on the simulator host processor for increased performance. On the host processor timing is either completely ignored or approximated using timing annotations in the code. Although preemption (interrupts) can strongly influence the timing, it is rarely modeled to avoid a performance degrading that would make the virtual prototype unusable, especially for real time signal processing software simulations which is already time consuming as such. We propose a technique to accurately model preemption and its effect on software timing in a simulation based on host code execution. Our technique has been implemented in the TIPSY C++ library for executable system modeling, pseudo C-code for this implementation with several optimizations is included in this paper. With this implementation, a preemptive scheduler model can be easily be created or taken from a library and inserted in a system model without changing the original code to observe the effect of preemption on the system behavior.","PeriodicalId":282586,"journal":{"name":"Proceedings 11th International Workshop on Rapid System Prototyping. RSP 2000. Shortening the Path from Specification to Prototype (Cat. No.PR00668)","volume":"100 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2000-06-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"22","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings 11th International Workshop on Rapid System Prototyping. RSP 2000. Shortening the Path from Specification to Prototype (Cat. No.PR00668)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IWRSP.2000.854977","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 22

Abstract

A virtual prototype combines a hardware model with hardware/software cosimulation to support the development and debugging of embedded software before a hardware prototype is available. Existing techniques for hardware/software cosimulation execute the software either on an instruction set simulator for accuracy or on the simulator host processor for increased performance. On the host processor timing is either completely ignored or approximated using timing annotations in the code. Although preemption (interrupts) can strongly influence the timing, it is rarely modeled to avoid a performance degrading that would make the virtual prototype unusable, especially for real time signal processing software simulations which is already time consuming as such. We propose a technique to accurately model preemption and its effect on software timing in a simulation based on host code execution. Our technique has been implemented in the TIPSY C++ library for executable system modeling, pseudo C-code for this implementation with several optimizations is included in this paper. With this implementation, a preemptive scheduler model can be easily be created or taken from a library and inserted in a system model without changing the original code to observe the effect of preemption on the system behavior.
虚拟样机中抢占的高效建模
虚拟样机将硬件模型与硬件/软件协同仿真相结合,在硬件样机可用之前支持嵌入式软件的开发和调试。现有的硬件/软件协同仿真技术要么在指令集模拟器上执行软件以提高准确性,要么在模拟器主处理器上执行软件以提高性能。在主机处理器上,要么完全忽略计时,要么使用代码中的计时注释来近似计时。虽然抢占(中断)可以强烈地影响时间,但很少建模以避免性能下降,从而使虚拟原型无法使用,特别是对于已经非常耗时的实时信号处理软件模拟。在基于主机代码执行的仿真中,我们提出了一种精确建模抢占及其对软件时序影响的技术。我们的技术已经在TIPSY c++库中实现,用于可执行系统建模,本文包含了该实现的伪C代码,并进行了一些优化。通过这种实现,可以很容易地创建或从库中获取抢占式调度器模型并将其插入到系统模型中,而无需更改原始代码来观察抢占对系统行为的影响。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信