首页> 中文期刊> 《计算机应用与软件》 >基于 RTW 的驱动代码快速生成技术研究

基于 RTW 的驱动代码快速生成技术研究

         

摘要

Although the model-based design technique is gradually substituting the text specification-based traditional embedded software de-velopment pattern,but at present,RTW code generation tool only transforms the control algorithm model into model source code.As to the de-velopment of real-time system,users have to program driver code for target chip,then append to model source code of control algorithm.In view of the above questions,we put forward the RTW-based driver code quick generation technique,which can effectively realise to embed the driver program to source codes of control model while generating code,thus realises truly the automatic code generation from simulation model to applications of target chips.In end of the paper we use the code generation of mainstream chip MPC5634 of automotive electronics as in-stance,results have verified the practicality and efficiency of the technique.%要虽然基于模型的设计逐步取代基于文本规范的传统的嵌入式软件开发模式,但是目前 RTW(Real-Time Workshop)代码生成工具仅仅将控制算法模型自动转换为源代码,对于实时系统的开发来说,目标芯片的驱动代码还需要用户手动编写,然后添加到控制算法的模型源代码中。针对上述问题,提出基于 RTW 的驱动代码快速生成技术,它能有效地实现在生成代码的同时将驱动程序嵌入到控制模型的源代码中,真正实现由仿真模型到目标芯片应用程序的代码自动生成。最后以汽车电子主流芯片 MPC5634的代码生成为例,结果表明了该技术的实用性和高效性。

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号