摘要
虽然基于模型的设计逐步取代基于文本规范的传统的嵌入式软件开发模式,但是目前RTW(Real-Time Workshop)代码生成工具仅仅将控制算法模型自动转换为源代码,对于实时系统的开发来说,目标芯片的驱动代码还需要用户手动编写,然后添加到控制算法的模型源代码中。针对上述问题,提出基于RTW的驱动代码快速生成技术,它能有效地实现在生成代码的同时将驱动程序嵌入到控制模型的源代码中,真正实现由仿真模型到目标芯片应用程序的代码自动生成。最后以汽车电子主流芯片MPC5634的代码生成为例,结果表明了该技术的实用性和高效性。
Although the model-based design technique is gradually substituting the text specification-based traditional embedded software development pattern,but at present,RTW code generation tool only transforms the control algorithm model into model source code. As to the development 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 instance,results have verified the practicality and efficiency of the technique.
出处
《计算机应用与软件》
CSCD
2016年第3期226-228,共3页
Computer Applications and Software
基金
"核高基"重大专项(2009ZX01038-002-002)
关键词
实时工作间
驱动代码生成
快速原型
Real-time workshop
Driver code generation
Rapid prototype