CN111552636A - Method for supporting AADL integration simulation by applying FMI protocol - Google Patents

Method for supporting AADL integration simulation by applying FMI protocol Download PDF

Info

Publication number
CN111552636A
CN111552636A CN202010305671.4A CN202010305671A CN111552636A CN 111552636 A CN111552636 A CN 111552636A CN 202010305671 A CN202010305671 A CN 202010305671A CN 111552636 A CN111552636 A CN 111552636A
Authority
CN
China
Prior art keywords
aadl
model
interface
fmu
sys1
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010305671.4A
Other languages
Chinese (zh)
Other versions
CN111552636B (en
Inventor
沈届时
刘畅
陈聪
王科翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Aeronautical Radio Electronics Research Institute
Original Assignee
China Aeronautical Radio Electronics Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Aeronautical Radio Electronics Research Institute filed Critical China Aeronautical Radio Electronics Research Institute
Priority to CN202010305671.4A priority Critical patent/CN111552636B/en
Publication of CN111552636A publication Critical patent/CN111552636A/en
Application granted granted Critical
Publication of CN111552636B publication Critical patent/CN111552636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method for supporting AADL integration simulation by applying FMI protocol, which comprises the following steps: establishing an AADL project by using AADL, wherein the AADL project comprises object system Sys1 to be analyzed and related system module SysN _ origin having direct interactive relation with object system Sys1, and component and interface constraints are established; carrying out specialized design on the SysN _ origin of the related system by using a second modeling language to obtain a related system model; exporting the relational system model into an FMU model, and keeping the interface characteristic, the mathematical characteristic and the logic characteristic of the model in the packaging process; introducing the FMU model into AADL engineering, replacing a related system module in the AADL engineering by the corresponding FMU model, connecting the related system module with an object system Sys1, and judging the consistency of interfaces; running an AADL project; an AADL model in the AADL engineering carries out component state migration under the drive of interface events and data, and an object system Sys1 architecture performance is evaluated by applying a rationalization method.

Description

Method for supporting AADL integration simulation by applying FMI protocol
Technical Field
The application relates to the field of computers, in particular to a method for supporting AADL integration simulation by applying an FMI protocol.
Background
AADL is a system architecture description language, which is mainly used for modeling embedded real-time systems. As a system architecture description language, AADL establishes the system architecture of a system through components and connections. An AADL description is made of a description of a series of components, and the structure of the system is modeled by instantiating such a description. The AADL model may also use attributes to define non-functional characteristics of the belonging components, such as the clock frequency of the processor, the execution time of a thread, bus bandwidth limitations, etc.
In order to solve the problem of cross-discipline multi-tool set product comprehensive analysis, the european development information technology project (ITEA2) proposes a model-auto integration to Support feature Vehicle functional package mockup (model-auto integration to Support system collaborative design, simulation, test, and embedded software development). This model package Interface standard is known as the FMI (Functional Mock-up Interface) standard. The support to the FMI protocol is added through a modeling tool, different modeling and simulation software exports the model into an FMU (Functional Module-up Unit) format through a format conforming to an FMI interface standard, and the model is effectively integrated in other simulation environments to realize collaborative simulation analysis, virtual test and the like, so that the interactivity and reusability of the model are greatly improved, and the integration difficulty is reduced.
In the design process of an embedded system, an AADL (architecture analysis and design language) model can show the architectural design in the system, but because the AADL model lacks the capability of direct heterogeneous simulation and multisource heterogeneous simulation, on one hand, the AADL model is isolated from modeling works of other links in design, the model achievements cannot be integrated, and the design consistency needs to be judged by people; on the other hand, the internal design of the embedded system is difficult to simulate by combining with the input outside the boundary, and the AADL system architecture model cannot be effectively and reasonably evaluated according to the use scene outside the system boundary. The FMI protocol allows a plurality of discipline model achievements to be mutually accessed and reused, but the problem of topological composition of simulation itself cannot be solved as a universal black box model, and development of simulation work is relatively abstract.
Therefore, a software interface development mode is mostly adopted in AADL simulation at present, and in the mode, interface development and adaptation are carried out on all tools needed to be used by multidisciplinary models in a system, so that the development cost is high, and the workload is large; at present, the FMI protocol is used without considering the composition of the self architecture of the system, and when the number of subsystems is large, the integration of FMU models cannot be well organized.
Disclosure of Invention
The invention aims to solve the problems that the architecture of the system cannot be evaluated according to effective system input because the AADL is isolated from other modeling languages and lacks the integrated simulation verification capability.
The application provides a method for supporting AADL integration simulation by applying FMI protocol, which comprises the following steps:
establishing an AADL project by using AADL, wherein the AADL project comprises object system Sys1 to be analyzed and related system module SysN _ origin having direct interactive relation with object system Sys1, and component and interface constraints are established;
carrying out specialized design on the SysN _ origin of the related system by using a second modeling language to obtain a related system model;
exporting the relational system model into an FMU model, and keeping the interface characteristic, the mathematical characteristic and the logic characteristic of the model in the packaging process;
introducing the FMU model into AADL engineering, replacing a related system module in the AADL engineering by the corresponding FMU model, connecting the related system module with an object system Sys1, and judging the consistency of interfaces;
running an AADL project;
an AADL model in the AADL engineering carries out component state migration under the drive of interface events and data, and an object system Sys1 architecture performance is evaluated by applying a rationalization method.
Optionally, the second modeling language includes SysML, Simulink, and Modelica.
Optionally, the specialization design of the relevant system SysN _ origin using the second modeling language specifically includes:
the professional design of the relevant system SysN _ origin using the second modeling language requires the inheritance of the boundary interface determined from the AADL model in the AADL project.
Optionally, running the AADL project specifically includes:
and exciting events and data to the FMU model, and driving the AADL model to run in a simulation mode.
Optionally, the determining the interface consistency specifically includes:
and judging whether the front and rear interfaces are consistent or not and whether the types of the interface transmission parameters are consistent or not.
Optionally, the AADL model in the AADL engineering performs component state migration under interface event and data driving, and the architecture performance of the object system Sys1 is evaluated by applying a common method, which specifically includes:
inputting resources to the AADL model by the FMU model;
the process and the thread in the AADL model carry out state migration through the acquisition of input resources, and the running process is realized;
and performing rationalization evaluation on the architecture design of the object system Sys1 by combining preset factors, and performing iterative optimization.
Optionally, the preset factors include:
temporal characteristics and hardware characteristics.
Optionally, deriving the relational system model as an FMU model specifically includes:
and exporting the relative system model as an FMU model, and keeping the interface characteristics, the mathematical characteristics and the logic characteristics of the FMU model in the packaging process.
In summary, the invention designs a method flow for carrying out integrated simulation on the AADL model based on the form of generating a universal file by an FMI protocol, so that achievements of various subject models participate in the AADL simulation process, and the evaluation and optimization work of the AADL system architecture model is realized. The invention combines the architecture description characteristic of AADL and the general characteristic of FMI protocol, and provides an effective method for the integrated simulation evaluation of the AADL model.
Drawings
Fig. 1 is a schematic flow chart of a method for supporting AADL integration simulation by applying an FMI protocol according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
A method for supporting AADL integration simulation using FMI protocol, comprising the steps of:
step 1: establishing a system architecture, establishing component and interface constraints by using the AADL to establish the structure of a system (a related system SysN _ origin with which an object system Sys1 to be analyzed has a direct interaction relationship);
step 2: and (4) performing specialized design on the relevant system model by using other subject modeling languages. The SysML, Simulink, Modelica and the like are generally used, and the model needs to inherit a boundary interface determined from the AADL model when being designed;
and step 3: exporting the related system model after the specialized design into an FMU model (SysN _ specific.fmu), and keeping the interface characteristic, the mathematical characteristic and the logic characteristic of the model in the packaging process;
and 4, step 4: introducing an FMU model (SysN _ specific. FMU) of a related system into the AADL engineering established in the step 1, replacing the related system module in the engineering through the corresponding FMU model, connecting the related system module with a subject system Sys1, and judging the interface consistency;
and 5: running engineering, wherein an FMU model is used as a test case of a Sys1 object system to be analyzed to excite events and data, and an AADL model is driven to run in a simulation mode;
step 6: the AADL model carries out component state migration under the drive of interface events and data, and an object system Sys1 architecture performance is evaluated by applying a rationalization method.
The following describes in detail a method for supporting AADL integration simulation by applying FMI protocol, which is proposed in the present application:
step 1: establishing a system architecture, establishing component and interface constraints by using the AADL to establish the structure of a system (a related system SysN _ origin with which an object system Sys1 to be analyzed has a direct interaction relationship);
step 2: and (4) carrying out specialized design on the participation system model by using a specialized subject modeling language.
Step 2.1: performing internal logic and subject characteristic design on a participation system SysN by using multidisciplinary professional languages such as SysML, Simulink and Modelica, and keeping interface constraint established in AADL engineering by using a design model;
step 2.2: designing internal components of a Sys1 to-be-analyzed object system;
and step 3: exporting the relevant models of specialized modeling into FMU models, and keeping the interface characteristics, mathematical characteristics and logic characteristics of the models in the packaging process;
and 4, step 4: introducing an FMU model (SysN _ specific. FMU) into the AADL engineering established in the step 1, replacing a relevant system module in the engineering by a corresponding FMU model, connecting with an object system Sys1 to be analyzed, and judging the interface consistency;
step 4.1: importing an FMU into engineering requires support of the FMI protocol by the platform. Replacing the imported FMU model with a corresponding related system module in the engineering;
step 4.2: and connecting an interface between the related system SysN _ special and the object Sys1 to be analyzed, and judging the consistency of the interface. The consistency judgment mainly judges whether the interfaces before and after the design are consistent and checks whether the types of the interface transmission parameters are consistent. The mapping relationship between FMU and AADL interfaces is mainly shown in table 1:
Figure BDA0002455708430000051
TABLE 1
And 5: running engineering, wherein an FMU model is used as a test case of a Sys1 object system to be analyzed to excite events and data, and an AADL model is driven to run in a simulation mode;
step 5.1: determining simulation step length, synchronizing clocks among multiple models, and finishing initialization work of each model;
step 5.2: the FMU model outputs data and events and provides excitation for the AADL model;
step 6: the AADL model carries out component state migration under the drive of interface events and data, and an object system Sys1 architecture performance is evaluated by applying a rationalization method.
Step 6.1: inputting resources to the AADL model by the FMU model;
step 6.2: the process and the thread in the AADL model carry out state migration through the acquisition of input resources, and the running process is realized;
step 6.3: and performing rationalization evaluation on the architecture design of the Sys1 to be analyzed by combining factors such as time characteristics and hardware characteristics, and performing iterative optimization.
The method and process for performing integrated simulation on the AADL model are the protection scope of the appended claims.
The invention relates to a method for supporting AADL (architecture analysis and design language) collaborative simulation by applying an FMI (frequency modulation interface) protocol, belonging to the research fields of embedded system design, test simulation and the like. The problem that an AADL model lacks an effective simulation means in virtual verification and is difficult to share knowledge results with other model results generated in the system design process is solved, the FMI protocol is applied to package key model information to serve as test case excitation of the AADL model, collaborative simulation between system functions and a framework is achieved, and evaluation work on key performance of the AADL model is completed.

Claims (8)

1. A method for supporting AADL integration emulation using FMI protocol, the method comprising:
establishing an AADL project using AADL, the AADL project including object system Sys1 to be analyzed and associated system module SysN _ origin in direct interactive relation with object system Sys1, establishing component and interface constraints;
carrying out specialized design on the SysN _ origin of the related system by using a second modeling language to obtain a related system model;
exporting the relevant system model into an FMU model, and keeping the interface characteristic, the mathematical characteristic and the logic characteristic of the model in the packaging process;
introducing the FMU model into the AADL engineering, replacing a related system module in the AADL engineering by the corresponding FMU model, connecting the related system module with an object system Sys1, and judging the consistency of interfaces;
running the AADL project;
the AADL model in the AADL engineering carries out component state migration under the drive of interface events and data, and an object system Sys1 architecture performance is evaluated by applying a rationalization method.
2. The method of claim 1, wherein the second modeling language comprises SysML, Simulink, and Modelica.
3. The method according to claim 1, wherein the professionally designing the associated system SysN _ origin using the second modeling language specifically comprises:
the professional design of the relevant system SysN _ origin using the second modeling language requires the inheritance of the boundary interface determined from the AADL model in the AADL project.
4. The method according to claim 1, wherein the running the AADL project specifically comprises:
and exciting events and data to the FMU model, and driving the AADL model to run in a simulation mode.
5. The method according to claim 1, wherein the determining the interface consistency specifically comprises:
and judging whether the front and rear interfaces are consistent or not and whether the types of the interface transmission parameters are consistent or not.
6. The method according to claim 1, wherein the AADL model in the AADL engineering performs component state migration under interface event and data driving, and the applying a fairness method to evaluate the architectural performance of the object system Sys1 specifically includes:
inputting resources to the AADL model by the FMU model;
the process and the thread in the AADL model carry out state migration through the acquisition of input resources, and the running process is realized;
and performing rationalization evaluation on the architecture design of the object system Sys1 by combining preset factors, and performing iterative optimization.
7. The method of claim 6, wherein the predetermined factors comprise:
temporal characteristics and hardware characteristics.
8. The method according to claim 1, wherein deriving the correlation system model as an FMU model comprises:
and exporting the related system model to be an FMU model, and keeping the interface characteristic, the mathematical characteristic and the logic characteristic of the FMU model in the packaging process.
CN202010305671.4A 2020-04-17 2020-04-17 Method for supporting AADL integration simulation by applying FMI protocol Active CN111552636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010305671.4A CN111552636B (en) 2020-04-17 2020-04-17 Method for supporting AADL integration simulation by applying FMI protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010305671.4A CN111552636B (en) 2020-04-17 2020-04-17 Method for supporting AADL integration simulation by applying FMI protocol

Publications (2)

Publication Number Publication Date
CN111552636A true CN111552636A (en) 2020-08-18
CN111552636B CN111552636B (en) 2022-11-15

Family

ID=72003885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010305671.4A Active CN111552636B (en) 2020-04-17 2020-04-17 Method for supporting AADL integration simulation by applying FMI protocol

Country Status (1)

Country Link
CN (1) CN111552636B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084668A (en) * 2020-09-14 2020-12-15 北京世冠金洋科技发展有限公司 Simulation test method and device and electronic equipment
CN112084734A (en) * 2020-09-14 2020-12-15 北京世冠金洋科技发展有限公司 Test result processing method and device and electronic equipment
CN112667242A (en) * 2020-12-28 2021-04-16 北京世冠金洋科技发展有限公司 Method and device for packaging C code into FMU
CN114942757A (en) * 2022-05-16 2022-08-26 北京世冠金洋科技发展有限公司 File generation method and system and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019903A (en) * 2013-01-18 2013-04-03 哈尔滨工业大学 Embedded equipment energy consumption simulating evaluation system
CN105701277A (en) * 2016-01-05 2016-06-22 中国航空无线电电子研究所 AADL modeling based avionics system architecture real-time performance analysis method
CN110674588A (en) * 2019-09-30 2020-01-10 北京航空航天大学 MBSE-based modeling simulation method for on-missile electrical system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019903A (en) * 2013-01-18 2013-04-03 哈尔滨工业大学 Embedded equipment energy consumption simulating evaluation system
CN105701277A (en) * 2016-01-05 2016-06-22 中国航空无线电电子研究所 AADL modeling based avionics system architecture real-time performance analysis method
CN110674588A (en) * 2019-09-30 2020-01-10 北京航空航天大学 MBSE-based modeling simulation method for on-missile electrical system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱国锋等: "基于AADL的RDC架构建模与关键特性仿真", 《航空电子技术》 *
李铁颖等: "一种基于AADL的航空电子系统仿真和验证技术", 《航空电子技术》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084668A (en) * 2020-09-14 2020-12-15 北京世冠金洋科技发展有限公司 Simulation test method and device and electronic equipment
CN112084734A (en) * 2020-09-14 2020-12-15 北京世冠金洋科技发展有限公司 Test result processing method and device and electronic equipment
CN112084668B (en) * 2020-09-14 2023-11-14 北京世冠金洋科技发展有限公司 Simulation test method and device and electronic equipment
CN112667242A (en) * 2020-12-28 2021-04-16 北京世冠金洋科技发展有限公司 Method and device for packaging C code into FMU
CN112667242B (en) * 2020-12-28 2023-08-22 北京世冠金洋科技发展有限公司 Method and device for encapsulating C codes into FMU
CN114942757A (en) * 2022-05-16 2022-08-26 北京世冠金洋科技发展有限公司 File generation method and system and electronic equipment

Also Published As

Publication number Publication date
CN111552636B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN111552636B (en) Method for supporting AADL integration simulation by applying FMI protocol
US7100133B1 (en) Computer system and method to dynamically generate system on a chip description files and verification information
US7865350B1 (en) Partitioning a model in modeling environments
CN107784152A (en) Include the simulation of multiple simulators
CN111367511B (en) Simulation model interface adaptation development system and working method thereof
US20040093186A1 (en) Method and apparatus for decomposing and verifying configurable hardware
JP2002505024A (en) Concurrent hardware-software co-simulation
US7194726B2 (en) Method for automatically decomposing dynamic system models into submodels
JP2004510258A (en) Performance level modeling and simulation of electronic systems with hardware and software
CN107346249A (en) A kind of computer software development approach based on model
CN110196720B (en) Optimization method for generating dynamic link library by Simulink
Valderrama et al. Automatic generation of interfaces for distributed C-VHDL cosimulation of embedded systems: an industrial experience
Haberl et al. Model-level debugging of embedded real-time systems
US8819646B2 (en) Control architecture and process for porting application software for equipment on board an aircraft to a consumer standard computer hardware unit
US6539345B1 (en) Symbolic simulation using input space decomposition via Boolean functional representation in parametric form
Valderrama et al. Automatic VHDL-C interface generation for distributed cosimulation: Application to large design examples
Romdhani et al. Modeling and rapid prototyping of avionics using statemate
Bailey et al. Hardware/software co-simulation strategies for the future
Calvez et al. Uninterpreted co-simulation for performance evaluation of hw/sw systems
Klaus et al. Automatic generation of scheduled SystemC models of embedded systems from extended task graphs
US11295051B2 (en) System and method for interactively controlling the course of a functional simulation
Bruce et al. Maintaining consistency between SystemC and RTL system designs
Marinescu et al. Statistical analysis of resource usage of embedded systems modeled in east-adl
Henley et al. Using High Performance Computing for Parameter Sweep of S3D Applications
Diertens A process algebra software engineering environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant