Font Size: a A A

Research Of Parallel Code Generated Automatically Based On Block Diagram Model

Posted on:2015-03-12Degree:MasterType:Thesis
Country:ChinaCandidate:C H ZhuFull Text:PDF
GTID:2268330431950058Subject:Control theory and control engineering
Abstract/Summary:PDF Full Text Request
The development of multi-core for computes and embedded system promotes the development of parallel computing in software field. So how to make full use of multi-core resources in computes or embedded system to complete computing tasks faster has become a hot research topic.As the convenience in modeling and operation, Block diagram model simulations have been widely used in many areas. So how to combine block diagram model and parallel computing to take advantages of their superiority became a problem to solve.Research of parallel code generated automatically based on block diagram model solves this problem.The feature of block diagram model and transformation from block diagram model to C language parallel code was analyzed in5steps:(1) Analyze the information in the block diagram model file, get the characteristics of modules and store the relationship between modules to get the dependency matrix;(2) Analyze the dependency matrix to get the modules or branch of modules which can be executed parallelly;(3) Get the order of parallel computing by analyzing the modules or branch of modules executed parallelly and the dependency between modules;(4) Build the function of the modules and then generate the primary parallel code based on the order of parallel computing;(5) Make the parallel identification of the primary parallel code and then convert the primary parallel code to parallel program by adding the OpenMP compile-guided instructions; Finally, Analyze the parallel performance and test the accuracy of parallel code generated automatically to evaluate the feasibility of automatic parallel code generation from block diagram models. In this paper, the software of Simulink developed by the Math Works was used as example to study how to generate automatically the parallel code from block diagram models.Realizing the purpose of combination of block diagram model simulations and the parallel code generation is the innovation of this paper. Converting block diagram models to C language parallel code can meet the demand of real-time simulation, shorten the development cycle of the project, lower the frequency of hardware development, and reduce the project development cost. All these have important significance for project development. Good economic value and market prospect can be expected by combining block diagram model simulation and parallel code generation.
Keywords/Search Tags:dependency, graphic block diagram models, parallel programmingcompile-guided instruction, automatic generation
PDF Full Text Request
Related items