Font Size: a A A

Research And Implementation Of YHSIM Multicore Parallelization Technology

Posted on:2016-06-07Degree:MasterType:Thesis
Country:ChinaCandidate:R W X ChenFull Text:PDF
GTID:2348330536467262Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
YHSIM is a powerful real-time HILS(Hardware in the loop)software platform.Nowadays,the model solver based YHSIM only could run on a single core of CPU.With the increase in the size and complexity of the system,the number of models which need be solved in a frame time is growing and the amount of calculation is increasing,In order to improve the accuracy of the simulation,system requires a shorter frame time,which makes it difficult to meet demand of real-time model solver in singe core mode.On the other hand,multi-core has become mainstream of CPU,and multi-core parallel solving can effectively improve the efficiency of the solver.Therefore,the research of YHSIM multicore parallelization techniques has important theoretical and practical value in reducing model solver time and meeting the demand of shorter frame time in real-time HILS.Aiming at the characteristics of YHSIM model solver and multi-core computing platforms,in a comprehensive analysis on the basis of relevant key technologies,do some research on the relevant technical of YHSIM modeling frameworks,the compilation mode and and real-time thread creation and synchronization.The main work and innovations are as followings:1.Model Split is the basic of achieving YHSIM multicore parallelization.Achieving parallel solver model need seperate one core task to multiple cores.At present,YHSIM modeling framework packages all models into a model module(DYNAMIC)and the system can not split the models automatically to achieve parallelism.This paper presents a multi-core parallel YHSIM modeling framework.The modeling framework allows the user to package model which could be executed in parallel into different model modules,the system automatically creates real-time threads for different model modules,and it achieves the multi-model slover parallel based on multi-core parallel and lays the foundation for the YHSIM multicore parallelization2.The current YHSIM compiler does not support multi-model modules compilation and code generation,and it is difficult to directly modify the compiler because of the large workload.This paper presents a multi-model joint compilation method based on the existing YHSIM compiler before compilation.Using preprocessor to combine the multimodel modules togather based on the characteristics of the traditional YHSIM module structure,using YHSIM compiler to compile and generates code uniformly,and spliting code according the composition information of the model module parameters.So with minimal cost achieve the multi-model modules compilation and code generation which can be executed in parallel,and provide more support for multi-model parallel solver.3.To achieve multi-model parallel solver and ensure real-time of multi-model parallel solvers,this paper presents the RTX real-time thread creation method based on macro action and real-time frame synchronization technology based on state variable operation,which create some real-time threads whose quantity equal to the real-time core,use macro action to load solver model code into the thread,and use logic operation of state variable of the thread to achieve the models solver thread synchronization in time frame.So,it effectively implements the multi-model real-time parallel solver.Based on the above findings,the YHSIM modeling and real-time simulation software platform which supportS multi-core parallel is designed and implemented.Test results show that the software can effectively support multi-model modules modeling and real-time parallel solver and typical case tests show that the in three-core mode the model Solver time can dropped from 0.68 ms to 0.255 ms,and efficiency 2.67 times.Currently,the software has been applied in the relevant units.
Keywords/Search Tags:YHSIM, Multi-Model Modules Modeling, Real-Time Simulation, Multi-core Parallelization, Frame Time Synchronization
PDF Full Text Request
Related items