Simulation synchronization control method, device, equipment, program product and storage medium

By periodically determining the simulation scenario type and applying a predefined synchronization strategy in the hybrid simulation platform, the accuracy and efficiency issues caused by the difference in simulation rates among multiple modules are resolved, thereby improving simulation accuracy and efficiency.

CN120723491BActive Publication Date: 2026-01-23SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511180104.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-22
Publication Date
2026-01-23
Estimated Expiration
2045-08-22

AI Technical Summary

Technical Problem

In hybrid simulation platforms, the difference in simulation rates among multiple simulation modules leads to poor simulation accuracy or low efficiency, and there is a lack of mature simulation synchronization control methods.

Method used

The simulation scenario type of the current simulation stage of the hybrid simulation platform is determined periodically, and the target synchronization strategy is determined according to the predefined correspondence and sent to each simulation module for synchronization.

Benefits of technology

This improves the simulation accuracy and efficiency of the hybrid simulation platform, making the synchronization strategy compatible with the current simulation stage and dynamically adjusting the synchronization strategy to optimize the simulation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120723491B_ABST
    Figure CN120723491B_ABST
Patent Text Reader

Abstract

The application discloses a simulation synchronization control method and device, equipment, program product and storage medium, belongs to the field of simulation control, and is used for dynamically adapting a synchronization strategy according to a simulation scene type of a hybrid simulation platform, solves the problems of poor simulation precision and efficiency, and the simulation scene type to which the current simulation stage of the hybrid simulation platform is subjected is periodically determined in the application, then a corresponding synchronization strategy is determined through a first corresponding relationship, and the synchronization strategy is sent to each simulation module as a target synchronization strategy, so that any simulation module performs simulation synchronization with other simulation modules according to the target synchronization strategy, based on this, the synchronization strategy applied by the hybrid simulation platform can be adapted to the current simulation stage, thereby facilitating improvement of simulation precision and simulation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of simulation control, and in particular to a simulation synchronization control method, apparatus, equipment, program product, and storage medium. Background Technology

[0002] When simulating electronic systems, a hybrid simulation platform consisting of multiple simulation modules may be used in some cases (for example, system-level simulation is performed using a first simulation tool while hardware and software co-simulation is performed using a second simulation tool). However, the simulation rates of the multiple simulation modules in the hybrid simulation platform may differ, so it is necessary to synchronize the multiple simulation modules in the hybrid simulation platform. However, there is a lack of a mature simulation synchronization control method in the relevant technologies, which may lead to poor simulation accuracy or low simulation efficiency.

[0003] Therefore, how to provide a solution to the above-mentioned technical problems is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0004] The purpose of this invention is to provide a simulation synchronization control method, device, equipment, program product, and storage medium. In this invention, the simulation scenario type of the current simulation stage of the hybrid simulation platform is first determined periodically. Then, the corresponding synchronization strategy is determined through a first correspondence relationship and sent as the target synchronization strategy to each simulation module so that any simulation module can synchronize with other simulation modules according to the target synchronization strategy. Based on this, the synchronization strategy applied by the hybrid simulation platform can be adapted to its current simulation stage, thereby improving simulation accuracy and efficiency.

[0005] To solve the above-mentioned technical problems, the present invention provides a simulation synchronization control method, comprising:

[0006] The simulation scenario type of the current simulation stage of the hybrid simulation platform is periodically determined as the target scenario type. The hybrid simulation platform includes multiple simulation modules, which cooperate with each other to simulate the electronic system. The simulation scenario type is a predefined simulation scenario type that adapts to the corresponding synchronization strategy throughout the entire simulation process of the hybrid simulation platform.

[0007] Based on a preset first correspondence, a synchronization strategy corresponding to the target scene type is determined as the target synchronization strategy. The first correspondence includes the correspondence between simulation scene types and synchronization strategies.

[0008] The target synchronization strategy is sent to each simulation module in the hybrid simulation platform so that any simulation module can synchronize with other simulation modules according to the target synchronization strategy.

[0009] On the other hand, the periodic determination of the simulation scenario type to which the hybrid simulation platform belongs in the current simulation stage includes the following target scenario types:

[0010] Periodically acquire the preset type of status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform;

[0011] Based on the state parameters and the load state, the simulation scenario type of the current simulation stage of the hybrid simulation platform is determined as the target scenario type.

[0012] On the other hand, determining the simulation scenario type of the current simulation stage of the hybrid simulation platform based on the state parameters and the load state, including the target scenario type, includes:

[0013] Determine whether the state parameters and the load state meet the scene recognition conditions of any predefined simulation scene type;

[0014] If the conditions are met, the simulation scenario type that satisfies the scenario identification conditions, including the state parameters and the load state, will be taken as the target scenario type.

[0015] On the other hand, the predefined simulation scenario types include simulation rate priority scenarios;

[0016] The scene recognition conditions for the simulated rate-first scenario include:

[0017] If the difference in simulation rate between various simulation modules in the hybrid simulation platform reaches the first preset threshold, it is identified as a simulation rate priority scenario.

[0018] The preset type of state parameters includes the simulation rate.

[0019] On the other hand, the scene recognition conditions for the simulated rate-priority scenario also include:

[0020] If the load rate of the host machine's central processing unit reaches the second preset threshold, it is identified as a simulation rate priority scenario.

[0021] The host machine's load status includes the central processing unit's load rate.

[0022] On the other hand, the scene recognition conditions for the simulated rate-priority scenario also include:

[0023] If the shared memory occupancy rate of each simulation module in the hybrid simulation platform reaches the third preset threshold, it is identified as a simulation rate priority scenario. The shared memory is used to cache interactive data between simulation modules.

[0024] The preset type of status parameters includes the shared memory occupancy rate.

[0025] On the other hand, the predefined simulation scenario types include simulation accuracy-priority scenarios;

[0026] Scene recognition conditions for simulation accuracy-priority scenarios include:

[0027] If the frequency of interaction events between various simulation modules reaches the fourth preset threshold, it is identified as a simulation accuracy priority scenario.

[0028] The preset type of state parameters includes the frequency of interactive event triggering.

[0029] On the other hand, the predefined simulation scenario types include low-interaction fault-tolerant scenarios, in which the number of data interactions between simulation modules is less than the preset standard.

[0030] Scene recognition conditions for low-interaction-tolerance scenarios include:

[0031] If the shared memory usage of each simulation module in the hybrid simulation platform is lower than the fifth preset threshold, it is identified as a low-interaction fault-tolerant scenario.

[0032] On the other hand, the periodic acquisition of preset type status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform includes:

[0033] Every preset period, it is determined whether a user-specified scenario type exists. The user-specified scenario type is the simulation scenario type received through the human-computer interaction device.

[0034] If a user-specified scene type exists, then the user-specified scene type will be used as the target scene type, and the currently existing user-specified scene type will be cleared.

[0035] If no user-specified scenario type exists, the system retrieves the status parameters of the preset types of each simulation module in the hybrid simulation platform, as well as the load status of the host machine of the hybrid simulation platform.

[0036] On the other hand, determining whether a user-specified scenario type exists at each preset period includes:

[0037] Every preset period, determine whether there is a simulation level received through the human-computer interaction device;

[0038] If it exists, the simulation scene type corresponding to the simulation level is determined according to the preset second correspondence, and is used as the user-specified scene type. The second correspondence is the correspondence between the simulation level and the simulation scene type.

[0039] If it does not exist, then it is determined that the user-specified scenario type does not exist.

[0040] The method of clearing the currently existing user-specified scenario type includes:

[0041] Clear the currently existing simulation level.

[0042] On the other hand, the simulation levels include instruction level, cycle precision level, and preset additional levels;

[0043] The simulation scenario types include simulation rate priority scenario, simulation accuracy priority scenario, and low interaction fault tolerance scenario.

[0044] The second correspondence includes:

[0045] The instruction level corresponds to the simulation rate-priority scenario;

[0046] The periodic accuracy level corresponds to simulation scenarios where precision is prioritized.

[0047] Additional levels correspond to scenarios with low interaction tolerance.

[0048] On the other hand, the simulation scenario types include simulation rate priority scenarios, simulation accuracy priority scenarios, and low interaction fault tolerance scenarios;

[0049] The synchronization strategies include time window synchronization strategy, event-driven synchronization strategy, and optimistic synchronization strategy.

[0050] The first correspondence includes:

[0051] Simulation rate-priority scenario corresponding to time window synchronization strategy;

[0052] Event-driven synchronization strategy corresponding to simulation accuracy-priority scenarios;

[0053] Optimistic synchronization strategies are appropriate for scenarios with low interaction tolerance.

[0054] On the other hand, the hybrid simulation platform includes a first simulation module and a second simulation module. The first simulation module is a fast simulator, and the second simulation module is a system-level C language modeling library.

[0055] The simulation rate of the first simulation module includes the instruction execution rate, and the simulation rate of the second simulation module includes the clock frequency.

[0056] If the difference in simulation rate between various simulation modules in the hybrid simulation platform reaches a first preset threshold, then the scenario identified as simulation rate priority includes:

[0057] Determine whether the simulation rate ratio between the first simulation module and the second simulation module reaches a first preset threshold.

[0058] If this condition is met, it is identified as a simulation rate-priority scenario.

[0059] On the other hand, determining the simulation scenario type of the current simulation stage of the hybrid simulation platform based on the state parameters and the load state, including the target scenario type, includes:

[0060] Determine whether the simulation scenario type of the current simulation stage of the hybrid simulation platform can be determined based on the state parameters and the load state.

[0061] If possible, the simulation scenario type of the current simulation stage of the hybrid simulation platform, determined based on the state parameters and the load state, will be used as the target scenario type.

[0062] If not, the preset default simulation scene type will be used as the target scene type.

[0063] On the other hand, after sending the target synchronization strategy to each simulation module in the hybrid simulation platform, the simulation synchronization control method further includes:

[0064] The control prompt indicates the current target scenario type and target synchronization strategy of the hybrid simulation platform.

[0065] On the other hand, after determining the synchronization strategy corresponding to the target scene type based on a preset first correspondence, and before sending the target synchronization strategy to each simulation module in the hybrid simulation platform, the simulation synchronization control method further includes:

[0066] Determine whether the target synchronization strategy determined in this cycle is the same as the target synchronization strategy determined in the previous cycle;

[0067] If they are different, increment the cumulative number of strategy switching by one and determine whether the cumulative number of strategy switching has reached the sixth preset threshold.

[0068] If the goal is not achieved, the process ends.

[0069] If the target is reached, the cumulative number of strategy switching will be cleared to zero, and the following steps will be executed: the target synchronization strategy will be sent to each simulation module in the hybrid simulation platform.

[0070] To address the aforementioned technical problems, the present invention also provides a simulation synchronization control device, comprising:

[0071] The first determining module is used to periodically determine the simulation scenario type of the current simulation stage of the hybrid simulation platform as the target scenario type. The hybrid simulation platform includes multiple simulation modules, which cooperate with each other to simulate the electronic system. The simulation scenario type is a predefined simulation scenario type that adapts to the corresponding synchronization strategy throughout the entire simulation process of the hybrid simulation platform.

[0072] The second determining module is used to determine a synchronization strategy corresponding to the target scene type based on a preset first correspondence relationship, which serves as the target synchronization strategy. The first correspondence relationship includes the correspondence between simulation scene types and synchronization strategies.

[0073] The first sending module is used to send the target synchronization strategy to each simulation module in the hybrid simulation platform, so that any simulation module can synchronize with other simulation modules according to the target synchronization strategy.

[0074] To address the aforementioned technical problems, the present invention also provides a simulation synchronization control device, comprising:

[0075] Memory, used to store computer programs;

[0076] A processor is used to implement the steps of the simulation synchronization control method described above when executing the computer program.

[0077] To address the aforementioned technical problems, the present invention also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the simulation synchronization control method described above.

[0078] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the simulation synchronization control method described above.

[0079] Beneficial Effects: This invention provides a simulation synchronization control method. Considering that different simulation stages in a hybrid simulation platform may be adapted to different synchronization strategies throughout the simulation process, by predefining multiple simulation scenario types and establishing a first correspondence between them and the synchronization strategies, the adapted synchronization strategies can be dynamically adjusted. Therefore, in this invention, the simulation scenario type to which the current simulation stage of the hybrid simulation platform belongs is first determined periodically, and then the corresponding synchronization strategy is determined through the first correspondence and sent to each simulation module as the target synchronization strategy, so that any simulation module can perform simulation synchronization with other simulation modules according to the target synchronization strategy. Based on this, the synchronization strategy applied by the hybrid simulation platform can be adapted to its current simulation stage, thereby improving simulation accuracy and simulation efficiency.

[0080] The present invention also provides a simulation synchronization control device, equipment, program product and storage medium, which have the same beneficial effects as the simulation synchronization control method described above. Attached Figure Description

[0081] To more clearly illustrate the technical solutions in the embodiments of the present invention, the relevant technologies and the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0082] Figure 1 A flowchart illustrating the first simulation synchronization control method provided by this invention;

[0083] Figure 2 A schematic diagram illustrating the relationship between a synchronous control module and a hybrid simulation platform provided by this invention;

[0084] Figure 3 A schematic diagram illustrating the relationship between another synchronous control module and a hybrid simulation platform provided by the present invention;

[0085] Figure 4 A flowchart illustrating the second simulation synchronization control method provided by the present invention;

[0086] Figure 5 A flowchart illustrating a strategy-based anti-shake function provided by the present invention;

[0087] Figure 6 A schematic diagram of the structure of a simulation synchronization control device provided by the present invention;

[0088] Figure 7 A schematic diagram of the structure of a simulation synchronization control device provided by the present invention;

[0089] Figure 8 This is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. Detailed Implementation

[0090] The core of this invention is to provide a simulation synchronization control method, device, equipment, program product, and storage medium. In this invention, the simulation scenario type of the current simulation stage of the hybrid simulation platform is first determined periodically. Then, the corresponding synchronization strategy is determined through a first correspondence and sent to each simulation module as the target synchronization strategy. This allows any simulation module to synchronize with other simulation modules according to the target synchronization strategy. Based on this, the synchronization strategy applied by the hybrid simulation platform can be adapted to its current simulation stage, thereby improving simulation accuracy and efficiency.

[0091] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0092] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating the first simulation synchronization control method provided by the present invention, which includes:

[0093] S101: Periodically determine the simulation scenario type of the current simulation stage of the hybrid simulation platform as the target scenario type; the hybrid simulation platform includes multiple simulation modules, which cooperate with each other to simulate the electronic system. The simulation scenario type is: the predefined simulation scenario type that adapts to the corresponding synchronization strategy throughout the entire simulation process of the hybrid simulation platform.

[0094] Specifically, considering the technical problems mentioned above, and taking into account that "during the entire simulation process of a hybrid simulation platform, different simulation stages may be adapted to different synchronization strategies, so by predefining multiple simulation scene types and establishing a first correspondence with the synchronization strategy, the adapted synchronization strategy can be dynamically adjusted," this embodiment of the invention can predefine several simulation scene types according to the specific characteristics of each simulation stage in the hybrid simulation platform. Different simulation scene types are adapted to corresponding synchronization strategies, thereby making the synchronization strategy compatible with the current simulation scene type and avoiding affecting the efficiency or accuracy of the simulation.

[0095] Specifically, based on the above considerations, in this embodiment of the invention, the simulation scenario type to which the current simulation stage of the hybrid simulation platform belongs can be periodically determined as the target scenario type, so as to serve as the data basis for subsequent steps.

[0096] The electronic system simulated by the hybrid simulation platform can be of various types, such as a system-on-a-chip. The specific number of simulation modules in the hybrid simulation platform can be various, such as two or three, etc. The embodiments of the present invention do not limit this.

[0097] S102: Based on the preset first correspondence, determine the synchronization strategy corresponding to the target scene type as the target synchronization strategy. The first correspondence includes the correspondence between the simulation scene type and the synchronization strategy.

[0098] Specifically, after obtaining the target scene type, in order to improve the efficiency and accuracy of determining the synchronization strategy, the present invention pre-sets a first correspondence relationship. Therefore, in this step, the synchronization strategy corresponding to the target scene type can be determined according to the pre-set first correspondence relationship, which serves as the target synchronization strategy.

[0099] S103: Send the target synchronization strategy to each simulation module in the hybrid simulation platform so that any simulation module can synchronize with other simulation modules according to the target synchronization strategy.

[0100] Specifically, after determining the target synchronization strategy that is currently compatible with the hybrid simulation platform, the target synchronization strategy can be sent to each simulation module in the hybrid simulation platform so that any simulation module can synchronize with other simulation modules according to the target synchronization strategy.

[0101] Specifically, for a better explanation of the embodiments of the present invention, please refer to... Figure 2 , Figure 2 This is a schematic diagram illustrating the relationship between a synchronous control module and a hybrid simulation platform provided by the present invention. Figure 2 The synchronization control module is used to execute the steps of the simulation synchronization control method in this embodiment of the invention. The synchronization control module can interact with various simulation modules in the hybrid simulation platform (e.g., including the first simulation module and the second simulation module) simultaneously. For example, the hybrid simulation platform includes QEMU (Quick Emulator) and SystemC (SystemC, a system-level C language modeling library). Every 100ms is a cycle, the current scenario type is determined to be "simulation rate priority scenario"; according to the preset first correspondence (simulation rate priority scenario corresponds to time window synchronization strategy), the strategy is sent to QEMU and SystemC, and the two perform simulation synchronization according to the time window synchronization strategy (e.g., synchronization state after independent operation within every 1ms window).

[0102] This invention provides a simulation synchronization control method. Considering that different simulation stages in a hybrid simulation platform may be adapted to different synchronization strategies throughout the simulation process, by predefining multiple simulation scenario types and establishing a first correspondence between them and the synchronization strategies, the adapted synchronization strategies can be dynamically adjusted. Therefore, this invention first periodically determines the simulation scenario type to which the current simulation stage of the hybrid simulation platform belongs, and then determines the corresponding synchronization strategy through the first correspondence. This strategy is then sent to each simulation module as the target synchronization strategy, so that any simulation module can synchronize with other simulation modules according to the target synchronization strategy. Based on this, the synchronization strategy applied by the hybrid simulation platform can be adapted to its current simulation stage, thereby improving simulation accuracy and efficiency.

[0103] Based on the above embodiments:

[0104] As an optional implementation, the simulation scenario type of the current simulation stage of the hybrid simulation platform is periodically determined, and the target scenario type includes:

[0105] Periodically acquire the preset type of status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform;

[0106] Based on the state parameters and load status, the simulation scenario type of the current simulation stage of the hybrid simulation platform is determined and used as the target scenario type.

[0107] Specifically, for a better explanation of the embodiments of the present invention, please refer to... Figure 3 , Figure 3 This is a schematic diagram illustrating the relationship between another synchronization control module and a hybrid simulation platform provided by the present invention. Figure 3 The synchronization control module mainly includes a simulation monitoring submodule (used to periodically acquire the preset type status parameters of each simulation module in the hybrid simulation platform, the load status of the host machine of the hybrid simulation platform, and user input), a synchronization strategy control submodule (used to determine the simulation scenario type of the current simulation stage of the hybrid simulation platform based on user input, status parameters, and load status, as the target scenario type), and a synchronization strategy output notification submodule (used to receive the target scenario type and send the target scenario type to each simulation module).

[0108] Specifically, considering that the operating status of the simulation module (such as speed and interaction frequency) and the host machine load (such as CPU usage) directly reflect the characteristics of the current simulation stage and are the core basis for identifying the simulation scenario type, this embodiment of the invention periodically collects these data to capture scenario changes in real time, providing support for strategy adjustments.

[0109] Specifically, for example, every 50ms, the following parameters are collected: QEMU instruction execution rate (MIPS, Million Instructions Per Second) is 2000 MIPS, SystemC clock frequency (clock cycles / second) is 2M clock cycles / second, host CPU (Central Processing Unit) load rate is 85%, and shared memory usage rate is 70%. Based on these parameters, the current scenario type is determined to be "simulation rate priority scenario".

[0110] Of course, in addition to this specific form, "periodically determining the simulation scene type to which the current simulation stage of the hybrid simulation platform belongs, as the target scene type" can also be in other specific forms, and this embodiment of the invention does not limit it here.

[0111] As an optional implementation, based on state parameters and load status, the simulation scenario type of the current simulation stage of the hybrid simulation platform is determined. The target scenario types include:

[0112] Determine whether the status parameters and load status meet the scene recognition conditions for any predefined simulation scene type;

[0113] If the conditions are met, the simulation scenario type that satisfies the scenario recognition conditions in terms of state parameters and load state will be taken as the target scenario type.

[0114] Specifically, considering that different scene types have quantifiable characteristics (such as high interaction frequency corresponding to high accuracy priority scenes), by pre-setting scene recognition conditions, the parameters collected in real time can be compared with the conditions to achieve accurate determination of scene type. Therefore, the scheme in the embodiments of the present invention was designed.

[0115] For example, the predefined identification condition for "simulation accuracy priority scenario" is "interaction event trigger frequency ≥ 1,000,000 times / ms". If the collected interaction event trigger frequency (such as interrupt / ms) between QEMU and SystemC is 1,200,000 times / ms, this condition is met, and the current scenario is determined to be simulation accuracy priority scenario.

[0116] Of course, in addition to this specific form, "determining the simulation scenario type of the current simulation stage of the hybrid simulation platform based on the state parameters and load status, and using it as the target scenario type" can also be in other specific forms, and this embodiment of the invention does not limit it here.

[0117] As an optional implementation, the predefined simulation scenario types include simulation rate-priority scenarios;

[0118] The scene recognition conditions for the simulated rate-first scenario include:

[0119] If the difference in simulation rate between various simulation modules in the hybrid simulation platform reaches the first preset threshold, it is identified as a simulation rate priority scenario.

[0120] Preset state parameters include simulation rate.

[0121] Specifically, considering that when the speed difference between simulation modules is too large (such as QEMU being much faster than SystemC), the synchronization overhead will significantly affect the simulation efficiency. In this case, the speed needs to be prioritized. Therefore, a "simulation speed priority scenario" is defined, and the speed difference is used as the core identification condition.

[0122] Specifically, for example, the first preset threshold is 1000. In the hybrid simulation platform, the instruction execution rate of QEMU is 5000 MIPS, and the clock frequency of SystemC is 5 MHz clock cycles / second. The ratio of their rates is 1000 (reaching the threshold), which is identified as a simulation rate priority scenario.

[0123] As an optional embodiment, the scene recognition conditions for simulating rate-priority scenarios also include:

[0124] If the load rate of the host machine's central processing unit reaches the second preset threshold, it is identified as a simulation rate priority scenario.

[0125] The host machine's load status includes the CPU load rate.

[0126] Specifically, considering that the system's processing capacity is limited when the host CPU load is too high, continuing to use a high-precision synchronization strategy would exacerbate the load and cause simulation stuttering. Therefore, CPU load rate is used as a supplementary identification condition for simulation rate-priority scenarios to prioritize ensuring operational efficiency.

[0127] For example, the second preset threshold is 90%. The host CPU load rate is 92%. Although the rate difference between QEMU and SystemC does not reach the first threshold, it still meets the identification conditions for the simulation rate priority scenario and is determined to be this scenario.

[0128] As an optional embodiment, the scene recognition conditions for simulating rate-priority scenarios also include:

[0129] If the shared memory usage of each simulation module in the hybrid simulation platform reaches the third preset threshold, it is identified as a simulation rate priority scenario, and the shared memory is used to cache the interactive data between simulation modules.

[0130] The default status parameters include the shared memory usage rate.

[0131] Specifically, considering that a high shared memory (used for data interaction caching between modules) occupancy rate indicates frequent data interaction between modules and high synchronization overhead, it is necessary to prioritize speed to reduce blocking. Therefore, the shared memory occupancy rate is used as a supplementary identification condition for simulating speed-priority scenarios.

[0132] Specifically, for example, the third preset threshold is 90%. In the hybrid simulation platform, the shared memory occupancy rate is 91%. Even if the CPU load rate and speed difference do not meet the standard, it still meets the identification conditions of the simulation speed priority scenario and is judged as such.

[0133] As an optional implementation, the predefined simulation scenario types include simulation accuracy-priority scenarios;

[0134] Scene recognition conditions for simulation accuracy-priority scenarios include:

[0135] If the frequency of interaction events between various simulation modules reaches the fourth preset threshold, it is identified as a simulation accuracy priority scenario.

[0136] The preset type of status parameters includes the frequency of interactive event triggering.

[0137] Specifically, considering that when there are frequent interaction events between modules (such as high-frequency interrupts), timing consistency is crucial to simulation accuracy. If synchronization is not timely, it will lead to data inconsistency. Therefore, a "simulation accuracy priority scenario" is defined, and the frequency of interaction event triggering is used as the core identification condition.

[0138] For example, the fourth preset threshold is 1,000,000 times / ms. The trigger frequency of QEMU and SystemC interaction events (such as interrupts and data transmissions) is 1,500,000 times / ms, which meets the conditions and is determined to be a simulation accuracy priority scenario.

[0139] As an optional implementation, the predefined simulation scenario types include low-interaction fault-tolerant scenarios, in which the number of data interactions between simulation modules is less than a preset standard;

[0140] Scene recognition conditions for low-interaction-tolerance scenarios include:

[0141] If the shared memory usage of each simulation module in the hybrid simulation platform is lower than the fifth preset threshold, it is identified as a low-interaction fault-tolerant scenario.

[0142] Specifically, considering that a low shared memory usage rate between simulation modules indicates less data interaction and higher fault tolerance, a more flexible synchronization strategy (such as an optimistic synchronization strategy) can be adopted to reduce overhead, a "low interaction fault tolerance scenario" is defined, and the shared memory usage rate is used as the identification condition.

[0143] Specifically, for example, the fifth preset threshold is 5%. In the hybrid simulation platform, the shared memory usage rate is 3% (below the threshold), which is judged as a low interaction fault tolerance scenario.

[0144] Of course, in addition to the various specific scenario types mentioned above, simulation scenario types may also include other types, which are not limited in this embodiment of the invention.

[0145] As an optional embodiment, periodically acquiring the preset type of status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform includes:

[0146] Every preset period, it is determined whether a user-specified scenario type exists. The user-specified scenario type is the simulation scenario type received through the human-computer interaction device.

[0147] If a user-specified scene type exists, then the user-specified scene type will be used as the target scene type, and the currently existing user-specified scene type will be cleared.

[0148] If no user-specified scenario type exists, the system retrieves the status parameters of the preset types of each simulation module in the hybrid simulation platform, as well as the load status of the host machine of the hybrid simulation platform.

[0149] Specifically, considering that users may manually specify the scene type according to the simulation target (such as the need for high precision in a specific stage), user intervention can be supported; at the same time, in order to avoid the user's specification being effective for a long time and affecting dynamic adjustment, the specification needs to be cleared after use, so the solution in the embodiment of the present invention is designed.

[0150] For example, if the preset period is 100ms, and it is detected that the user has specified "simulation accuracy priority scenario" through the human-computer interaction device, then it will be used as the target scenario type, and this specification will be cleared after the period ends. In the next period, it will be re-evaluated to see if there is a new user specification.

[0151] As an optional implementation, determining whether a user-specified scenario type exists at preset intervals includes:

[0152] Every preset period, determine whether there is a simulation level received through the human-computer interaction device;

[0153] If it exists, the simulation scene type corresponding to the simulation level is determined according to the preset second correspondence, which is used as the user-specified scene type. The second correspondence is the correspondence between the simulation level and the simulation scene type.

[0154] If it does not exist, then it is determined that the user-specified scenario type does not exist.

[0155] Clearing currently existing user-specified scenario types includes:

[0156] Clear the currently existing simulation level.

[0157] Specifically, considering that users may be more accustomed to expressing their needs through "simulation level" (such as instruction level, periodic precision level) rather than directly specifying the scene type, the solution in this embodiment of the invention is designed to simplify user operations and achieve indirect specification of scene types by establishing a correspondence between levels and scenes.

[0158] Specifically, for example, if the user inputs "instruction level" simulation level, the target scenario type is determined to be simulation rate priority scenario based on the second correspondence (instruction level corresponds to simulation rate priority scenario); when clearing the user-specified simulation level, the "instruction level" simulation level input is directly cleared.

[0159] As an optional implementation, simulation levels include instruction level, cycle-accurate level, and preset additional levels;

[0160] Simulation scenario types include simulation rate-priority scenarios, simulation accuracy-priority scenarios, and low-interaction fault-tolerant scenarios;

[0161] The second correspondence includes:

[0162] The instruction level corresponds to the simulation rate-priority scenario;

[0163] The periodic accuracy level corresponds to simulation scenarios where precision is prioritized.

[0164] Additional levels correspond to scenarios with low interaction tolerance.

[0165] Specifically, considering that different simulation levels correspond to different core requirements (such as instruction-level focusing on speed and cycle-precision-level focusing on accuracy), clarifying the correspondence between the two can achieve accurate mapping of user needs to scenario types and improve strategy matching efficiency. Therefore, the solution in the embodiments of this invention was designed.

[0166] For example, simulation levels include IA (Instruction Accuracy), CCA (Cycle-Cycle Accuracy), and additional levels; scenario types include simulation rate-priority scenarios, simulation accuracy-priority scenarios, and low-interaction fault-tolerant scenarios. IA corresponds to simulation rate-priority scenarios, CCA corresponds to simulation accuracy-priority scenarios, and additional levels correspond to low-interaction fault-tolerant scenarios. When a user selects CCA, the target scenario type is simulation accuracy-priority scenario.

[0167] As an optional implementation, the simulation scenario types include simulation rate-priority scenarios, simulation accuracy-priority scenarios, and low-interaction fault-tolerant scenarios;

[0168] Synchronization strategies include time window synchronization strategy, event-driven synchronization strategy, and optimistic synchronization strategy;

[0169] The first correspondence includes:

[0170] Simulation rate-priority scenario corresponding to time window synchronization strategy;

[0171] Event-driven synchronization strategy corresponding to simulation accuracy-priority scenarios;

[0172] Optimistic synchronization strategies are appropriate for scenarios with low interaction tolerance.

[0173] Specifically, considering that different simulation scenario types have different synchronization requirements (such as rate priority requiring efficient synchronization, and accuracy priority requiring strict timing), the optimal strategy is matched for each scenario to ensure that the synchronization effect is consistent with the scenario requirements and improve the overall simulation performance. Therefore, the scheme in the embodiments of the present invention was designed.

[0174] Specifically, simulation scenario types include simulation rate-first scenarios, simulation accuracy-first scenarios, and low-interaction fault-tolerant scenarios; synchronization strategies include time-window synchronization strategies, event-driven synchronization strategies, and optimistic synchronization strategies. The correspondence is as follows: simulation rate-first scenarios correspond to time-window synchronization strategies, simulation accuracy-first scenarios correspond to event-driven synchronization strategies, and low-interaction fault-tolerant scenarios correspond to optimistic synchronization strategies. When the target scenario is a low-interaction fault-tolerant scenario, the optimistic synchronization strategy is matched.

[0175] As an optional embodiment, the hybrid simulation platform includes a first simulation module and a second simulation module, wherein the first simulation module is a fast simulator and the second simulation module is a system-level C language modeling library;

[0176] The simulation rate of the first simulation module includes the instruction execution rate, and the simulation rate of the second simulation module includes the clock frequency.

[0177] If the difference in simulation rate between various simulation modules in the hybrid simulation platform reaches a first preset threshold, then the scenario identified as simulation rate priority includes:

[0178] Determine whether the simulation rate ratio between the first simulation module and the second simulation module reaches a first preset threshold.

[0179] If this condition is met, it is identified as a simulation rate-priority scenario.

[0180] Specifically, considering that the speed metrics (instruction execution speed and clock frequency) of fast simulators (such as QEMU) and system-level modeling libraries (such as SystemC) are different in a hybrid simulation platform, the difference can be quantified by the ratio of their speeds, and the scenarios that need to prioritize speed can be accurately identified. Therefore, the solution in the embodiments of this invention was designed.

[0181] For example, the hybrid simulation platform includes a first simulation module QEMU and a second simulation module SystemC. The simulation rate of QEMU is the instruction execution rate (3000 MIPS), and the simulation rate of SystemC is the clock frequency (3M clock cycles / second). The ratio of the two is 1000 (reaching a first preset threshold), which is identified as a simulation rate priority scenario.

[0182] As an optional implementation, based on state parameters and load status, the simulation scenario type of the current simulation stage of the hybrid simulation platform is determined. The target scenario types include:

[0183] Based on the state parameters and load status, determine whether the simulation scenario type of the current simulation stage of the hybrid simulation platform can be identified.

[0184] If possible, the simulation scenario type of the current simulation stage of the hybrid simulation platform, determined based on the state parameters and load status, will be used as the target scenario type.

[0185] If not, the preset default simulation scene type will be used as the target scene type.

