A real-time simulation system and a real-time simulation method
Through the design of the real-time simulation system, the input module, model control module and extensible processing platform are used to analyze the user model and build a hardware simulation model, which solves the problem of poor universality of existing simulation equipment, and achieves efficient real-time simulation and reduces costs.
Patent Information
- Application Number
- CN202411255192.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-09
AI Technical Summary
The existing real-time simulation equipment is poor in versatility and is difficult to cope with the specific needs of different customers, resulting in slow simulation speed and high cost.
Design a real-time simulation system, including input module, model control module and extensible processing platform, by receiving user models, converting them into intermediate files, analyzing target functional modules and port binding information, generating burned files, and building hardware simulation models. Improve the universality and efficiency of simulation systems.
The hardware simulation model construction based on different models is realized, which improves the universality and efficiency of real-time simulation systems, reduces simulation costs, and avoids the need for customized different models.
Smart Images

Figure CN118760617B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of simulation technology, and in particular to a real-time simulation system and a real-time simulation method. Background Art
[0002] The software simulation system runs on a software platform based on a personal computer, and uses the corresponding mathematical model instead of the actual system for simulation verification. The software simulation system has the advantages of simple operation and low complexity. However, since the software adopts a serial execution mechanism, the simulation speed is slow and it is difficult to achieve real-time simulation. Therefore, it is possible to consider using simulation equipment for real-time simulation.
[0003] Real-time simulation models are generally designed and generated by customers themselves. The simulation models of different customers may be very different. The specific needs of customers cannot be predicted before the simulation equipment leaves the factory. If specific simulation equipment is customized to meet different customer needs, the versatility of the simulation equipment will be poor. Summary of the invention
[0004] The embodiments described herein provide a real-time simulation system and a real-time simulation method, which can improve the versatility of the real-time simulation system and reduce the cost of real-time simulation.
[0005] In a first aspect, the present disclosure provides a real-time simulation system, comprising:
[0006] The input module is used to receive the model provided by the user and convert the model into a recognizable intermediate file.
[0007] The model control module is used to parse the intermediate file to obtain multiple target function modules and multiple port binding information; instantiate multiple target function module IPs according to each of the port binding information to generate a burning file; the target function modules correspond to the target function module IPs one by one.
[0008] The expandable processing platform is used to construct a hardware simulation model according to the burning file.
[0009] In some embodiments of the present disclosure, the model control module includes:
[0010] A control unit is used to parse the intermediate file, obtain multiple target function module identifiers and multiple port binding information, and send each target function module identifier and each port binding information to an execution unit; call a tcl script to control the execution unit; wherein the target function module identifier corresponds to the target function module one by one.
[0011] The execution unit is used to generate the IP of each target function module according to the identifier of each target function module under the control of the control unit; modify the corresponding IP of the target function module according to each port binding information to obtain a hardware code file; generate the burning file according to the hardware code file, and send the burning file to the control unit.
[0012] In some embodiments of the present disclosure, the execution unit is further used to perform synthesis and implementation under the control of the control unit, and generate a bit file and / or a bin file based on the hardware code file.
[0013] In some embodiments of the present disclosure, the control unit is further configured to receive model adjustment information, and determine a first function module identifier and a second function module identifier according to the model adjustment information; send the first function module identifier and the second function module identifier to the execution unit, and call the Tcl script to control the execution unit. Wherein, all the target function module identifiers include the second function module identifier and do not include the first function module identifier.
[0014] The execution unit is used to generate a first function module IP according to the first function module identifier under the control of the control unit; overwrite the second function module IP with the first function module IP to update the hardware code file, and update the burning file according to the updated hardware code file.
[0015] In some embodiments of the present disclosure, the control unit is further used to receive parameter adjustment information and send the parameter adjustment information to the scalable processing platform to control the state of the hardware simulation model, wherein the state includes input and / or output.
[0016] In some embodiments of the present disclosure, the scalable processing platform includes:
[0017] The processing unit is used to receive the burning file and configure the programmable logic unit according to the burning file.
[0018] The programmable logic unit is used to generate the hardware simulation model based on the configuration of the processing unit.
[0019] In some embodiments of the present disclosure, the real-time simulation system further includes:
[0020] The analog-to-digital converter is used to convert the analog signal output by the external device into an input digital signal, and send the input digital signal to the hardware simulation model.
[0021] A digital-to-analog converter is used to convert the digital signal output by the hardware simulation model into an output analog signal, and send the output analog signal to the external device.
[0022] In some embodiments of the present disclosure, the programmable logic unit includes a register;
[0023] The processing unit is further used to receive parameter adjustment information sent by the model control module, and write the parameter adjustment information into the corresponding register through the AXI bus. The parameter adjustment information includes at least one of an input sampling rate, an output frequency and an output voltage, the input sampling rate is used to control the sampling rate of the analog-to-digital converter, and the output frequency and the output voltage are used to control the output signal of the digital-to-analog converter.
[0024] In some embodiments of the present disclosure, the scalable processing platform is further used to package the simulation data of multiple monitoring ports in the hardware simulation model, and send the simulation data packets to the simulation data injection module through DMA.
[0025] The real-time simulation system also includes:
[0026] The simulation data injection module is used to parse the simulation data packet according to the protocol to obtain the simulation data of each monitoring port.
[0027] In a second aspect, the present disclosure provides a real-time simulation method, in which any real-time simulation system provided in the first aspect is applied, the real-time simulation method includes:
[0028] Receive a model provided by a user and convert the model into an identifiable intermediate file; parse the intermediate file to obtain multiple target function modules and multiple port binding information; instantiate multiple target function module IPs according to each of the port binding information to generate a burning file; wherein the target function modules correspond to the target function module IPs one by one; and construct a hardware simulation model according to the burning file.
[0029] In the technical solution of the disclosed embodiment, the input module can receive the model provided by the user and convert the model into a recognizable intermediate file, the model control module can parse the intermediate file to obtain multiple target functional modules and multiple port binding information, instantiate the multiple target functional module IPs according to the port binding information, and generate a burning file. The extensible processing platform can build a hardware simulation model according to the burning file. In this way, different hardware simulation models can be built based on different models, which can improve the versatility of the real-time simulation system. In addition, there is no need to customize the real-time simulation system for different models, thereby reducing the cost of real-time simulation.
[0030] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 A structural diagram of a real-time simulation system provided by an embodiment of the present disclosure;
[0033] Figure 2 A structural diagram of another real-time simulation system provided by an embodiment of the present disclosure;
[0034] Figure 3 A schematic diagram of a simulation data parsing process provided by an embodiment of the present disclosure;
[0035] Figure 4 A flowchart of a real-time simulation method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0037] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0038] Reference to "embodiments" in this disclosure means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this disclosure may be combined with other embodiments.
[0039] In addition, the terms "first", "second", etc. in the specification and claims of the present disclosure or the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order, and may explicitly or implicitly include one or more of the features.
[0040] In the description of the present disclosure, unless otherwise clearly stipulated and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, the "connection" or "connection" of a circuit structure can refer to not only a physical connection, but also an electrical connection or a signal connection. For example, it can be a direct connection, that is, a physical connection, or it can be an indirect connection through at least one intermediate element, as long as the circuit is connected, and it can also be the internal connection of two elements; signal connection can refer to signal connection through a circuit as well as through a media medium, such as radio waves.
[0041] The term "and / or" in this disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0042] In the description of the present disclosure, unless otherwise specified, "plurality" and "at least two" mean more than two (including two). Similarly, "plurality groups" and "at least two groups" mean more than two groups (including two).
[0043] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0044] Figure 1 A structural diagram of a real-time simulation system provided by an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the real-time simulation system 100 includes an input module 110, a model control module 120 and an extensible processing platform 130. The output end of the input model 110 is connected to the input end of the model control module 120, and the output end of the model control module 120 is connected to the input end of the extensible processing platform 130.
[0045] The input module 110 is used to receive the model provided by the user and convert the model into an identifiable intermediate file. The model control module 120 is used to parse the intermediate file to obtain multiple target function modules and multiple port binding information; instantiate multiple target function module IPs according to each port binding information to generate a burning file; wherein the target function module corresponds to the target function module IP one by one. The scalable processing platform 130 is used to build a hardware simulation model according to the burning file.
[0046] Exemplarily, the input module 110 may be Simulink, MATLAB, VC or other third-party simulation software. The input module 110 may identify and read the model provided by the user, and convert the model into an intermediate file recognizable by the model control module 120. For example, Simulink may convert the model into a FIP.
[0047] The intermediate file includes multiple target function modules corresponding to the model. For example, the target function modules may be modules with specific functions such as multiplication modules, signal generation modules, amplification modules, and filtering modules. The intermediate file also includes connection information of multiple ports corresponding to each target function module, i.e., multiple port binding information. For example, the port binding information may be that the output end of the amplification module is connected to the input end of the multiplication module, the output end of the multiplication module is connected to the input end of the filtering module, and the output end of the signal generation module is connected to the input end of the amplification module. It may also be the connection relationship between the ports of other target function modules.
[0048] For example, Figure 2 A structural diagram of another real-time simulation system provided by an embodiment of the present disclosure, such as Figure 2 As shown, the model control module 120 includes a control unit 121 and an execution unit 122. The input end of the control unit 121 is connected to the output end of the input module 110, the input and output ends of the control unit 121 are connected to the input and output ends of the execution unit 122, and the output end of the control unit 121 is connected to the input end of the scalable processing platform 130.
[0049] The control unit 121 can read and parse the intermediate file to obtain multiple target function modules and multiple port binding information, compare each target function module with all preset function modules in the preset function module library, determine the preset function module in the preset function module library that matches each target function module, and determine the identifier of the matching preset function module as the target function module identifier to obtain multiple target function module identifiers. The preset function module library includes multiple preset function modules, each preset function module corresponds to an identifier, for example, the identifier can be a file name and / or a file storage path.
[0050] For example, the preset function module library includes a multiplication module, an addition module, a filtering module and an amplification module, and the multiplication module corresponds to the identifier LA, the addition module corresponds to the identifier LB, the filtering module corresponds to the identifier LC, and the amplification module corresponds to the identifier LD. If the preset function module that matches the target function module is a multiplication module, the target function module is identified as LA, if the preset function module that matches the target function module is an addition module, the target function module is identified as LB, if the preset function module that matches the target function module is a filtering module, the target function module is identified as LC, and if the preset function module that matches the target function module is an amplification module, the target function module is identified as LD.
[0051] The control unit 121 may send the obtained target functional module identifiers and target functional module identifiers to the execution unit 122, call the tcl script and control the execution unit 122 based on the control instructions in the tcl script. For example, the control instructions may include a create project instruction, a new file instruction, and an add IP instruction.
[0052] In this way, the control unit 121 can parse the intermediate file to obtain multiple target function module identifiers and multiple port binding information, and send each target function module identifier and each port binding information to the execution unit 122, wherein the target function module identifier corresponds to the target function module one by one. The control unit 121 can also call a tcl script to control the execution unit 122.
[0053] The execution unit 122 may be Vivado, which can find the corresponding target function module IP file according to each target function module identifier based on the control instructions in the tcl script, and add the target function module IP file to generate each target function module IP. The target function module IP file is a Verilog template code file that can realize the target function, and the target function module IP is a Verilog template code that can realize the target function.
[0054] The execution unit 122 may modify the corresponding target functional module IP according to each port binding information to obtain a hardware code file. For example, based on the above embodiment, the hardware code is a Verilog code, and the hardware code file is a Verilog code file.
[0055] The execution unit 122 can also generate a burning file according to the hardware code file, and send the burning file to the control unit 121, so that the control unit 121 can send the burning file to the extensible processing platform 130. For example, the burning file can be a bit file, a bin file, or a bit file and a bin file.
[0056] In this way, under the control of the control unit 121, the execution unit 122 can generate each target function module IP according to the target function module identifier, modify the corresponding target function module IP according to each port binding information, obtain the hardware code file, generate the burning file according to the hardware code file, and send the burning file to the control unit 121, so that the control unit 121 sends the burning file to the extensible processing platform 130.
[0057] For example, see Figure 2 The expandable processing platform 130 includes a processing unit 131 and a programmable logic unit 132 . The input end of the processing unit 131 is connected to the output end of the model control module 120 , and the output end of the processing unit 131 is connected to the input end of the programmable logic unit 132 .
[0058] The processing unit 131 may receive the burning file sent by the model control module 120 and configure the programmable logic unit 132 according to the burning file. The programmable logic unit 132 may generate a hardware simulation model based on the configuration of the processing unit 131.
[0059] Continue to see Figure 2 The real-time simulation system 100 further includes an analog-to-digital converter ADC and a digital-to-analog converter DAC. The output end of the analog-to-digital converter ADC is connected to the input end of the programmable logic unit 132, the input end of the digital-to-analog converter DAC is connected to the output end of the programmable logic unit 132, the input end of the analog-to-digital converter ADC is connected to the output end of the external device, and the output end of the digital-to-analog converter DAC is connected to the input end of the external device.
[0060] Exemplarily, the signal output by the external device is an analog signal, and the analog-to-digital converter ADC can convert the analog signal output by the external device into an input digital signal, and send the input digital signal to the input end of the programmable logic unit 132. The input end of the programmable logic unit 132 is the input end of the hardware simulation model, and the analog-to-digital converter ADC can send the input digital signal to the hardware simulation model, and the input of the hardware simulation model is the input digital signal.
[0061] The hardware simulation model can perform simulation operations on the input digital signal to obtain a simulation data signal, that is, the output of the hardware simulation model. The output end of the programmable logic unit 132 is the output end of the hardware simulation model, and the hardware simulation model can send the simulation data signal to the digital-to-analog converter DAC. The simulation data signal is a digital signal, and the digital-to-analog converter DAC can convert the digital signal output by the hardware simulation model into an output analog signal, and send the output analog signal to an external device to obtain real-time simulation data.
[0062] In the disclosed embodiment, the input module can receive a model provided by a user and convert the model into a recognizable intermediate file, the model control module can parse the intermediate file to obtain multiple target functional modules and multiple port binding information, instantiate the multiple target functional module IPs according to each port binding information, and generate a burning file. The extensible processing platform can build a hardware simulation model according to the burning file. In this way, different hardware simulation models can be built based on different models, which can improve the versatility of the real-time simulation system. In addition, there is no need to customize the real-time simulation system for different models, thereby reducing the cost of real-time simulation.
[0063] In some embodiments, the control instructions in the tcl script may include synthesis instructions and implementation instructions. Based on the control instructions in the tcl script, the execution unit 122 may perform synthesis and implementation. The control instructions in the tcl script may also include instructions for creating a burning file. Based on the control instructions in the tcl script, the execution unit 122 may generate a bit file and / or a bin file based on the hardware code file.
[0064] The specific burning file to be generated is a bit file, a bin file, or a bit file and a bin file. Restrictions can be added to the instruction for creating the burning file.
[0065] In this way, under the control of the control unit 121, the execution unit 122 can perform synthesis and implementation, and generate a bit file and / or a bin file based on the hardware code file.
[0066] In some embodiments, when the simulation result of the hardware simulation model does not meet expectations, it is necessary to adjust at least one target functional module IP to optimize the hardware simulation model.
[0067] The model control module 120 may include a model adjustment unit, and the output end of the model adjustment unit is connected to the input end of the control unit 121. The user can select the target function module to be replaced through the model adjustment unit, and can also select the alternative function module to be replaced from the alternative function module library. The model adjustment unit generates model adjustment information based on the target function module to be replaced and the alternative function module to be replaced. The alternative function module library includes multiple alternative function modules, and each alternative function module corresponds to an identifier.
[0068] The control unit 121 may receive the model adjustment information sent by the model adjustment unit, and determine the identifier of the candidate functional module to be replaced, ie, the first functional module identifier, and the identifier of the target functional module to be replaced, ie, the second functional module identifier, according to the model adjustment information.
[0069] For example, the target functional module to be replaced is a multiplication operation module, and the alternative functional module to be replaced is an alternative multiplication operation module. Although both the multiplication operation module and the alternative multiplication operation module can implement multiplication operation, their internal implementation logics are different. The multiplication operation module is identified as A, and the alternative multiplication operation module is identified as a, then the first functional module is identified as a, and the second functional module is identified as A.
[0070] The control unit 121 may also send the first function module identifier and the second function module identifier to the execution unit 122, call the tcl script, and control the execution unit 122 based on the control instructions in the tcl script. The control instructions include instructions for replacing the second function module IP with the first function module IP, the second function module IP is the IP corresponding to the second function module identifier, and the first function module IP is the IP corresponding to the first function module identifier.
[0071] In this way, the control unit 121 can receive the model adjustment information, and determine the first function module identifier and the second function module identifier according to the model adjustment information, send the first function module identifier and the second function module identifier to the execution unit 122, and call the Tcl script to control the execution unit 122. Among them, all target function module identifiers include the second function module identifier and do not include the first function module identifier.
[0072] Based on the control instructions in the tcl script, the execution unit 122 can find the first function module IP file corresponding to the first function module identifier according to the first function module identifier, add the first function module IP file to generate the first function module IP, overwrite the second function module IP in the hardware code file with the first function module IP to update the hardware code file, and update the burning file according to the updated hardware code file.
[0073] Thus, under the control of the control unit 121, the execution unit 122 can generate the first function module IP according to the first function module identifier, overwrite the second function module IP with the first function module IP to update the hardware code file, and update the burning file according to the updated hardware code file.
[0074] In the disclosed embodiment, the control unit 121 can receive model adjustment information, and determine the first function module identifier and the second function module identifier based on the model adjustment information, send the first function module identifier and the second function module identifier to the execution unit 122, and call the tcl script to control the execution unit 122. Under the control of the control unit 121, the execution unit 122 can generate a first function module IP based on the first function module identifier, overwrite the second function module IP with the first function module IP to update the hardware code file, and update the burning file based on the updated hardware code file, so as to be able to adjust and optimize the hardware simulation model in real time to improve the accuracy of the hardware simulation model.
[0075] In some embodiments, at least part of the state of the hardware simulation model may need to be adjusted based on actual conditions, wherein the state includes input and / or output.
[0076] The model control module 120 may include a parameter adjustment unit, the output end of which is connected to the input end of the control unit. The user may select an adjusted parameter and set an adjusted target value through the parameter adjustment unit, and the parameter adjustment unit generates parameter adjustment information based on the adjusted parameter and the adjusted target value, wherein the parameter adjustment information includes at least one of an input sampling rate, an output frequency, and an output voltage.
[0077] The control unit 121 may receive parameter adjustment information sent by the parameter adjustment unit, and send the parameter adjustment information to the scalable processing platform 130. The scalable processing platform 130 may control the input and / or output of the hardware simulation model according to the received parameter adjustment information.
[0078] Exemplarily, if the parameter adjustment information includes an input sampling rate, the scalable processing platform 130 may control the input of the hardware simulation model according to the input sampling rate.
[0079] If the parameter adjustment information includes the output frequency, the scalable processing platform 130 can control the output of the hardware simulation model according to the output frequency. If the parameter adjustment information includes the output voltage, the scalable processing platform 130 can control the output of the hardware simulation model according to the output voltage. If the parameter adjustment information includes the output frequency and the output voltage, the scalable processing platform 130 can control the output of the hardware simulation model according to the output frequency and the output voltage.
[0080] If the parameter adjustment information includes an input sampling rate and an output frequency, the scalable processing platform 130 may control the input of the hardware simulation model according to the input sampling rate, and may control the output of the hardware simulation model according to the output frequency.
[0081] If the parameter adjustment information includes an input sampling rate and an output voltage, the expandable processing platform 130 may control the input of the hardware simulation model according to the input sampling rate, and may control the output of the hardware simulation model according to the output voltage.
[0082] If the parameter adjustment information includes input sampling rate, output frequency and output voltage, the expandable processing platform 130 can control the input of the hardware simulation model according to the input sampling rate, and can control the output of the hardware simulation model according to the output frequency and output voltage.
[0083] In this way, the control unit 121 can receive parameter adjustment information and send the parameter adjustment information to the scalable processing platform 130 to control the state of the hardware simulation model, wherein the state includes input and / or output.
[0084] In the embodiment of the present disclosure, the control unit 121 can receive parameter adjustment information and send the parameter adjustment information to the extensible processing platform 130 to control the state of the hardware simulation model, and can adjust and optimize the input and / or output of the hardware simulation model in real time to meet the user's requirements for different states of the hardware simulation model.
[0085] In some embodiments, programmable logic unit 132 includes registers.
[0086] Exemplarily, if the parameter adjustment information includes the input sampling rate, the programmable logic unit 132 includes an input sampling rate register, and the processing unit 131 can receive the input sampling rate sent by the control unit 121 and write the input sampling rate into the input sampling rate register via the AXI bus.
[0087] If the parameter adjustment information includes the output frequency, the programmable logic unit 132 includes an output frequency register, and the processing unit 131 can receive the output frequency sent by the control unit 121 and write the output frequency into the output frequency register through the AXI bus.
[0088] If the parameter adjustment information includes the output voltage, the programmable logic unit 132 includes an output voltage register, and the processing unit 131 can receive the output voltage sent by the control unit 121 and write the output voltage into the output voltage register through the AXI bus.
[0089] If the parameter adjustment information includes the input sampling rate and the output frequency, the programmable logic unit 132 includes an input sampling rate register and an output frequency register, and the processing unit 131 can receive the input sampling rate and output frequency sent by the control unit 121, and write the input sampling rate into the input sampling rate register and the output frequency into the output frequency register through the AXI bus.
[0090] If the parameter adjustment information includes the input sampling rate and the output voltage, the programmable logic unit 132 includes an input sampling rate register and an output voltage register, and the processing unit 131 can receive the input sampling rate and output voltage sent by the control unit 121, and write the input sampling rate into the input sampling rate register and the output voltage into the output voltage register through the AXI bus.
[0091] If the parameter adjustment information includes input sampling rate, output frequency and output voltage, the programmable logic unit 132 includes an input sampling rate register, an output frequency register and an output voltage register, and the processing unit 131 can receive the input sampling rate, output frequency and output voltage sent by the control unit 121, and write the input sampling rate into the input sampling rate register, the output frequency into the output frequency register, and the output voltage into the output voltage register through the AXI bus.
[0092] In this way, the processing unit 131 can receive the parameter adjustment information sent by the model control module 120, and write the parameter adjustment information into the corresponding register through the AXI bus.
[0093] Based on the above embodiment, the input end of the hardware simulation model is connected to the analog-to-digital converter ADC, and the output end of the hardware simulation model is connected to the digital-to-analog converter DAC. The control of the input of the hardware simulation model is essentially the control of the analog-to-digital converter ADC, and the control of the output of the hardware simulation model is essentially the control of the digital-to-analog converter DAC.
[0094] Exemplarily, if the parameter adjustment information includes an input sampling rate, the programmable logic unit 132 controls the sampling rate of the analog-to-digital converter ADC based on data in the input sampling rate register to control the input of the hardware simulation model.
[0095] If the parameter adjustment information includes the output frequency, the programmable logic unit 132 controls the frequency of the output signal of the digital-to-analog converter DAC based on the data in the output frequency register to control the output of the hardware simulation model.
[0096] If the parameter adjustment information includes the output voltage, the programmable logic unit 132 controls the voltage of the output signal of the digital-to-analog converter DAC based on the data in the output voltage register to control the output of the hardware simulation model.
[0097] If the parameter adjustment information includes input sampling rate and output frequency, the programmable logic unit 132 controls the sampling rate of the analog-to-digital converter ADC based on the data in the input sampling rate register to control the input of the hardware simulation model, and the programmable logic unit 132 controls the frequency of the output signal of the digital-to-analog converter DAC based on the data in the output frequency register to control the output of the hardware simulation model.
[0098] If the parameter adjustment information includes input sampling rate and output voltage, the programmable logic unit 132 controls the sampling rate of the analog-to-digital converter ADC based on the data in the input sampling rate register to control the input of the hardware simulation model, and the programmable logic unit 132 controls the voltage of the output signal of the digital-to-analog converter DAC based on the data in the output voltage register to control the output of the hardware simulation model.
[0099] If the parameter adjustment information includes input sampling rate, output frequency and output voltage, the programmable logic unit 132 controls the sampling rate of the analog-to-digital converter ADC based on the data in the input sampling rate register to control the input of the hardware simulation model. The programmable logic unit 132 controls the frequency of the output signal of the digital-to-analog converter DAC based on the data in the output frequency register, and controls the voltage of the output signal of the digital-to-analog converter DAC based on the data in the output voltage register to control the output of the hardware simulation model.
[0100] In this way, the input sampling rate can be used to control the sampling rate of the analog-to-digital converter ADC, thereby controlling the input of the hardware simulation model, and the output frequency and output voltage can be used to control the output signal of the digital-to-analog converter DAC, thereby controlling the output of the hardware simulation model.
[0101] In some embodiments, the real-time simulation system 100 further includes a simulation data injection module.
[0102] The scalable processing platform 130 is also used to package the simulation data of multiple monitoring ports in the hardware simulation model and send the simulation data packets to the simulation data injection module through DMA. The simulation data injection module is used to parse the simulation data packets according to the protocol to obtain the simulation data of each monitored port.
[0103] Exemplarily, the simulation data includes signal source data for simulation. The scalable processing platform 130 can package the signal source data for simulation of multiple monitoring ports in the hardware simulation model to obtain a simulation data packet including the signal source data packet for simulation, and send the simulation data packet to the simulation data injection module via DMA.
[0104] The simulation data injection module parses the simulation data packet according to the protocol and can obtain the signal source data of each monitoring port.
[0105] Figure 3 A schematic diagram of a simulation data analysis process provided by an embodiment of the present disclosure, such as Figure 3As shown, the simulation data packet passes through the signal source data of port A, port B, port C and port D, and the DMA byte HeadFrame_num of the simulation data DMA data stream includes A0, B0, C0, D0...An, Bn, Cn and Dn. The simulation data injection module can parse the DMA data stream into the simulation data of port A, the simulation data of port B, the simulation data of port C and the simulation data of port D according to the protocol.
[0106] It should be noted that the embodiments of the present disclosure only use the signal source data for simulation as an example to illustrate the simulation data. In actual applications, it may also be other simulation data, and the present disclosure does not impose any specific limitation on this.
[0107] In some embodiments, the scalable processing platform 130 includes a DIO control unit, which is used to control the DIO as input or output, and bind corresponding hardware channels according to multiple port binding information.
[0108] The real-time simulation system provided by the embodiments of the present disclosure can be applied to multiple fields, for example, in aircraft design and simulation in aerospace, to help design and verify the performance and functions of aircraft and spacecraft, and ensure that they can work properly in a real environment. It can be applied to autonomous driving simulation in the automotive industry to test and verify the safety and reliability of autonomous driving systems in a virtual environment. It can be applied to weapon system simulation in national defense and the military to evaluate the performance of weapon systems in various combat scenarios. It can be applied to circuit simulation in electronics and semiconductors to test and optimize the design of integrated circuits in a simulation environment and other related fields, connect the customer's customized model with the simulation device, and implement the customer's functions on the simulation device.
[0109] The embodiment of the present disclosure further provides a real-time simulation method, which is applied to the real-time simulation system 100 provided in any of the above embodiments.
[0110] Figure 4 A flow chart of a real-time simulation method provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the specific steps of the real-time simulation method include:
[0111] S101, the input module receives the model provided by the user and converts the model into a recognizable intermediate file.
[0112] Exemplarily, the intermediate file includes multiple target function modules corresponding to the model. For example, the target function module may be a module with specific functions such as a multiplication module, a signal generation module, an amplification module, and a filtering module.
[0113] The intermediate file also includes connection information of multiple ports corresponding to each target functional module, that is, multiple port binding information. For example, the port binding information can be that the output end of the amplification module is connected to the input end of the multiplication module, the output end of the multiplication module is connected to the input end of the filtering module, and the output end of the signal generation module is connected to the input end of the amplification module. It can also be the connection relationship between the ports of other target functional modules.
[0114] The input module can be Simulink, MATLAB, VC or other third-party simulation software. The input module can recognize and read the model provided by the user and convert the model into a recognizable intermediate file. For example, Simulink can convert the model into FIP.
[0115] S102, the model control module parses the intermediate file to obtain multiple target function modules and multiple port binding information.
[0116] Exemplarily, the model control module includes a control unit and an execution unit. The control unit can parse the intermediate file to obtain multiple target function module identifiers and multiple port binding information, send each target function module identifier and each port binding information to the execution unit, and call the tcl script to control the execution unit. Among them, the target function module identifier corresponds to the target function module one by one.
[0117] The control unit can read and parse the intermediate file to obtain multiple target function modules and multiple port binding information, compare each target function module with all preset function modules in the preset function module library, determine the preset function module in the preset function module library that matches each target function module, and determine the identifier of the matching preset function module as the target function module identifier to obtain multiple target function module identifiers. The preset function module library includes multiple preset function modules, each preset function module corresponds to an identifier, for example, the identifier can be a file name and / or a file storage path.
[0118] For example, the preset function module library includes a multiplication module, an addition module, a filtering module and an amplification module, and the multiplication module corresponds to the identifier LA, the addition module corresponds to the identifier LB, the filtering module corresponds to the identifier LC, and the amplification module corresponds to the identifier LD. If the preset function module that matches the target function module is a multiplication module, the target function module is identified as LA, if the preset function module that matches the target function module is an addition module, the target function module is identified as LB, if the preset function module that matches the target function module is a filtering module, the target function module is identified as LC, and if the preset function module that matches the target function module is an amplification module, the target function module is identified as LD.
[0119] The control unit can send the obtained target functional module identifiers and target functional module identifiers to the execution unit, call the tcl script and control the execution unit based on the control instructions in the tcl script. For example, the control instructions may include a create project instruction, a new file instruction, and an add IP instruction.
[0120] S103, the model control module instantiates multiple target functional module IPs according to the port binding information and generates a burning file.
[0121] Exemplarily, the target function module IP is a Verilog template code that can realize the target function, and the target function module corresponds to the target function module IP one by one. The execution unit can be Vivado, and under the control of the control unit, the execution unit can generate each target function module IP according to each target function module identifier, modify the corresponding target function module IP according to each port binding information, obtain the hardware code file, generate the burning file according to the hardware code file, and send the burning file to the control unit.
[0122] The target function module IP file is a Verilog template code file that can realize the target function, the hardware code file is a Verilog code file, and the burning file can be a bit file, a bin file, or a bit file and a bin file.
[0123] Based on the control instructions in the tcl script, the execution unit can find the corresponding target function module IP file according to each target function module identifier, and add the target function module IP file to generate each target function module IP.
[0124] The control instructions in the tcl script may include synthesis instructions and implementation instructions. Based on the control instructions in the tcl script, the execution unit may perform synthesis and implementation.
[0125] The control instructions in the tcl script may also include instructions for creating a burning file. Based on the control instructions in the tcl script, the execution unit may generate a bit file and / or a bin file according to the hardware code file. Whether the burning file to be generated is a bit file, a bin file, or both a bit file and a bin file, a restriction condition may be added to the instruction for creating a burning file.
[0126] The execution unit may send the burning file to the control unit, so that the control unit may send the burning file to the scalable processing platform.
[0127] S104, the extensible processing platform constructs a hardware simulation model according to the burning file.
[0128] Exemplarily, the scalable processing platform includes a processing unit and a programmable logic unit. The processing unit can receive the burning file sent by the model control module and configure the programmable logic unit according to the burning file. The programmable logic unit can generate a hardware simulation model based on the configuration of the processing unit.
[0129] The real-time simulation system also includes an analog-to-digital converter and a digital-to-analog converter. The analog-to-digital converter can convert the analog signal output by the external device into an input digital signal, and send the input digital signal to the input end of the programmable logic unit, that is, the input digital signal can be sent to the hardware simulation model, and the input of the hardware simulation model is the input digital signal.
[0130] The hardware simulation model can perform simulation operations on the input digital signal to obtain a simulation data signal, that is, the output of the hardware simulation model. The hardware simulation model can send the simulation data signal to the digital-to-analog converter. The simulation data signal is a digital signal. The digital-to-analog converter can convert the digital signal output by the hardware simulation model into an output analog signal, and send the output analog signal to an external device to obtain real-time simulation data.
[0131] In the disclosed embodiment, a model provided by a user is received and converted into a recognizable intermediate file, the intermediate file is parsed to obtain multiple target functional modules and multiple port binding information, multiple target functional module IPs are instantiated according to each port binding information, a burning file is generated, and a hardware simulation model is constructed according to the burning file. In this way, different hardware simulation models can be constructed based on different models, which can improve the versatility of the real-time simulation system. In addition, there is no need to customize the real-time simulation system for different models, thereby reducing the cost of real-time simulation.
[0132] In some embodiments, when the simulation result of the hardware simulation model does not meet expectations, it is necessary to adjust at least one target functional module IP to optimize the hardware simulation model.
[0133] The model control module may include a model adjustment unit, through which a user may select a target function module to be replaced, and may also select a replacement candidate function module from a candidate function module library, and the model adjustment unit generates model adjustment information based on the target function module to be replaced and the replacement candidate function module. The candidate function module library includes a plurality of candidate function modules, each of which corresponds to an identifier.
[0134] The specific steps of the real-time simulation method also include:
[0135] The control unit receives the model adjustment information, and determines the first function module identifier and the second function module identifier according to the model adjustment information, sends the first function module identifier and the second function module identifier to the execution unit, and calls the Tcl script to control the execution unit, wherein all target function module identifiers include the second function module identifier and do not include the first function module identifier.
[0136] Under the control of the control unit, the execution unit generates a first function module IP according to the first function module identifier, overwrites the second function module IP with the first function module IP to update the hardware code file, and updates the burning file according to the updated hardware code file.
[0137] Exemplarily, the first functional module identifier is the identifier of the alternative functional module to be replaced, and the second functional module identifier is the identifier of the target functional module to be replaced. The second functional module IP is the IP corresponding to the second functional module identifier, that is, the IP of the target functional module to be replaced, and the first functional module IP is the IP corresponding to the first functional module identifier, that is, the IP of the alternative functional module to be replaced.
[0138] For example, the target functional module to be replaced is a multiplication operation module, and the alternative functional module to be replaced is an alternative multiplication operation module. Although both the multiplication operation module and the alternative multiplication operation module can implement multiplication operation, their internal implementation logics are different. The multiplication operation module is identified as A, and the alternative multiplication operation module is identified as a, then the first functional module is identified as a, and the second functional module is identified as A.
[0139] The control instructions in the tcl script include instructions for generating a first functional module IP and instructions for replacing the second functional module IP with the first functional module IP. Based on the control instructions in the tcl script, the execution unit can find the first functional module IP file corresponding to the first functional module identifier according to the first functional module identifier, add the first functional module IP file to generate the first functional module IP, and overwrite the second functional module IP in the hardware code file with the first functional module IP to update the hardware code file.
[0140] In the disclosed embodiment, the control unit receives model adjustment information, determines a first function module identifier and a second function module identifier based on the model adjustment information, sends the first function module identifier and the second function module identifier to the execution unit, and calls a tcl script to control the execution unit. Under the control of the control unit, the execution unit generates a first function module IP based on the first function module identifier, overwrites the second function module IP with the first function module IP to update the hardware code file, and updates the burning file based on the updated hardware code file, so as to adjust and optimize the hardware simulation model in real time to improve the accuracy of the hardware simulation model.
[0141] In some embodiments, based on actual conditions, it may be necessary to adjust at least part of the state of the hardware simulation model, where the state includes input and / or output.
[0142] The model control module may include a parameter adjustment unit, through which a user may select an adjusted parameter and set an adjusted target value, and the parameter adjustment unit generates parameter adjustment information based on the adjusted parameter and the adjusted target value, wherein the parameter adjustment information includes at least one of an input sampling rate, an output frequency, and an output voltage.
[0143] The specific steps of the real-time simulation method also include:
[0144] The control unit receives the parameter adjustment information sent by the parameter adjustment unit and sends the parameter adjustment information to the expandable processing platform. The expandable processing platform controls the state of the hardware simulation model according to the received parameter adjustment information.
[0145] Exemplarily, if the parameter adjustment information includes an input sampling rate, the scalable processing platform can control the input of the hardware simulation model according to the input sampling rate. If the parameter adjustment information includes an output frequency, the scalable processing platform can control the output of the hardware simulation model according to the output frequency. If the parameter adjustment information includes an output voltage, the scalable processing platform can control the output of the hardware simulation model according to the output voltage. If the parameter adjustment information includes an output frequency and an output voltage, the scalable processing platform can control the output of the hardware simulation model according to the output frequency and the output voltage.
[0146] If the parameter adjustment information includes the input sampling rate and the output frequency, the scalable processing platform can control the input of the hardware simulation model according to the input sampling rate, and can control the output of the hardware simulation model according to the output frequency. If the parameter adjustment information includes the input sampling rate and the output voltage, the scalable processing platform can control the input of the hardware simulation model according to the input sampling rate, and can control the output of the hardware simulation model according to the output voltage.
[0147] If the parameter adjustment information includes input sampling rate, output frequency and output voltage, the expandable processing platform can control the input of the hardware simulation model according to the input sampling rate, and can control the output of the hardware simulation model according to the output frequency and output voltage.
[0148] In the disclosed embodiment, the control unit can receive parameter adjustment information and send the parameter adjustment information to the extensible processing platform. The extensible processing platform controls the state of the hardware simulation model according to the received parameter adjustment information, and can adjust and optimize the input and / or output of the hardware simulation model in real time to meet the user's requirements for different states of the hardware simulation model.
[0149] In some embodiments, the programmable logic unit includes registers.
[0150] Exemplarily, the programmable logic unit includes at least one of an input sampling rate register, an output frequency register, and an output voltage register.
[0151] The specific steps of the real-time simulation method also include:
[0152] The processing unit receives the parameter adjustment information sent by the model control module, and writes the parameter adjustment information into the corresponding register through the AXI bus.
[0153] Exemplarily, if the parameter adjustment information includes the input sampling rate, the programmable logic unit includes an input sampling rate register, and the processing unit can receive the input sampling rate sent by the control unit and write the input sampling rate into the input sampling rate register through the AXI bus.
[0154] If the parameter adjustment information includes the output frequency, the programmable logic unit includes an output frequency register, the processing unit can receive the output frequency sent by the control unit, and write the output frequency into the output frequency register through the AXI bus.
[0155] If the parameter adjustment information includes the output voltage, the programmable logic unit includes an output voltage register, and the processing unit can receive the output voltage sent by the control unit and write the output voltage into the output voltage register through the AXI bus.
[0156] If the parameter adjustment information includes the input sampling rate and the output frequency, the programmable logic unit includes an input sampling rate register and an output frequency register. The processing unit can receive the input sampling rate and output frequency sent by the control unit, and write the input sampling rate into the input sampling rate register and the output frequency into the output frequency register through the AXI bus.
[0157] If the parameter adjustment information includes input sampling rate and output voltage, the programmable logic unit includes an input sampling rate register and an output voltage register. The processing unit can receive the input sampling rate and output voltage sent by the control unit, and write the input sampling rate into the input sampling rate register and the output voltage into the output voltage register through the AXI bus.
[0158] If the parameter adjustment information includes input sampling rate, output frequency and output voltage, the programmable logic unit includes an input sampling rate register, an output frequency register and an output voltage register. The processing unit can receive the input sampling rate, output frequency and output voltage sent by the control unit, and write the input sampling rate into the input sampling rate register, the output frequency into the output frequency register, and the output voltage into the output voltage register through the AXI bus.
[0159] Based on the above embodiment, the input end of the hardware simulation model is connected to the analog-to-digital converter, and the output end of the hardware simulation model is connected to the digital-to-analog converter. The control of the input of the hardware simulation model is essentially the control of the analog-to-digital converter, and the control of the output of the hardware simulation model is essentially the control of the digital-to-analog converter. In this way, the input sampling rate is used to control the sampling rate of the analog-to-digital converter to control the input of the hardware simulation model, and the output frequency and output voltage are used to control the output signal of the digital-to-analog converter to control the output of the hardware simulation model.
[0160] Exemplarily, if the parameter adjustment information includes an input sampling rate, the programmable logic unit controls the sampling rate of the analog-to-digital converter based on data in the input sampling rate register to control the input of the hardware simulation model.
[0161] If the parameter adjustment information includes the output frequency, the programmable logic unit controls the frequency of the output signal of the digital-to-analog converter based on the data in the output frequency register to control the output of the hardware simulation model.
[0162] If the parameter adjustment information includes the output voltage, the programmable logic unit controls the voltage of the output signal of the digital-to-analog converter based on the data in the output voltage register to control the output of the hardware simulation model.
[0163] If the parameter adjustment information includes input sampling rate and output frequency, the programmable logic unit 132 controls the sampling rate of the analog-to-digital converter based on the data in the input sampling rate register to control the input of the hardware simulation model, and the programmable logic unit controls the frequency of the output signal of the digital-to-analog converter based on the data in the output frequency register to control the output of the hardware simulation model.
[0164] If the parameter adjustment information includes input sampling rate and output voltage, the programmable logic unit controls the sampling rate of the analog-to-digital converter based on the data in the input sampling rate register to control the input of the hardware simulation model, and the programmable logic unit controls the voltage of the output signal of the digital-to-analog converter based on the data in the output voltage register to control the output of the hardware simulation model.
[0165] If the parameter adjustment information includes input sampling rate, output frequency and output voltage, the programmable logic unit controls the sampling rate of the analog-to-digital converter based on the data in the input sampling rate register to control the input of the hardware simulation model, the programmable logic unit controls the frequency of the digital-to-analog converter output signal based on the data in the output frequency register, and controls the voltage of the digital-to-analog converter output signal based on the data in the output voltage register to control the output of the hardware simulation model.
[0166] In some embodiments, the real-time simulation system further includes a simulation data injection module.
[0167] The specific steps of the real-time simulation method also include:
[0168] The scalable processing platform packages the simulation data of multiple monitoring ports in the hardware simulation model, and sends the simulation data packets to the simulation data injection module through DMA.
[0169] The simulation data injection module parses the simulation data packet to obtain the simulation data of each monitoring port.
[0170] Exemplarily, the simulation data includes signal source data for simulation. The scalable processing platform can package the signal source data for simulation of multiple monitoring ports in the hardware simulation model to obtain a simulation data packet including the signal source data packet for simulation, and send the simulation data packet to the simulation data injection module through DMA. The simulation data injection module parses the simulation data packet according to the protocol to obtain the signal source data of each monitoring port.
[0171] like Figure 3 As shown, the simulation data packet passes through the signal source data of port A, port B, port C and port D, and the DMA byte Head Frame_num of the simulation data DMA data stream includes A0, B0, C0, D0...An, Bn, Cn and Dn. The simulation data injection module can parse the DMA data stream into the signal source data of port A, the signal source data of port B, the signal source data of port C and the signal source data of port D according to the protocol.
[0172] It should be noted that the embodiments of the present disclosure only use the signal source data for simulation as an example to illustrate the simulation data. In actual applications, it may also be other simulation data, and the present disclosure does not impose any specific limitation on this.
[0173] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.
[0174] Further aspects and scopes of adaptability become apparent from the description provided herein. It should be understood that various aspects of the present application can be implemented individually or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are intended for purposes of illustration only and are not intended to limit the scope of the present application.
[0175] Several embodiments of the present disclosure are described in detail above, but it is obvious that those skilled in the art can make various modifications and variations to the embodiments of the present disclosure without departing from the spirit and scope of the present disclosure. The protection scope of the present disclosure is defined by the attached claims.
Claims
1. A real-time simulation system, It is characterized in that include: An input module, used for receiving a model provided by a user and converting the model into a recognizable intermediate file; A model control module is used to parse the intermediate file to obtain multiple target function modules and multiple port binding information; instantiate multiple target function module IPs according to each of the port binding information to generate a burning file; the target function modules correspond to the target function module IPs one by one; An expandable processing platform for constructing a hardware simulation model according to the burning file; The model control module includes: A control unit, used for parsing the intermediate file, obtaining a plurality of target function module identifiers and a plurality of port binding information, and sending each target function module identifier and each port binding information to an execution unit; calling a tcl script to control the execution unit; wherein the target function module identifier corresponds to the target function module one by one; The execution unit is used to generate the IP of each target function module according to the identifier of each target function module under the control of the control unit; modify the corresponding IP of the target function module according to each port binding information to obtain a hardware code file; generate the burning file according to the hardware code file, and send the burning file to the control unit; The scalable processing platform includes: A processing unit, used for receiving the burning file and configuring the programmable logic unit according to the burning file; The programmable logic unit is used to generate the hardware simulation model based on the configuration of the processing unit.
2. The real-time simulation system according to claim 1, It is characterized in that The execution unit is further used to perform synthesis and implementation under the control of the control unit, and generate a bit file and / or a bin file based on the hardware code file.
3. The real-time simulation system according to claim 1, It is characterized in that The control unit is further used to receive model adjustment information, and determine a first function module identifier and a second function module identifier according to the model adjustment information; send the first function module identifier and the second function module identifier to the execution unit, and call the Tcl script to control the execution unit; Wherein, all the target function module identifiers include the second function module identifier and do not include the first function module identifier; The execution unit is used to generate a first function module IP according to the first function module identifier under the control of the control unit; overwrite the second function module IP with the first function module IP to update the hardware code file, and update the burning file according to the updated hardware code file.
4. The real-time simulation system according to claim 1, It is characterized in that The control unit is further configured to receive parameter adjustment information and send the parameter adjustment information to the scalable processing platform to control the state of the hardware simulation model, wherein the state includes input and / or output.
5. The real-time simulation system according to any one of claims 1 to 4, It is characterized in that The real-time simulation system also includes: an analog-to-digital converter, used for converting an analog signal output by an external device into an input digital signal, and sending the input digital signal to the hardware simulation model; A digital-to-analog converter is used to convert the digital signal output by the hardware simulation model into an output analog signal, and send the output analog signal to the external device.
6. The real-time simulation system according to claim 5, It is characterized in that The programmable logic unit includes a register; The processing unit is further used to receive parameter adjustment information sent by the model control module, and write the parameter adjustment information into the corresponding register through the AXI bus; Among them, the parameter adjustment information includes at least one of an input sampling rate, an output frequency and an output voltage, the input sampling rate is used to control the sampling rate of the analog-to-digital converter, and the output frequency and the output voltage are used to control the output signal of the digital-to-analog converter.
7. The real-time simulation system according to any one of claims 1 to 4, It is characterized in that The scalable processing platform is also used to package the simulation data of multiple monitoring ports in the hardware simulation model, and send the simulation data packets to the simulation data injection module through DMA; The real-time simulation system also includes: The simulation data injection module is used to parse the simulation data packet according to the protocol to obtain the simulation data of each monitoring port.
8. A real-time simulation method, It is characterized in that Applied in the real-time simulation system according to any one of claims 1 to 7, the method comprises: Receive a model provided by a user and convert the model into a recognizable intermediate file; Parsing the intermediate file to obtain multiple target function modules and multiple port binding information; Instantiate multiple target function module IPs according to each of the port binding information to generate a burning file; wherein the target function modules correspond to the target function module IPs one by one; Constructing a hardware simulation model according to the burning file; The parsing of the intermediate file to obtain multiple target function modules and multiple port binding information includes: Based on the control unit, the intermediate file is parsed to obtain a plurality of target function module identifiers and a plurality of the port binding information, wherein the target function module identifiers correspond to the target function modules one by one; The instantiation of multiple target functional module IPs according to each of the port binding information to generate a burning file comprises: Under the control unit, based on the execution unit, and according to the identifier of each target function module, the IP of each target function module is generated; Modify the corresponding target function module IP according to each port binding information to obtain a hardware code file; Generate the burning file according to the hardware code file; The constructing of the hardware simulation model according to the burning file comprises: Based on the processing unit, configuring the programmable logic unit according to the burning file; Based on the programmable logic unit and according to the configuration of the processing unit, the hardware simulation model is generated.
Citation Information
Patent Citations
Bus model-based embedded system emulated platform
CN101059773A
Efficient multi-mode verification platform and method
CN111950212A
Graphical high-level integrated circuit performance analysis method, system and device and medium
CN115438610A
Procedure and device for emulating a programmable unit
US20090106604A1