[0186] Specifically, for a better explanation of the embodiments of the present invention, please refer to... Figure 4 , Figure 4 This is a flowchart illustrating the second simulation synchronization control method provided by the present invention. After the process begins, the state parameters of the simulation module and the load state of the host machine are first parsed. Then, it is determined whether it is a simulation rate-priority scenario. If so, a time window synchronization strategy is adopted. If not, it is determined whether it is a simulation accuracy-priority scenario. If so, an event-driven synchronization strategy is adopted. If not, it is determined whether it is a low-interaction fault-tolerant scenario. If so, an optimistic synchronization strategy is adopted. If none of these apply, the preset default simulation scenario type is used as the target scenario type. Finally, the target scenario type is sent to each simulation module, and the process ends.

[0187] Specifically, considering that when the parameters collected in real time do not meet the recognition conditions of any predefined scene, the default scene type can be used to ensure that the synchronization strategy is not missing, avoid interruption in the simulation process, and ensure system stability. Therefore, the scheme in the embodiment of the present invention was designed.

[0188] Specifically, if the collected state parameters (rate difference 800, CPU load rate 70%, shared memory usage rate 60%, interaction frequency 500,000 times / ms) do not meet the conditions for simulation rate priority, accuracy priority, and low interaction fault tolerance scenario, then the default scenario type can be simulation accuracy priority scenario.

[0189] Of course, in addition to this specific form, "determining the simulation scenario type of the current simulation stage of the hybrid simulation platform based on the state parameters and load status, and using it as the target scenario type" can also be achieved in other forms, and this embodiment of the invention does not limit it here.

[0190] As an optional embodiment, after the target synchronization strategy is sent to each simulation module in the hybrid simulation platform, the simulation synchronization control method further includes:

[0191] The control prompt indicates the current target scenario type and target synchronization strategy of the hybrid simulation platform.

[0192] Specifically, considering that users can monitor the simulation process or manually intervene (such as adjusting parameters) if they can understand the simulation status in real time (such as the current strategy), the prompt function can provide feedback on key information to improve user controllability.

[0193] For example, after the event-driven synchronization strategy is sent to each simulation module, the prompt (such as the display screen) shows "Current target scenario type: simulation accuracy priority scenario, target synchronization strategy: event-driven synchronization strategy".

[0194] As an optional embodiment, after determining a synchronization strategy corresponding to the target scene type based on a preset first correspondence, and before sending the target synchronization strategy to each simulation module in the hybrid simulation platform, the simulation synchronization control method further includes:

[0195] Determine whether the target synchronization strategy determined in this cycle is the same as the target synchronization strategy determined in the previous cycle;

[0196] If they are different, increment the cumulative number of strategy switching by one and determine whether the cumulative number of strategy switching has reached the sixth preset threshold.

[0197] If the goal is not achieved, the process ends.

[0198] If the target is reached, the cumulative number of strategy switching will be cleared to zero, and the following steps will be executed: the target synchronization strategy will be sent to each simulation module in the hybrid simulation platform.

[0199] Specifically, for a better explanation of the embodiments of the present invention, please refer to... Figure 5 , Figure 5 This is a flowchart illustrating a strategy debouncing function provided by the present invention. The process begins by determining whether the target synchronization strategy for the current cycle differs from the previous cycle; if not, it ends directly. If so, the cumulative strategy switching count is incremented by 1. Next, it determines whether the cumulative strategy switching count has reached a sixth preset threshold; if not, it ends. If so, the target synchronization strategy is output, the cumulative strategy switching count is set to 0, and finally, the process ends.

[0200] Specifically, considering that frequent switching of synchronization strategies within a short period of time can cause system oscillations (such as the simulation module repeatedly adjusting synchronization logic), affecting simulation stability, this embodiment of the invention avoids frequent switching and achieves anti-jitter by accumulating the number of switching attempts and setting a threshold.

[0201] Specifically, for example, the sixth preset threshold is 3. If the target synchronization strategy (time window synchronization) of this period is different from that of the previous period (event-driven synchronization), the cumulative number of strategy switching is 2 (not reaching 3), and no new target synchronization strategy is sent; if the target synchronization strategy of the next period is still different, and the cumulative number reaches 3, a new target synchronization strategy is sent and the cumulative number of strategy switching is cleared to zero.

[0202] Please refer to Figure 6 , Figure 6 This is a schematic diagram of a simulation synchronization control device provided by the present invention. The simulation synchronization control device includes:

[0203] The first determining module 61 is used to periodically determine the simulation scenario type of the current simulation stage of the hybrid simulation platform as the target scenario type. The hybrid simulation platform includes multiple simulation modules, which cooperate with each other to simulate the electronic system. The simulation scenario type is a predefined simulation scenario type that adapts to the corresponding synchronization strategy throughout the entire simulation process of the hybrid simulation platform.

[0204] The second determining module 62 is used to determine the synchronization strategy corresponding to the target scene type according to the preset first correspondence relationship, which serves as the target synchronization strategy. The first correspondence relationship includes the correspondence between the simulation scene type and the synchronization strategy.

[0205] The first sending module 63 is used to send the target synchronization strategy to each simulation module in the hybrid simulation platform, so that any simulation module can synchronize with other simulation modules according to the target synchronization strategy.

[0206] Based on the above embodiments:

[0207] As an optional embodiment, the first determining module 61 includes:

[0208] The first determination submodule is used to periodically acquire the preset type of status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform.

[0209] The second determination submodule is used to determine the simulation scenario type of the current simulation stage of the hybrid simulation platform based on the status parameters and load status, and use it as the target scenario type.

[0210] As an optional embodiment, the second determining submodule includes:

[0211] The first judgment module is used to determine whether the status parameters and load status meet the scene recognition conditions of any predefined simulation scene type. If they do, the third determination sub-module is triggered.

[0212] The third determination submodule is used to identify simulation scene types that meet the scene recognition conditions in terms of state parameters and load status as target scene types.

[0213] As an optional embodiment, the first determining submodule includes:

[0214] The second judgment module is used to determine whether a user-specified scenario type exists at a preset period. The user-specified scenario type is the simulation scenario type received through the human-computer interaction device. If a user-specified scenario type exists, the fourth determination submodule is triggered. If no user-specified scenario type exists, the fifth determination submodule is triggered.

[0215] The fourth determination submodule is used to select the user-specified scene type as the target scene type and clear the currently existing user-specified scene type;

[0216] The fifth determination submodule is used to obtain the preset type status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform.

[0217] As an optional embodiment, the second determination module includes:

[0218] The third judgment module is used to determine whether there is a simulation level received through the human-computer interaction device at preset intervals. If it exists, the sixth determination sub-module is triggered; if it does not exist, the first judgment module is triggered.

[0219] The sixth determining submodule is used to determine the simulation scene type corresponding to the simulation level according to the preset second correspondence relationship, which is used as the user-specified scene type. The second correspondence relationship is the correspondence between the simulation level and the simulation scene type.

[0220] The first determination module is used to determine whether the user-specified scenario type does not currently exist.

[0221] Clearing currently existing user-specified scenario types includes:

[0222] Clear the currently existing simulation level.

[0223] As an optional embodiment, the second determining submodule includes:

[0224] The fourth judgment module is used to determine whether the simulation scenario type of the current simulation stage of the hybrid simulation platform can be determined based on the status parameters and load status. If it can, the seventh determination sub-module is triggered; if it cannot, the eighth determination sub-module is triggered.

[0225] The seventh determination submodule is used to take the simulation scenario type of the current simulation stage of the hybrid simulation platform, which is determined based on the status parameters and load status, as the target scenario type.

[0226] The eighth determination submodule is used to use the preset default simulation scene type as the target scene type.

[0227] As an optional embodiment, the simulation synchronization control device further includes:

[0228] The first prompting module is used to control the prompter to indicate the current target scene type and target synchronization strategy of the hybrid simulation platform.

[0229] As an optional embodiment, the simulation synchronization control device further includes:

[0230] The fifth judgment module is used to determine whether the target synchronization strategy determined in this cycle is the same as the target synchronization strategy determined in the previous cycle. If they are different, the sixth judgment module is triggered.

[0231] The sixth judgment module is used to increment the cumulative number of strategy switching by one and determine whether the cumulative number of strategy switching has reached the sixth preset threshold. If it has not reached the threshold, the end module is triggered; if it has reached the threshold, the zeroing module is triggered.

[0232] End module, used to conclude;

[0233] The zeroing module is used to reset the cumulative number of strategy switching to zero and execute the following steps: sending the target synchronization strategy to each simulation module in the hybrid simulation platform.

[0234] For a description of the simulation synchronization control device provided in the embodiments of the present invention, please refer to the aforementioned embodiments of the simulation synchronization control method; the embodiments of the present invention will not be repeated here.

[0235] Please refer to Figure 7 , Figure 7 This is a schematic diagram of a simulation synchronization control device provided by the present invention. The simulation synchronization control device includes:

[0236] Memory 71 is used to store computer programs;

[0237] The processor 72 is used to implement the steps of the simulation synchronization control method as described in the foregoing embodiments when executing a computer program.

[0238] For a description of the simulation synchronization control device provided in the embodiments of the present invention, please refer to the aforementioned embodiments of the simulation synchronization control method; the embodiments of the present invention will not be repeated here.

[0239] The present invention also provides a computer program product, including a computer program / instruction that, when executed by a processor, implements the steps of the simulation synchronization control method as described in the foregoing embodiments.

[0240] For a description of the computer program product provided in the embodiments of the present invention, please refer to the aforementioned embodiments of the simulation synchronization control method; the embodiments of the present invention will not be repeated here.

[0241] Please refer to Figure 8 , Figure 8 This is a schematic diagram of a computer-readable storage medium provided by the present invention. The computer-readable storage medium 81 stores a computer program 82. When the computer program 82 is executed by a processor, it implements the steps of the simulation synchronization control method as described in the foregoing embodiments.

[0242] For a description of the computer-readable storage medium provided in the embodiments of the present invention, please refer to the foregoing embodiments of the simulation synchronization control method; the embodiments of the present invention will not be repeated here.

[0243] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section. It should also be noted that in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0244] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A simulation synchronization control method, characterized in that, include: Periodically acquire the preset type of status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform; Based on the state parameters and the load state, the simulation scenario type of the current simulation stage of the hybrid simulation platform is determined as the target scenario type; The hybrid simulation platform includes multiple simulation modules, which cooperate with each other to simulate electronic systems. The simulation scenario type is a predefined simulation scenario type that adapts to the corresponding synchronization strategy throughout the entire simulation process of the hybrid simulation platform. Based on a preset first correspondence, a synchronization strategy corresponding to the target scene type is determined as the target synchronization strategy. The first correspondence includes the correspondence between simulation scene types and synchronization strategies. The target synchronization strategy is sent to each simulation module in the hybrid simulation platform so that any simulation module can synchronize with other simulation modules according to the target synchronization strategy. The simulation scenario types include simulation rate priority scenario, simulation accuracy priority scenario, and low interaction fault tolerance scenario. The synchronization strategies include time window synchronization strategy, event-driven synchronization strategy, and optimistic synchronization strategy. The first correspondence includes: Simulation rate-priority scenario corresponding to time window synchronization strategy; Event-driven synchronization strategy corresponding to simulation accuracy-priority scenarios; Optimistic synchronization strategies are appropriate for low-interaction, fault-tolerant scenarios. Predefined simulation scenario types include simulation rate priority scenarios; The scene recognition conditions for the simulated rate-first scenario include: If the difference in simulation rate between various simulation modules in the hybrid simulation platform reaches the first preset threshold, it is identified as a simulation rate priority scenario. The preset type of state parameters includes the simulation rate; Predefined simulation scenario types include simulation accuracy-priority scenarios; Scene recognition conditions for simulation accuracy-priority scenarios include: If the frequency of interaction events between various simulation modules reaches the fourth preset threshold, it is identified as a simulation accuracy priority scenario. The preset type of state parameters includes the frequency of interactive event triggering; The predefined simulation scenario types include low-interaction fault-tolerant scenarios, in which the number of data interactions between simulation modules is less than a preset standard; Scene recognition conditions for low-interaction-tolerance scenarios include: If the shared memory usage of each simulation module in the hybrid simulation platform is lower than the fifth preset threshold, it is identified as a low-interaction fault-tolerant scenario.

2. The simulation synchronization control method according to claim 1, characterized in that, The step of determining the simulation scenario type of the current simulation stage of the hybrid simulation platform based on the state parameters and the load state, and using the target scenario type as an example, includes: Determine whether the state parameters and the load state meet the scene recognition conditions of any predefined simulation scene type; If the conditions are met, the simulation scenario type that satisfies the scenario identification conditions, including the state parameters and the load state, will be taken as the target scenario type.

3. The simulation synchronization control method according to claim 2, characterized in that, The scene recognition conditions for simulating rate-first scenarios also include: If the load rate of the host machine's central processing unit reaches the second preset threshold, it is identified as a simulation rate priority scenario. The host machine's load status includes the central processing unit's load rate.

4. The simulation synchronization control method according to claim 3, characterized in that, The scene recognition conditions for simulating rate-first scenarios also include: If the shared memory occupancy rate of each simulation module in the hybrid simulation platform reaches the third preset threshold, it is identified as a simulation rate priority scenario. The shared memory is used to cache interactive data between simulation modules. The preset type of status parameters includes the shared memory occupancy rate.

5. The simulation synchronization control method according to claim 1, characterized in that, The periodic acquisition of preset-type status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform includes: Every preset period, it is determined whether a user-specified scenario type exists. The user-specified scenario type is the simulation scenario type received through the human-computer interaction device. If a user-specified scene type exists, then the user-specified scene type will be used as the target scene type, and the currently existing user-specified scene type will be cleared. If no user-specified scenario type exists, the system retrieves the status parameters of the preset types of each simulation module in the hybrid simulation platform, as well as the load status of the host machine of the hybrid simulation platform.

6. The simulation synchronization control method according to claim 5, characterized in that, The step of determining whether a user-specified scenario type exists at each preset period includes: Every preset period, determine whether there is a simulation level received through the human-computer interaction device; If it exists, the simulation scene type corresponding to the simulation level is determined according to the preset second correspondence, and is used as the user-specified scene type. The second correspondence is the correspondence between the simulation level and the simulation scene type. If it does not exist, then it is determined that the user-specified scenario type does not exist. The method of clearing the currently existing user-specified scenario type includes: Clear the currently existing simulation level.

7. The simulation synchronization control method according to claim 6, characterized in that, The simulation levels include instruction level, cycle precision level, and preset additional levels; The simulation scenario types include simulation rate priority scenario, simulation accuracy priority scenario, and low interaction fault tolerance scenario. The second correspondence includes: The instruction level corresponds to the simulation rate-priority scenario; The periodic accuracy level corresponds to simulation scenarios where precision is prioritized. Additional levels correspond to scenarios with low interaction tolerance.

8. The simulation synchronization control method according to claim 2, characterized in that, The hybrid simulation platform includes a first simulation module and a second simulation module. The first simulation module is a fast simulator, and the second simulation module is a system-level C language modeling library. The simulation rate of the first simulation module includes the instruction execution rate, and the simulation rate of the second simulation module includes the clock frequency. If the difference in simulation rate between various simulation modules in the hybrid simulation platform reaches a first preset threshold, then the scenario identified as simulation rate priority includes: Determine whether the simulation rate ratio between the first simulation module and the second simulation module reaches a first preset threshold. If this condition is met, it is identified as a simulation rate-priority scenario.

9. The simulation synchronization control method according to claim 1, characterized in that, The step of determining the simulation scenario type of the current simulation stage of the hybrid simulation platform based on the state parameters and the load state, and using the target scenario type as an example, includes: Determine whether the simulation scenario type of the current simulation stage of the hybrid simulation platform can be determined based on the state parameters and the load state. If possible, the simulation scenario type of the current simulation stage of the hybrid simulation platform, determined based on the state parameters and the load state, will be used as the target scenario type. If not, the preset default simulation scene type will be used as the target scene type.

10. The simulation synchronization control method according to claim 1, characterized in that, After sending the target synchronization strategy to each simulation module in the hybrid simulation platform, the simulation synchronization control method further includes: The control prompt indicates the current target scenario type and target synchronization strategy of the hybrid simulation platform.

11. The simulation synchronization control method according to any one of claims 1 to 10, characterized in that, After determining the synchronization strategy corresponding to the target scene type based on a preset first correspondence, and before sending the target synchronization strategy to each simulation module in the hybrid simulation platform, the simulation synchronization control method further includes: Determine whether the target synchronization strategy determined in this cycle is the same as the target synchronization strategy determined in the previous cycle; If they are different, increment the cumulative number of strategy switching by one and determine whether the cumulative number of strategy switching has reached the sixth preset threshold. If the goal is not achieved, the process ends. If the target is reached, the cumulative number of strategy switching will be cleared to zero, and the following steps will be executed: the target synchronization strategy will be sent to each simulation module in the hybrid simulation platform.

12. A simulation synchronization control device, characterized in that, include: The first determining module is used to periodically determine the simulation scenario type of the current simulation stage of the hybrid simulation platform, and use it as the target scenario type. The hybrid simulation platform includes multiple simulation modules, which cooperate with each other to simulate electronic systems. The simulation scenario type is a predefined simulation scenario type that adapts to the corresponding synchronization strategy throughout the entire simulation process of the hybrid simulation platform. The second determining module is used to determine a synchronization strategy corresponding to the target scene type based on a preset first correspondence relationship, which serves as the target synchronization strategy. The first correspondence relationship includes the correspondence between simulation scene types and synchronization strategies. The first sending module is used to send the target synchronization strategy to each simulation module in the hybrid simulation platform, so that any simulation module can perform simulation synchronization with other simulation modules according to the target synchronization strategy. The first determination module includes: The first determination submodule is used to periodically acquire the preset type of status parameters of each simulation module in the hybrid simulation platform and the load status of the host machine of the hybrid simulation platform. The second determination submodule is used to determine the simulation scenario type of the current simulation stage of the hybrid simulation platform based on the status parameters and load status, and use it as the target scenario type. The simulation scenario types include simulation rate priority scenario, simulation accuracy priority scenario, and low interaction fault tolerance scenario. The synchronization strategies include time window synchronization strategy, event-driven synchronization strategy, and optimistic synchronization strategy. The first correspondence includes: Simulation rate-priority scenario corresponding to time window synchronization strategy; Event-driven synchronization strategy corresponding to simulation accuracy-priority scenarios; Optimistic synchronization strategies are appropriate for low-interaction, fault-tolerant scenarios. Predefined simulation scenario types include simulation rate priority scenarios; The scene recognition conditions for the simulated rate-first scenario include: If the difference in simulation rate between various simulation modules in the hybrid simulation platform reaches the first preset threshold, it is identified as a simulation rate priority scenario. The preset type of state parameters includes the simulation rate; Predefined simulation scenario types include simulation accuracy-priority scenarios; Scene recognition conditions for simulation accuracy-priority scenarios include: If the frequency of interaction events between various simulation modules reaches the fourth preset threshold, it is identified as a simulation accuracy priority scenario. The preset type of state parameters includes the frequency of interactive event triggering; The predefined simulation scenario types include low-interaction fault-tolerant scenarios, in which the number of data interactions between simulation modules is less than a preset standard; Scene recognition conditions for low-interaction-tolerance scenarios include: If the shared memory usage of each simulation module in the hybrid simulation platform is lower than the fifth preset threshold, it is identified as a low-interaction fault-tolerant scenario.

13. A simulation synchronization control device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the simulation synchronization control method as described in any one of claims 1 to 11 when executing the computer program.

14. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the simulation synchronization control method as described in any one of claims 1 to 11.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the simulation synchronization control method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Using method of digital SOMT architecture for aerospace target simulation

    CN120046372A

  • Information processing device, control method thereof, and program

    JP2015197815A