Model processing method and device of IP core for semi-physical simulation
By encapsulating the algorithm model into an IP core of a programmable array logic device, and performing model-driven hardware resource mapping and comprehensive layout, the shortcomings of the FPGA simulation method in model processing and resource mapping are solved, and the simulation efficiency and accuracy are improved, and the simulation is met. The flexibility and real-time requirements for complex applications.
Patent Information
- Application Number
- CN202411149016.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-21
AI Technical Summary
The existing FPGA simulation methods have shortcomings in model processing, resource mapping, simulation efficiency and tool integration, and are difficult to meet the needs of complex algorithm models and high-performance computing, especially in terms of dynamic adjustment and real-time optimization. .
By encapsulating the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, the properties of the model variable are defined and divided into input/output ports, dynamically adjustable parameters and clock reset special signals, and model-driven Methods establish hardware resource mapping relationships, dynamically generate top-level design files for engineering configuration, and comprehensive layout and routing through preset design tools to generate bitstream files that can be run directly on FPGA.
It significantly improves simulation efficiency and accuracy, improves resource utilization and system performance, enhances design flexibility and adaptability, simplifies the development process, reduces manual intervention and errors, and meets the needs of complex application scenarios.
Smart Images

Figure CN118886374A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of simulation experiments, and in particular to a model processing method and device for an IP core used for semi-physical simulation. Background Art
[0002] In the current electronic design automation (EDA) and embedded system development, field programmable gate arrays (FPGAs) have become the first choice for various high-performance computing and real-time processing applications due to their high flexibility and reconfigurability. However, with the continuous increase in application requirements and the increase in algorithm complexity, how to efficiently perform semi-physical simulation of FPGAs has become an important technical challenge. Although the existing technology has made some progress in FPGA semi-physical simulation, it still has many shortcomings in model processing, resource mapping, simulation efficiency and flexibility.
[0003] First, existing FPGA simulation methods usually rely on manually writing hardware description language (HDL) code, such as Verilog or VHDL. This method not only has a long development cycle, but also requires high professional knowledge from developers. Developers need to have a detailed understanding of the FPGA's hardware architecture and design process in order to write efficient and accurate simulation code. For complex algorithm models, the process of manually writing HDL code is not only cumbersome, but also prone to errors, resulting in deviations between simulation results and actual operating results. In addition, existing FPGA simulation methods have significant deficiencies in packaging and reusability. Many algorithm models have similar logical structures in different application scenarios, but due to the lack of effective modularization and packaging mechanisms, developers need to write and debug simulation code separately for each specific application scenario. This not only increases the development workload, but is also not conducive to the reuse and maintenance of algorithm models.
[0004] Secondly, existing FPGA simulation methods are deficient in the processing and management of model variables. FPGA simulation models usually contain a large number of variables, which may include input / output ports, dynamically adjustable parameters, and special clock reset signals. Existing methods often lack effective classification and management mechanisms when processing these variables, resulting in complex relationships between variables and difficulty in maintenance and debugging. In addition, existing methods are also deficient in variable mapping and resource management. The allocation and management of FPGA hardware resources are the key to achieving efficient simulation, but existing methods usually rely on manual configuration and optimization by developers. This manual configuration is not only inefficient, but also difficult to ensure optimal resource utilization. Especially when faced with complex algorithm models and diverse hardware resources, how to effectively map and manage resources is a problem that is difficult to solve with existing simulation methods.
[0005] In terms of the generation and execution of simulation results, the existing technology mainly relies on static design and offline simulation. This traditional method can meet the simulation requirements of simple algorithm models to a certain extent, but for complex algorithm models with high real-time requirements, static design and offline simulation are obviously difficult to meet the requirements. Real-time simulation not only requires that the algorithm model can run efficiently on the FPGA, but also requires that the simulation results can be fed back and adjusted in time. The shortcomings of the existing methods in this regard lead to unsatisfactory real-time simulation results and are difficult to meet the needs of practical applications. In addition, the existing FPGA simulation tools and platforms are also insufficient in terms of integration and ease of use. Although some EDA tools provide basic functions of FPGA simulation, in actual use, the integration and ease of use of these tools still need to be improved. Developers need to switch between different tools, manually adjust and optimize the simulation process, which increases the complexity and workload of development. Especially when facing multiple heterogeneous platforms and complex algorithm models, the lack of effective integrated and automated simulation tools has seriously affected the efficiency and effect of FPGA simulation.
[0006] In addition, existing FPGA simulation methods also have deficiencies in dynamic adjustment and real-time optimization. In practical applications, the requirements for algorithm models and hardware resources often change dynamically, and fixed simulation strategies are difficult to cope with these changes. Existing methods lack effective dynamic adjustment and real-time optimization mechanisms, resulting in a lack of flexibility and adaptability in the simulation process, making it difficult to meet the needs of complex application scenarios. Especially in the face of high-performance computing and real-time processing applications, how to achieve dynamic adjustment and optimization of the simulation process is a problem that needs to be solved urgently in existing technologies.
[0007] In summary, the existing FPGA semi-physical simulation methods still have many shortcomings and challenges in terms of model processing, resource mapping, simulation efficiency and tool integration. Faced with increasingly complex application requirements and algorithm models, a more efficient, flexible and easy-to-use FPGA simulation method is urgently needed to improve simulation efficiency and accuracy and promote the further development of FPGA design and application. Summary of the invention
[0008] In view of the problems in the prior art, the present application provides a model processing method and device for an IP core for semi-physical simulation, which can effectively improve the simulation efficiency and accuracy.
[0009] In order to solve at least one of the above problems, the present application provides the following technical solutions:
[0010] In a first aspect, the present application provides a model processing method for an IP core for semi-physical simulation, comprising:
[0011] The algorithm model to be simulated is encapsulated into an algorithm IP core of a reusable programmable array logic device, the attributes of the model variables are defined in the algorithm description of the algorithm IP core, and the model variables are divided into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals;
[0012] Acquire the hardware resource description information of the programmable array logic device, establish a mapping relationship between the model variables and the hardware resource description information using a model-driven method based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device, and dynamically generate an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship;
[0013] The top-level design file is comprehensively laid out and routed through the preset design tool of the programmable array logic device, a corresponding bit stream file that can be directly run on the programmable array logic device is generated, and the bit stream file is downloaded to the target hardware platform to start running.
[0014] Furthermore, the algorithm model to be simulated is encapsulated into an algorithm IP core of a reusable programmable array logic device, and the attributes of the model variables are defined in the algorithm description of the algorithm IP core, including:
[0015] Constructing an algorithm model to be simulated in a preset modeling tool, and converting the algorithm model into an algorithm IP core that can be run on a programmable array logic device through a programmable array logic device-related tool;
[0016] In the description file of the algorithm IP core, attribute content is defined for each model variable, wherein the attribute content includes at least one of a variable name, a port direction, a data type, and an initial value.
[0017] Furthermore, the model variables are divided into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals, including:
[0018] Dividing the model variables into two categories: input / output ports and parameters, wherein the input / output ports are directly bound to the physical input / output channels of the hardware of the programmable array logic device for real-time data exchange;
[0019] The model variables of the parameter type are divided into two categories: dynamically adjustable parameters and clock reset special signals, wherein the dynamically adjustable parameters are mapped to the CPU register space through dynamic adjustment by software.
[0020] Furthermore, the model variables based on the algorithm IP core and the hardware resource description information of the programmable array logic device are used to establish a mapping relationship between the model variables and the hardware resource description information using a model-driven method, including:
[0021] Extracting detailed information of the model variables from the description file of the constructed algorithm IP core, and obtaining resource description information of the target programmable array logic device hardware platform;
[0022] A model-driven method is adopted to establish automatic mapping between the model variables and the hardware resources, wherein the model variables of the input / output port type are mapped to the corresponding hardware physical channels, the model variables of the dynamically adjustable parameter type are mapped to the register space accessible to the CPU, and the clock reset special information is mapped to the corresponding clock reset resource area.
[0023] Furthermore, the dynamically generating the engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship includes:
[0024] Generating a configurable description of a corresponding programmable array logic device project according to a mapping relationship between the model variables and the hardware resources;
[0025] The corresponding configurable top-level design file is obtained through the preset related tools of the programmable array logic device.
[0026] Furthermore, the top-level design file is subjected to comprehensive layout and routing by a preset design tool of the programmable array logic device to generate a corresponding bitstream file that can be directly run on the programmable array logic device, including:
[0027] Importing the top-level design file of the programmable array logic device into a preset design tool and converting it into a corresponding logic netlist;
[0028] The layout and routing process operation is performed through the logic netlist to obtain a corresponding bit stream file.
[0029] Further, downloading the bitstream file to the target hardware platform to start running includes:
[0030] Transmitting the bitstream file to a hardware platform of a corresponding target programmable array logic device;
[0031] The execution of the bitstream file is started on a hardware platform of the target programmable array logic device.
[0032] In a second aspect, the present application provides a model processing device for an IP core for semi-physical simulation, comprising:
[0033] A simulation model encapsulation module is used to encapsulate the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, define the attributes of the model variables in the algorithm description of the algorithm IP core, and divide the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals;
[0034] A mapping relationship building module, used to obtain the hardware resource description information of the programmable array logic device, establish a mapping relationship between the model variables and the hardware resource description information based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device by using a model-driven method, and dynamically generate an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship;
[0035] The file execution module is used to perform comprehensive layout and routing on the top-level design file through the preset design tool of the programmable array logic device, generate a corresponding bit stream file that can be directly run on the programmable array logic device, and download the bit stream file to the target hardware platform to start running.
[0036] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the model processing method of the IP core for semi-physical simulation are implemented.
[0037] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the model processing method of the IP core for semi-physical simulation.
[0038] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the model processing method of the IP core for semi-physical simulation.
[0039] It can be seen from the above technical scheme that the present application provides a model processing method and device for an IP core for semi-physical simulation, by encapsulating the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defining the attributes of the model variables in the algorithm description of the algorithm IP core, and dividing the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; the top-level design file is comprehensively laid out and routed through the preset design tool of the programmable array logic device, and the corresponding bitstream file that can be directly run on the programmable array logic device is generated, and the bitstream file is downloaded to the target hardware platform to start running, thereby effectively improving the simulation efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying any creative work.
[0041] Figure 1 This is one of the flow charts of the model processing method of the IP core for semi-physical simulation in the embodiment of the present application;
[0042] Figure 2 This is a second flow chart of a model processing method for an IP core used for semi-physical simulation in an embodiment of the present application;
[0043] Figure 3 The third flowchart of the model processing method of the IP core for semi-physical simulation in the embodiment of the present application;
[0044] Figure 4 This is a fourth flow chart of a model processing method for an IP core used for semi-physical simulation in an embodiment of the present application;
[0045] Figure 5 FIG5 is a flow chart of a model processing method for an IP core used for semi-physical simulation in an embodiment of the present application;
[0046] Figure 6 This is a sixth flow chart of a model processing method for an IP core used for semi-physical simulation in an embodiment of the present application;
[0047] Figure 7 FIG7 is a flow chart of a model processing method for an IP core used for semi-physical simulation in an embodiment of the present application;
[0048] Figure 8 It is a structural diagram of a model processing device of an IP core used for semi-physical simulation in an embodiment of the present application;
[0049] Fig. 9 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application.
[0050] Reference numerals:
[0051] Electronic device 9600, central processing unit 9100, memory 9140, communication module 9110, input unit 9120, audio processor 9130, display 9160, power supply 9170, buffer memory 9141, application / function storage unit 9142, data storage unit 9143, driver program storage unit 9144, antenna 9111, speaker 9131, microphone 9132. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0054] In view of the problems existing in the prior art, the present application provides a model processing method and device for an IP core for semi-physical simulation, which encapsulates an algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defines the attributes of model variables in the algorithm description of the algorithm IP core, and divides the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; the top-level design file is comprehensively laid out and routed through a preset design tool of the programmable array logic device, a corresponding bitstream file that can be directly run on the programmable array logic device is generated, and the bitstream file is downloaded to a target hardware platform to start running, thereby effectively improving the simulation efficiency and accuracy.
[0055] In order to effectively improve the simulation efficiency and accuracy, the present application provides an embodiment of a model processing method for an IP core for semi-physical simulation, see Figure 1 The model processing method of the IP core for semi-physical simulation specifically includes the following contents:
[0056] Step S101: Encapsulating the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defining the attributes of the model variables in the algorithm description of the algorithm IP core, and dividing the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals;
[0057] Optionally, in this embodiment, in step S101, the system first encapsulates the algorithm model to be simulated into a reusable algorithm IP core of a programmable array logic device (FPGA). The specific technical process of implementation includes the following steps: First, the designer uses a hardware description language (such as VHDL, Verilog) or a high-level synthesis tool (such as HLS) to convert the algorithm model into a hardware-implementable description. Next, the designer defines the attributes of the model variables in the algorithm description and divides these variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals. The input / output ports are used for data transmission, the dynamically adjusted parameters are used to adjust the algorithm behavior at runtime, and the clock reset special signal is used to control the timing and state reset of the IP core. After completing these steps, the designer synthesizes and verifies the algorithm description to ensure that it can be correctly mapped to the resources of the FPGA, and finally generates a reusable algorithm IP core.
[0058] In terms of technical principles, step S101 utilizes the modeling capabilities of hardware description languages and the flexible configuration features of FPGAs. Hardware description languages allow designers to define the behavior and interface of algorithms in a structured manner, and convert these high-level descriptions into low-level logic circuits through synthesis tools. Defining the attributes and classification of model variables is to clarify the input-output relationship and adjustable parameters of the algorithm, which helps to improve the flexibility and reusability of the IP core. The setting of the clock reset special signal is to ensure the timing and state control of the IP core in different operating environments, and to ensure its stability and reliability.
[0059] In terms of the technical problems solved, step S101 mainly solves the problem of converting the algorithm model to hardware implementation. The algorithm model usually exists in the form of high-level mathematical or behavioral descriptions, while FPGA implementation requires low-level logic circuit representation. Through hardware description language and synthesis tools, the system can convert high-level algorithm models into low-level hardware representations. In addition, by defining and classifying model variables, the system can clarify the interface and parameter settings of the algorithm, enhancing the flexibility and reusability of the IP core. The setting of the clock reset special signal solves the timing and state control problems of the IP core in different operating environments, ensuring its stability and reliability.
[0060] In terms of the technical effects achieved, through step S101, the system can generate an efficient, flexible and reusable algorithm IP core. The algorithm IP core not only refines the hardware implementation of the algorithm model, but also enhances its adaptability and adjustability through clear interface and parameter settings. The setting of the clock reset special signal ensures the stability and reliability of the IP core in different operating environments. Through efficient hardware description and synthesis technology, the design efficiency and reliability are improved, laying a solid foundation for subsequent FPGA implementation and system integration.
[0061] For example, suppose a team is developing a filtering algorithm for digital signal processing. In step S101, the team first uses VHDL to describe the filtering algorithm as a hardware-implementable module. In this description, they define dynamically adjustable parameters such as data input ports, data output ports, filter coefficients, and clock and reset signals. The data input port is used to transmit the signal data to be processed, and the data output port is used to output the processed signal. The filter coefficient as a dynamically adjustable parameter allows the characteristics of the filter to be adjusted at runtime, while the clock and reset signals are used to control the timing and state reset of the module. After completing these definitions, the team uses a synthesis tool to convert the VHDL description into a logic circuit that can be implemented by FPGA, and performs simulation and verification to ensure the correct implementation of the filtering algorithm on hardware. In the end, the team generated a reusable filtering algorithm IP core that can be reused in different projects and the filter coefficients and other parameters can be adjusted as needed.
[0062] In summary, through step S101, the system can convert the high-level algorithm model into a low-level hardware description and generate an efficient, flexible and reusable algorithm IP core. This process not only improves the design efficiency and reliability, but also provides a solid foundation for FPGA implementation and system integration. Through clear interface and parameter settings, the algorithm IP core can adapt to different application requirements and enhance the flexibility and scalability of the system. The setting of the clock reset special signal ensures the stability and reliability of the IP core in different operating environments, providing strong support for the efficient operation and performance optimization of the system.
[0063] Step S102: acquiring hardware resource description information of the programmable array logic device, establishing a mapping relationship between the model variables and the hardware resource description information using a model-driven method based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device, and dynamically generating an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship;
[0064] Optionally, in this embodiment, in step S102, the system obtains the hardware resource description information of the programmable array logic device (FPGA), and based on the model variables of the algorithm IP core and these hardware resource description information, uses a model-driven method to establish a mapping relationship between the two. The specific technical process of implementation includes the following steps: First, the system obtains the hardware resource description information from the resource management tool or document of the FPGA, which usually includes the detailed specifications and available quantities of resources such as logic units, memory blocks, DSP blocks, and I / O pins. Next, the system analyzes the model variables of the algorithm IP core, which have been clearly classified into input / output ports, dynamically adjustable parameters, and clock reset special signals in step S101. Based on this information, the system uses a model-driven method to establish a mapping relationship between the model variables and the FPGA hardware resources, ensuring that each model variable can be effectively allocated to the specific hardware resources of the FPGA. Finally, the system dynamically generates an engineering configurable top-level design file of the FPGA based on the established mapping relationship, which is used to guide the final configuration and implementation of the FPGA.
[0065] In terms of technical principles, step S102 utilizes the technologies of model-driven engineering (MDE) and hardware description language (HDL). The model-driven engineering method can effectively map the abstract algorithm model to specific hardware resources through high-level model description and automated model conversion. The hardware description language is used to generate a specific top-level design file, which describes all the resources and connection information required for FPGA configuration. Through the model-driven method, the system can automatically convert the high-level description of the algorithm IP core into a specific hardware implementation, reducing manual intervention and errors, and improving design efficiency and accuracy.
[0066] In terms of the technical problems to be solved, step S102 mainly solves the problem of effective mapping between the model variables of the algorithm IP core and the hardware resources of the FPGA. The hardware resources of the FPGA are limited and complex. How to efficiently map the model variables of the algorithm IP core to these resources is a key problem that must be solved in the design process. By obtaining the hardware resource description information, the system can fully understand the resource status of the FPGA; through the model-driven method, the system can automatically establish the mapping relationship between the model variables and the hardware resources, ensuring that the algorithm IP core can efficiently utilize the resources of the FPGA. In addition, the dynamic generation of the top-level design file further ensures the flexibility and adjustability of the design, and can quickly adapt to different application requirements and hardware platforms.
[0067] In terms of the technical effects achieved, through step S102, the system can efficiently and accurately establish the mapping relationship between the algorithm IP core model variables and the FPGA hardware resources, and dynamically generate the engineering configurable top-level design file based on this mapping relationship. This not only ensures that the algorithm IP core can fully utilize the hardware resources of the FPGA, improves resource utilization and system performance, but also reduces manual intervention and errors in the design process through an automated model-driven method, thereby improving design efficiency and reliability. The dynamically generated top-level design file can quickly adapt to different application requirements and hardware platforms, enhancing the flexibility and scalability of the system.
[0068] For example, suppose a team is developing an algorithm IP core for image processing. The team first obtains the FPGA hardware resource description information from the FPGA resource management tool, including available logic units, memory blocks, DSP blocks, and I / O pins. Next, the team analyzes the model variables of the algorithm IP core, such as the input / output ports of image data, filter parameters, clock and reset signals, etc. Based on this information, the team uses a model-driven approach to establish a mapping relationship between model variables and FPGA hardware resources. For example, the input port of image data is mapped to a specific I / O pin, the filter parameters are mapped to a programmable memory block, and the clock and reset signals are mapped to the global clock network. After the mapping relationship is established, the system dynamically generates the top-level design file of the FPGA based on this mapping relationship. The file describes in detail the allocation and connection information of all resources. Finally, the team uses this top-level design file to configure and implement the FPGA to ensure that the image processing algorithm can run efficiently on the FPGA.
[0069] In short, through step S102, the system can efficiently and accurately establish the mapping relationship between the algorithm IP core model variables and the FPGA hardware resources, and dynamically generate the engineering configurable top-level design file. This process not only improves the design efficiency and accuracy, but also ensures that the algorithm IP core can make full use of the hardware resources of the FPGA, improves system performance and resource utilization. Through the automated model-driven method, manual intervention and errors are reduced, and the reliability and flexibility of the design are further improved. The dynamically generated top-level design file can quickly adapt to different application requirements and hardware platforms, providing strong support for the efficient operation and performance optimization of the system.
[0070] Step S103: Perform comprehensive layout and routing on the top-level design file through the preset design tool of the programmable array logic device, generate a corresponding bitstream file that can be directly run on the programmable array logic device, and download the bitstream file to the target hardware platform to start running.
[0071] Optionally, in this embodiment, in step S103, the system synthesizes, lays out and routes the previously generated top-level design file through the preset design tool of the programmable array logic device (FPGA), and finally generates a bitstream file that can be directly run on the FPGA. The specific technical process of implementation includes the following steps: First, the designer imports the top-level design file into the design tool of the FPGA, which usually includes a synthesis tool, a layout and routing tool, and a bitstream generation tool. The synthesis tool will first process the top-level design file, convert the high-level hardware description into a low-level logic gate circuit, and perform resource allocation and optimization. Next, the layout and routing tool will specifically layout the hardware resources such as logic units, registers, I / O pins on the FPGA chip according to the synthesis results, and determine the connection path between each unit. Finally, the bitstream generation tool generates a bitstream file for configuring the FPGA according to the layout and routing results. The generated bitstream file contains all the information about the FPGA configuration and can be directly downloaded to the target hardware platform to start running.
[0072] In terms of technical principles, step S103 utilizes the synthesis, layout and routing algorithms of the FPGA design tool. These algorithms ensure the efficient implementation of the design on the FPGA by optimizing the hardware description. The synthesis algorithm converts the high-level hardware description into a low-level logic circuit, and performs resource allocation and optimization to improve the efficiency and performance of the design. The layout algorithm is responsible for allocating the location of each logic unit on the FPGA chip to ensure the rational use of resources and minimize delays. The routing algorithm determines the connection path between each logic unit to ensure the reliability and speed of signal transmission. Finally, the bitstream generation algorithm integrates all this information into a bitstream file for configuring the FPGA.
[0073] In terms of the technical problems solved, step S103 mainly solves the conversion problem from the top-level design file to the executable bitstream file. Although the top-level design file contains all the information of the design, it is still necessary to convert this information into specific hardware implementation through synthesis, layout and routing algorithms. Through the synthesis tool, the system can optimize the high-level design description into a low-level logic circuit and allocate resources. The layout and routing tool ensures the reasonable distribution of logic units and connection paths, and optimizes the performance and resource utilization of the design. Finally, the bitstream generation tool integrates all this information into a bitstream file to ensure that the design can run correctly on the FPGA.
[0074] In terms of the technical effects achieved, through step S103, the system can generate an efficient and reliable bitstream file and download it to the target hardware platform for operation. First, through the optimization of the synthesis tool, the design can be efficiently implemented on the FPGA, improving the performance and resource utilization of the system. The layout and routing tool ensures the reasonable distribution of logic units and connection paths, further optimizing the performance and reliability of the design. The bitstream file finally generated contains all the information of the FPGA configuration and can be run directly on the hardware platform to ensure the correct implementation and stable operation of the design. Through the automated processing of these tools, manual intervention and errors in the design process are greatly reduced, improving the design efficiency and reliability.
[0075] For example, suppose a team is developing a real-time video processing system. In step S103, they first import the previously generated top-level design file into the FPGA design tool. The synthesis tool processes the top-level design file, converts the high-level design description into a specific logic circuit, and optimizes it. Next, the layout and routing tool allocates the location of the logic unit on the FPGA chip and determines the connection path between each unit to ensure the reliability and speed of signal transmission. Finally, the bitstream generation tool generates a bitstream file based on the layout and routing results, which contains all the information about the FPGA configuration. The team downloads the generated bitstream file to the target hardware platform and starts the video processing system to ensure that the system can process video data in real time and meet performance requirements.
[0076] In short, through step S103, the system can efficiently and accurately convert the top-level design file into an executable bitstream file, and download it to the target hardware platform for operation. This process not only improves the design efficiency and accuracy, but also ensures the efficient implementation and stable operation of the design on the FPGA. Through the automated processing of synthesis, placement and routing tools, manual intervention and errors in the design process are greatly reduced, further improving the reliability and performance of the design. The bitstream file finally generated can quickly adapt to different application requirements and hardware platforms, providing strong support for the efficient operation and performance optimization of the system.
[0077] From the above description, it can be seen that the model processing method of the IP core for semi-physical simulation provided by the embodiment of the present application can encapsulate the algorithm model to be simulated into a reusable algorithm IP core of a programmable array logic device, define the attributes of the model variables in the algorithm description of the algorithm IP core, and divide the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; the top-level design file is comprehensively laid out and routed through the preset design tool of the programmable array logic device, and the corresponding bitstream file that can be directly run on the programmable array logic device is generated, and the bitstream file is downloaded to the target hardware platform to start running, thereby effectively improving the simulation efficiency and accuracy.
[0078] In one embodiment of the model processing method of the IP core for semi-physical simulation of the present application, see Figure 2 , and can also include the following:
[0079] Step S201: constructing an algorithm model to be simulated in a preset modeling tool, and converting the algorithm model into an algorithm IP core that can be run on a programmable array logic device through a programmable array logic device-related tool;
[0080] Step S202: defining attribute content for each model variable in the description file of the algorithm IP core, wherein the attribute content includes at least one of a variable name, a port direction, a data type, and an initial value.
[0081] Optionally, in this embodiment, in step S201, the system constructs an algorithm model to be simulated in a preset modeling tool, and converts the algorithm model into an algorithm IP core that can run on the FPGA through a programmable array logic device (FPGA) design tool. The specific technical process of implementation includes the following steps: First, the designer uses a graphical interface or programming language in the modeling tool to construct the algorithm model to be simulated. This model can include various signal processing, control logic or data processing algorithms, and the construction of the model usually needs to consider factors such as input and output, timing constraints and resource requirements. Next, the designer exports the constructed algorithm model and converts it into a hardware description language (HDL) code through the FPGA design tool. This step involves the synthesis and optimization of the model, converting the high-level algorithm description into a low-level logic circuit to adapt to the hardware architecture of the FPGA. Finally, the generated HDL code is encapsulated as an algorithm IP core for subsequent design and simulation.
[0082] In terms of technical principles, step S201 utilizes the technologies of model-driven design (MDD) and hardware description language (HDL). The model-driven design method can intuitively express complex algorithm logic and data flow through high-level abstract models. FPGA design tools convert these high-level models into low-level hardware descriptions, and generate logic circuits that conform to the FPGA hardware architecture through synthesis and optimization. Hardware description languages (such as VHDL or Verilog) are used to describe these logic circuits so that they can be implemented on FPGAs. In this way, designers can quickly and accurately convert algorithm models into executable hardware IP cores.
[0083] In terms of the technical problems solved, step S201 mainly solves the conversion problem from high-level algorithm models to low-level hardware implementations. Although building a high-level algorithm model is intuitive and easy to understand, it is a challenge to efficiently convert it into hardware implementation on FPGA. By using preset modeling tools and FPGA design tools, the system can automatically perform model conversion and optimization, reducing manual intervention and errors. In addition, the generated algorithm IP core encapsulates the specific hardware implementation details, making subsequent design and simulation easier.
[0084] In terms of the technical effects achieved, through step S201, the system can quickly and accurately convert the high-level algorithm model into an algorithm IP core that can run on FPGA. First, through the graphical interface or programming language of the modeling tool, the designer can intuitively build a complex algorithm model, which improves the design efficiency. Then, through the synthesis and optimization of the FPGA design tool, the system can automatically convert the high-level model into a low-level hardware description, improving the accuracy and performance of the design. The algorithm IP core finally generated encapsulates the specific hardware implementation details, which is convenient for subsequent design, simulation and verification, and ensures the efficient implementation and stable operation of the system.
[0085] For example, suppose a team is developing an algorithm for audio signal processing. In step S201, they first build an audio signal processing algorithm model in a modeling tool, including modules such as filters, amplifiers, and equalizers. Next, the team exports the built algorithm model and converts it into HDL code through an FPGA design tool. The HDL code is synthesized and optimized to generate logic circuits that conform to the FPGA architecture. Finally, these logic circuits are packaged as algorithm IP cores for subsequent design and simulation. With this approach, the team can quickly and accurately convert the audio signal processing algorithm model into a hardware implementation that can run on the FPGA, ensuring efficient operation and performance optimization of the system.
[0086] In step S202, the system defines the attribute content for each model variable in the description file of the algorithm IP core. The specific technical process of implementation includes the following steps: First, the designer analyzes the model variables in the algorithm IP core and determines the attribute content of each variable. These attribute contents include variable name, port direction, data type and initial value, etc. Then, the designer defines the attribute content for each model variable in the description file of the algorithm IP core according to the preset format. The variable name is used to identify the variable, the port direction indicates whether the variable is input or output, the data type defines the data format of the variable, and the initial value specifies the initial state of the variable. Finally, the system generates a description file containing these attribute contents to ensure the correct implementation and operation of the algorithm IP core on the FPGA.
[0087] In terms of technical principles, step S202 utilizes the technology of hardware description language (HDL) and modular design. The hardware description language is used to define the logic circuit and variable properties of the algorithm IP core, and ensures the accuracy of hardware implementation by accurately describing the property content of each variable. Modular design improves the maintainability and scalability of the design by decomposing the complex system into multiple modules, each of which independently defines properties and functions. In this way, the system can automatically generate variable property description files, reduce manual intervention and errors, and ensure the efficient implementation of the design.
[0088] In terms of the technical problems solved, step S202 mainly solves the problem of defining the variable attributes of the algorithm IP core. The variable attributes in the algorithm IP core are crucial for hardware implementation, and how to accurately define these attributes is a key link in the design process. By defining the variable attribute content in the description file, the system can ensure the correct implementation and operation of each variable on the FPGA. In addition, the automatic generation of description files reduces the complexity and errors of manual definition and improves the efficiency and accuracy of the design.
[0089] In terms of the technical effects achieved, through step S202, the system can accurately define the attribute content of the algorithm IP core variables to ensure the correctness of the hardware implementation and the stability of the operation. First, by defining the attribute content such as variable name, port direction, data type and initial value, the system can accurately describe the function and state of each variable to ensure the accuracy of the design. Then, by automatically generating description files, the complexity and errors of manual definition are reduced, and the design efficiency and reliability are improved. The description file finally generated ensures the correct implementation and operation of the algorithm IP core on the FPGA, providing strong support for the efficient implementation and performance optimization of the system.
[0090] For example, suppose a team is developing an algorithm IP core for image processing. In step S202, they first analyze the model variables in the algorithm IP core and determine the attribute content of each variable. Then, the team defines the attribute content for each model variable in the description file according to the preset format. For example, the variable "pixel_data" is defined as an input port, the data type is an 8-bit unsigned integer, and the initial value is 0; the variable "filter_coeff" is defined as a programmable parameter, the data type is a 32-bit floating point number, and the initial value is 1.0. In this way, the team can accurately define the attribute content of the algorithm IP core variables to ensure the correctness of the hardware implementation and the stability of the operation.
[0091] In summary, through steps S201 and S202, the system can efficiently and accurately convert high-level algorithm models into algorithm IP cores that can run on FPGA, and define attribute content for each model variable. This process not only improves design efficiency and accuracy, but also ensures the correctness of hardware implementation and operational stability. Through the use of automated tools, manual intervention and errors are reduced, further improving the efficiency and reliability of the design. The generated algorithm IP core and description files provide strong support for the efficient implementation and performance optimization of the system.
[0092] In one embodiment of the model processing method of the IP core for semi-physical simulation of the present application, see Figure 3 , and can also include the following:
[0093] Step S301: Divide the model variables into two categories: input / output ports and parameters, wherein the input / output ports are directly bound to the physical input / output channels of the hardware of the programmable array logic device for real-time data exchange;
[0094] Step S302: Divide the model variables of the parameter type into two categories: dynamically adjustable parameters and clock reset special signals, wherein the dynamically adjustable parameters are dynamically adjusted and mapped to the CPU register space through software.
[0095] Optionally, in this embodiment, in step S301, the system divides the model variables into two categories: input / output ports and parameters, each of which has different functions. The specific technical process of implementation includes the following steps: First, the designer classifies all variables in the model and determines which variables need to be used as input / output ports and which variables are used as parameters. The input / output port variables are directly bound to the hardware physical input and output channels of the FPGA for real-time data exchange. These ports usually include sensor inputs, control signal outputs, etc., to ensure that the system can communicate with external devices in real time. The parameter variables are used to configure and control the internal behavior of the system, including various algorithm parameters and control parameters. Through this division, the system can effectively manage and use model variables and improve the clarity and maintainability of the design.
[0096] In terms of technical principles, step S301 utilizes the port mapping and parameterized design technologies in hardware design. Port mapping technology associates the input / output port variables in the design with the physical pins of the FPGA to achieve communication between the design and external hardware. Parameterized design technology enables the design to be configured and adjusted according to different application requirements by defining flexible parameters. The combination of these two technologies enables the design to achieve real-time data exchange and flexibly adjust the internal behavior of the system, achieving an efficient and flexible design effect.
[0097] In terms of the technical problems solved, step S301 mainly solves the problems of model variable management and real-time data exchange. If the model variables are not reasonably classified and managed, the design complexity will increase, making it difficult to maintain and debug. By dividing the variables into two categories, input / output ports and parameters, the system can manage the variables more clearly and improve the readability and maintainability of the design. In addition, by binding the input / output ports to the physical channels of the FPGA, the system can achieve real-time data exchange with external devices to meet various application requirements.
[0098] In terms of the technical effects achieved, through step S301, the system can effectively manage model variables and achieve high efficiency and flexibility in design. First, through reasonable variable division, designers can clearly understand and manage various parts of the system, improving the maintainability and scalability of the design. Then, through port mapping technology, the system can achieve real-time data exchange with external devices to ensure the real-time performance and reliability of the system. Finally, through parametric design technology, the system can flexibly adjust internal parameters to meet different application requirements and improve the flexibility and adaptability of the design.
[0099] For example, suppose a team is developing a real-time image processing system. In step S301, they first classify the variables in the model, and use variables such as image data input and processing result output as input / output ports, which are bound to the physical pins of the FPGA to achieve real-time data exchange with the camera and display. At the same time, variables such as filter coefficients and thresholds are used as parameters to configure the image processing algorithm. Through this division, the team can clearly manage variables and improve the maintainability and real-time performance of the design.
[0100] In step S302, the system further divides the model variables of parameter type into two categories: dynamically adjustable parameters and clock reset special signals. The specific technical process of implementation includes the following steps: First, the designer analyzes the parameter variables to determine which parameters need to be dynamically adjusted at runtime and which are clock reset special signals. Dynamically adjustable parameters are dynamically adjusted by software. These parameters are usually mapped to the register space of the CPU. Designers can modify these parameters in real time through the software interface to adjust the behavior of the system. The clock reset special signal is used to control the clock and reset logic of the system to ensure the stable operation of the system. Through this division, the system can flexibly adjust the operating parameters while ensuring the reliability of the clock and reset signals.
[0101] In terms of technical principles, step S302 utilizes the technologies of dynamic parameter adjustment and clock reset control. The dynamic parameter adjustment technology maps the parameters to the register space of the CPU through the software interface, allowing designers to modify the parameters in real time and improve the flexibility of the system. The clock reset control technology ensures the reliability of the system's clock and reset signals to prevent the system from being unstable or erroneous during operation. Through the combination of these two technologies, the system can flexibly adjust the operating parameters while ensuring stable operation, achieving an efficient and reliable design effect.
[0102] In terms of the technical problems to be solved, step S302 mainly solves the problems of dynamic parameter adjustment and clock reset control. Parameters may need to be adjusted according to actual needs during the design and operation process. If they cannot be adjusted dynamically, the flexibility of the design will be reduced. By mapping dynamically adjustable parameters to the CPU register space, the system can modify parameters in real time to meet the needs of different applications. In addition, the clock and reset signals are crucial to the stable operation of the system. By treating these signals as special signals, the system can ensure its reliability and stability.
[0103] In terms of the technical effects achieved, through step S302, the system can flexibly adjust the operating parameters while ensuring the reliability of the clock and reset signals. First, through the dynamic parameter adjustment technology, designers can modify the system parameters in real time to improve the flexibility and adaptability of the design. Then, through the clock reset control technology, the system can ensure the reliability of the clock and reset signals to prevent instability or errors during operation. Finally, through reasonable parameter division and management, the system can operate efficiently and reliably, meet different application requirements, and improve the performance and stability of the design.
[0104] For example, suppose a team is developing an adaptive filter system. In step S302, they first divide the filter coefficients and other parameters into dynamically adjustable parameters, and map them to the CPU register space through the software interface. Designers can modify these parameters in real time to adapt to different signal environments. At the same time, the system's clock signal and reset signal are processed as special signals to ensure the stable operation of the system. Through this division, the team can flexibly adjust the filter parameters, improve the adaptability and performance of the system, and ensure the stability and reliability of the system.
[0105] In summary, through steps S301 and S302, the system can efficiently and reliably manage and use model variables to achieve high efficiency and flexibility in the design. Through reasonable variable division and dynamic adjustment technology, the system can meet different application requirements and improve the performance and adaptability of the design. At the same time, by ensuring the reliability of the clock and reset signals, the system can run stably to prevent instability or errors during operation. Finally, the generated design provides strong support for the efficient implementation and performance optimization of the system.
[0106] In one embodiment of the model processing method of the IP core for semi-physical simulation of the present application, see Figure 4 , and can also include the following:
[0107] Step S401: extracting detailed information of the model variables from the description file of the constructed algorithm IP core, and acquiring resource description information of the target programmable array logic device hardware platform;
[0108] Step S402: Use a model-driven method to establish automatic mapping between the model variables and the hardware resources, wherein the model variables of the input / output port type are mapped to the corresponding hardware physical channels, the model variables of the dynamically adjustable parameter type are mapped to the register space accessible to the CPU, and the clock reset special information is mapped to the corresponding clock reset resource area.
[0109] Optionally, in this embodiment, in step S401, the system extracts detailed information of the model variables from the description file of the constructed algorithm IP core, and obtains the resource description information of the target programmable array logic device hardware platform. The specific technical process of implementation includes the following steps: First, the system parses the description file of the algorithm IP core, which usually uses a standard hardware description language (such as VHDL or Verilog) or a high-level description language (such as HLS). During the parsing process, the system extracts the detailed information of the model variables, including the type, name, bit width, etc. of the variables. Then, the system obtains the resource description information of the target FPGA hardware platform, which is usually provided by the FPGA manufacturer and includes the number, type and distribution of hardware resources. Through the above steps, the system can fully understand the detailed information of the algorithm IP core and the target hardware platform, laying the foundation for subsequent steps.
[0110] In terms of technical principles, step S401 utilizes the technologies of hardware description language parsing and hardware resource description. Hardware description language parsing technology is used to extract model variable information in the algorithm IP core. By parsing the description file, the system can accurately obtain the type, name and other attributes of the variable. Hardware resource description technology is used to obtain the resource information of the target FPGA platform. By reading the resource description file provided by the manufacturer, the system can understand the resource distribution and availability of the hardware platform. The combination of these two technologies enables the system to fully grasp the detailed information of the algorithm and hardware platform, laying the foundation for subsequent automatic mapping.
[0111] In terms of the technical problems solved, step S401 mainly solves the problem of extracting algorithm IP core variable information and obtaining hardware platform resources. Algorithm IP cores usually contain a large number of variables. If there is no automated parsing method, manually extracting this information will be very cumbersome and prone to errors. By adopting hardware description language parsing technology, the system can automatically extract variable information to improve efficiency and accuracy. In addition, the resource information of the hardware platform is crucial to the mapping process. If there is a lack of detailed resource description, the mapping process will not be able to proceed. By obtaining resource description information, the system can fully grasp the resource situation of the hardware platform and provide support for automatic mapping.
[0112] In terms of the technical effects achieved, through step S401, the system can efficiently and accurately extract the variable information of the algorithm IP core and fully understand the resource situation of the target hardware platform. First, through the automated hardware description language parsing technology, the system can efficiently extract variable information and improve work efficiency and accuracy. Then, by obtaining detailed hardware resource description information, the system can fully understand the resource distribution and availability of the hardware platform, providing support for the subsequent mapping process. Finally, through the combination of these two links, the system can fully grasp the detailed information of the algorithm and hardware platform, laying the foundation for efficient automatic mapping.
[0113] For example, suppose a team is developing a real-time signal processing system. In step S401, they first parse the description file of the algorithm IP core and extract detailed information about variables such as input signals, output signals, and filter coefficients in the signal processing algorithm. Next, they obtain the resource description information of the target FPGA platform to understand the logic units, storage resources, and I / O channels available on the hardware platform. Through these steps, the team can fully grasp the detailed information of the algorithm and hardware platform and prepare for subsequent mapping work.
[0114] In step S402, the system uses a model-driven method to establish an automatic mapping between model variables and hardware resources. The specific technical process includes the following steps: First, the system establishes a mapping relationship between variables and resources based on the model variables and hardware resource information extracted in step S401. Model variables of input / output port type are mapped to corresponding hardware physical channels. Through this mapping, the system can achieve real-time data exchange with external devices. Model variables of dynamically adjustable parameter types are mapped to register spaces accessible to the CPU, and these parameters can be dynamically adjusted through software interfaces during runtime. Clock reset special information is mapped to the corresponding clock reset resource area. Through this mapping, the system can ensure the reliability of clock and reset signals. Through the above steps, the system can achieve automatic mapping between model variables and hardware resources, and improve the efficiency and accuracy of the design.
[0115] In terms of technical principles, step S402 utilizes the model-driven method and automatic mapping technology. The model-driven method enables the design to automatically match hardware resources and improve design efficiency by establishing a mapping relationship between variables and resources. The automatic mapping technology maps model variables to corresponding hardware resources through predefined rules and algorithms to ensure the accuracy and efficiency of the mapping process. The combination of these two technologies enables the system to efficiently and accurately realize the mapping of model variables to hardware resources, thereby improving the automation and efficiency of the design.
[0116] In terms of the technical problems solved, step S402 mainly solves the problem of mapping model variables to hardware resources. The matching of model variables and hardware resources is a key link in the design. Without automated mapping methods, manual mapping will be very cumbersome and prone to errors. By adopting model-driven methods and automatic mapping technology, the system can automatically establish a mapping relationship between variables and resources, improving mapping efficiency and accuracy. In addition, through reasonable mapping rules and algorithms, the system can ensure the reliability and efficiency of the mapping process to meet design requirements.
[0117] In terms of the technical effects achieved, through step S402, the system can efficiently and accurately realize the mapping of model variables and hardware resources, and improve the automation and efficiency of the design. First, through the model-driven method, the system can automatically establish the mapping relationship between variables and resources, and improve the efficiency and accuracy of the design. Then, through the automatic mapping technology, the system can efficiently and accurately map the model variables to the corresponding hardware resources, and improve the reliability and efficiency of the mapping. Finally, through the combination of these two links, the system can realize the efficient mapping of model variables and hardware resources, and improve the automation and efficiency of the design.
[0118] For example, suppose a team is developing an adaptive filter system. In step S402, they first use a model-driven approach to establish a mapping relationship between variables such as filter coefficients, input signals, and output signals and hardware resources. Input signals and output signals are mapped to the physical I / O channels of the FPGA, filter coefficients are mapped to the register space accessible to the CPU, and clock signals and reset signals are mapped to the corresponding hardware resource areas. Through these steps, the team can efficiently and accurately realize the mapping of model variables to hardware resources, improving the real-time performance and flexibility of the system.
[0119] In summary, through steps S401 and S402, the system can efficiently and accurately extract the variable information of the algorithm IP core and realize the automatic mapping of model variables and hardware resources. Through reasonable technical means and processes, the system can improve the automation and efficiency of the design, meet the needs of different applications, and improve the performance and adaptability of the design. Finally, the generated design scheme provides strong support for the efficient implementation and performance optimization of the system.
[0120] In one embodiment of the model processing method of the IP core for semi-physical simulation of the present application, see Figure 5 , and can also include the following:
[0121] Step S501: generating a configurable description of a corresponding programmable array logic device project according to a mapping relationship between the model variables and the hardware resources;
[0122] Step S502: Obtain a corresponding configurable top-level design file through a preset tool of a programmable array logic device.
[0123] Optionally, in this embodiment, in step S501, the system generates a configurable description of the corresponding programmable array logic device project based on the mapping relationship between the model variables and the hardware resources. The specific technical process of the implementation includes the following steps: First, the system uses the mapping relationship between the model variables and the hardware resources established in the previous step, and these relationships describe in detail the specific location and configuration of each model variable in the hardware resources. Then, the system generates a configurable description file of the programmable array logic device project based on these mapping relationships. These files usually use a standard hardware description language (such as VHDL or Verilog) or a configuration script format. The generated description file defines in detail the implementation method of each model variable in the hardware, including the connection of the input and output ports, the configuration of the registers, the management of the clock and reset signals, etc. Through the above steps, the system can generate a hardware configuration file for implementing the algorithm, laying the foundation for subsequent hardware design and implementation.
[0124] In terms of technical principles, step S501 utilizes the technology of hardware description language generation and configuration file generation. The hardware description language generation technology automatically generates the corresponding hardware description file by parsing the mapping relationship between model variables and hardware resources. These files describe various aspects of hardware design in detail, including logical connections, resource allocation, and signal management. The configuration file generation technology generates configuration files that conform to specific formats and specifications through predefined templates and rules. The combination of these two technologies enables the system to efficiently and accurately generate configuration descriptions for hardware design, providing support for subsequent hardware implementation.
[0125] In terms of the technical problems solved, step S501 mainly solves the problem of realizing the mapping relationship between model variables and hardware resources and generating hardware configuration files. The mapping relationship between model variables and hardware resources is the key to the design. If there is no automated generation method, manually writing hardware description files will be very cumbersome and prone to errors. By adopting hardware description language generation technology, the system can automatically generate corresponding hardware description files to improve efficiency and accuracy. In addition, through configuration file generation technology, the system can generate configuration files that meet specific formats and specifications to ensure the correctness and consistency of hardware design.
[0126] In terms of the technical effects achieved, through step S501, the system can efficiently and accurately generate a configuration description file for hardware design. First, through the automated hardware description language generation technology, the system can efficiently and accurately generate a hardware description file, improving design efficiency and accuracy. Then, through the configuration file generation technology, the system can generate a configuration file that conforms to a specific format and specification to ensure the correctness and consistency of the hardware design. Finally, through the combination of these two links, the system can generate a hardware configuration file for implementing the algorithm, laying the foundation for subsequent hardware design and implementation.
[0127] For example, let's assume that a team is developing an image processing system. In step S501, they first use the mapping relationship between model variables and hardware resources established in the previous step to generate the hardware configuration description file of the image processing algorithm. These files define in detail how the input image signal, output processing results, filter parameters, etc. are implemented in hardware. Through these steps, the team can generate a hardware configuration file for implementing the image processing algorithm, laying the foundation for subsequent hardware design and implementation.
[0128] In step S502, the system obtains the corresponding configurable top-level design file through the preset tool of the programmable array logic device. The specific technical process of implementation includes the following steps: First, the system uses the preset tool of the programmable array logic device (such as Xilinx's Vivado or Intel's Quartus) to import the hardware configuration description file generated in step S501. These tools usually provide a graphical interface and an automated script interface, which can easily import and manage hardware configuration files. Then, the system uses the preset tool to generate the corresponding configurable top-level design file, which usually adopts the hardware description language or configuration script format, and defines the structure and configuration of the entire hardware design in detail. Through the above steps, the system can generate a top-level design file for hardware implementation to provide support for the final hardware implementation.
[0129] In terms of technical principles, step S502 utilizes hardware design tools and top-level design file generation technology. The hardware design tool enables users to easily import and manage hardware configuration files and generate corresponding top-level design files by providing a graphical interface and an automated script interface. The top-level design file generation technology automatically generates top-level design files that conform to specific formats and specifications by parsing the hardware configuration files, and defines the structure and configuration of the hardware design in detail. The combination of these two technologies enables the system to efficiently and accurately generate top-level design files for hardware implementation, providing support for the final hardware implementation.
[0130] In terms of the technical problems solved, step S502 mainly solves the problems of hardware configuration file import and top-level design file generation. Hardware configuration file import and management are key links in design. Without automated tool support, manual import and management will be very cumbersome and error-prone. By adopting hardware design tools, the system can easily import and manage hardware configuration files to improve efficiency and accuracy. In addition, through the top-level design file generation technology, the system can generate top-level design files that conform to specific formats and specifications to ensure the correctness and consistency of hardware design.
[0131] In terms of the technical effects achieved, through step S502, the system can efficiently and accurately generate top-level design files for hardware implementation. First, through the hardware design tool, the system can easily import and manage hardware configuration files to improve design efficiency and accuracy. Then, through the top-level design file generation technology, the system can generate top-level design files that conform to specific formats and specifications to ensure the correctness and consistency of the hardware design. Finally, through the combination of these two links, the system can generate top-level design files for implementing the algorithm and provide support for the final hardware implementation.
[0132] For example, suppose a team is developing a wireless communication system. In step S502, they first use the preset tool of the programmable array logic device to import the hardware configuration description file generated in step S501. Then, they use the preset tool to generate the top-level design files of the wireless communication system, which define in detail how the transmission signal, reception signal, signal processing algorithm, etc. are implemented in hardware. Through these steps, the team can generate the top-level design files for implementing the wireless communication system to provide support for the final hardware implementation.
[0133] In summary, through steps S501 and S502, the system can efficiently and accurately generate configuration description files and top-level design files for hardware design and implementation. Through reasonable technical means and processes, the system can improve the automation and efficiency of the design, meet different application requirements, and improve the performance and adaptability of the design. Ultimately, the generated design provides strong support for the efficient implementation and performance optimization of the system.
[0134] In one embodiment of the model processing method of the IP core for semi-physical simulation of the present application, see Figure 6 , and can also include the following:
[0135] Step S601: importing the top-level design file of the programmable array logic device into a preset design tool and converting it into a corresponding logic netlist;
[0136] Step S602: Performing a layout and routing process operation through the logic netlist to obtain a corresponding bitstream file.
[0137] Optionally, in this embodiment, in step S601, the system imports the top-level design file of the programmable array logic device into a preset design tool and converts it into a corresponding logic netlist. The specific technical process of implementation includes the following steps: First, the system selects a suitable preset design tool, such as Xilinx's Vivado or Intel's Quartus, which can support the conversion of the top-level design file into a logic netlist. Next, the top-level design file generated in the previous step is imported into the selected design tool. These files are usually in hardware description language (such as VHDL or Verilog) or configuration script format. The design tool automatically generates the corresponding logic netlist by parsing the top-level design file. The logic netlist is an intermediate representation of the design, which describes the logical structure and connection relationship of the circuit in detail. Through the above steps, the system can generate a logic netlist for subsequent layout and routing, laying the foundation for hardware implementation.
[0138] In terms of technical principles, step S601 utilizes the technology of hardware description language parsing and logic netlist generation. The hardware description language parsing technology extracts the logical structure and connection relationship of the circuit by parsing the top-level design file. The logic netlist generation technology generates the corresponding logic netlist based on the parsing results, which describes the logical structure and connection relationship of the circuit in detail. The combination of these two technologies enables the system to efficiently and accurately generate the logic netlist for subsequent layout and routing, providing support for hardware implementation.
[0139] In terms of the technical problems solved, step S601 mainly solves the problem of converting the top-level design file into a logic netlist. The top-level design file is a high-level abstract representation of the hardware design. Without automated conversion methods, manually generating a logic netlist will be very cumbersome and prone to errors. By adopting hardware description language parsing and logic netlist generation technology, the system can automatically generate the corresponding logic netlist to improve efficiency and accuracy. In addition, through the preset design tools, the system can easily manage and convert the top-level design files to ensure a smooth and efficient design process.
[0140] In terms of the technical effects achieved, through step S601, the system can efficiently and accurately generate a logic netlist for subsequent layout and routing. First, through the hardware description language parsing technology, the system can accurately extract the logical structure and connection relationship in the top-level design file to improve the accuracy of the design. Then, through the logic netlist generation technology, the system can generate a logic netlist that describes the circuit logic structure and connection relationship in detail to provide support for subsequent layout and routing. Finally, through the preset design tools, the system can easily manage and convert the top-level design files to improve the efficiency and fluency of the design process.
[0141] For example, suppose a team is developing a signal processing system. In step S601, they first selected Xilinx's Vivado as the preset design tool and imported the top-level design file generated in the previous step into Vivado. Vivado automatically generates a logic netlist for the signal processing system by parsing the top-level design file, which describes in detail the logical relationship between signal input, processing module, and output. Through these steps, the team is able to generate a logic netlist for subsequent layout and routing, laying the foundation for the hardware implementation of the signal processing system.
[0142] In step S602, the system performs layout and routing process operations through the logic netlist to obtain the corresponding bitstream file. The specific technical process includes the following steps: First, the system uses a preset design tool (such as Vivado or Quartus) to import the logic netlist generated in step S601. These tools provide powerful layout and routing functions, and can automatically perform layout and routing operations according to the logic netlist. Then, the system maps the logic units in the logic netlist to specific hardware resources through the layout and routing algorithm, and optimizes the signal path to improve performance and reduce delay. After the layout and routing is completed, the system generates the corresponding bitstream file, which is the final file for configuring the programmable array logic device and contains all the information required to implement the circuit function. Through the above steps, the system can generate a bitstream file for hardware implementation to provide support for the final hardware configuration.
[0143] In terms of technical principles, step S602 utilizes the layout and routing algorithm and bitstream generation technology. The layout and routing algorithm improves the performance of the design and reduces delays by optimizing the mapping and signal paths of the logic cells. The bitstream generation technology generates a bitstream file containing all circuit function information based on the layout and routing results. The combination of these two technologies enables the system to efficiently and accurately generate bitstream files for hardware implementation, providing support for the final hardware configuration.
[0144] In terms of the technical problems solved, step S602 mainly solves the problems of logic netlist layout and routing and bitstream file generation. Layout and routing are key links in hardware design. Without the support of automated tools, manual layout and routing will be very cumbersome and prone to errors. By adopting the layout and routing algorithm, the system can automatically perform layout and routing operations to improve efficiency and accuracy. In addition, through the bitstream generation technology, the system can generate a bitstream file containing all circuit function information to ensure the correctness and consistency of the hardware configuration.
[0145] In terms of the technical effects achieved, through step S602, the system can efficiently and accurately generate a bitstream file for hardware implementation. First, through the layout and routing algorithm, the system can optimize the mapping and signal path of the logic unit, improve the performance of the design and reduce delays. Then, through the bitstream generation technology, the system can generate a bitstream file containing all circuit function information to provide support for hardware configuration. Finally, through the preset design tool, the system can easily manage and generate bitstream files, improving the efficiency and fluency of the design process.
[0146] For example, let's assume that a team is developing an image processing system. In step S602, they first use Vivado to import the logic netlist generated in step S601. Vivado uses the placement and routing algorithm to map the logic units of the image processing system to specific hardware resources and optimize the signal path. After the placement and routing is completed, Vivado generates a bitstream file for the image processing system, which contains all the information required to implement the image processing function. Through these steps, the team is able to generate a bitstream file for hardware implementation to provide support for the final hardware configuration of the image processing system.
[0147] In summary, through steps S601 and S602, the system can efficiently and accurately generate a logic netlist and bitstream file for hardware implementation. Through reasonable technical means and processes, the system can improve the automation and efficiency of the design, meet different application requirements, and improve the performance and adaptability of the design. Ultimately, the generated design provides strong support for the efficient implementation and performance optimization of the system.
[0148] In one embodiment of the model processing method of the IP core for semi-physical simulation of the present application, see Figure 7 , and can also include the following:
[0149] Step S701: transmitting the bitstream file to a hardware platform of a corresponding target programmable array logic device;
[0150] Step S702: Start the execution of the bitstream file on the hardware platform of the target programmable array logic device.
[0151] Optionally, in this embodiment, in step S701, the system transfers the bitstream file to the hardware platform of the corresponding target programmable array logic device. The specific technical process of implementation includes the following steps: First, the system needs to identify the type and interface of the target hardware platform, such as USB, JTAG or Ethernet interface. Then, through a preset transmission protocol, the system transfers the bitstream file from a computer or other storage device to the target hardware platform. During the transmission process, the system needs to ensure the integrity and accuracy of the bitstream file and verify it through technical means such as checksums. After the transmission is completed, the bitstream file will be stored in the configuration memory of the target hardware platform, waiting for subsequent execution operations.
[0152] In terms of technical principles, step S701 utilizes data transmission and verification technology. Data transmission technology transfers the bitstream file from a computer or other storage device to the target hardware platform through a preset transmission protocol. Verification technology ensures the integrity and accuracy of the bitstream file during transmission through means such as checksums. The combination of these two technologies enables the system to efficiently and accurately transfer the bitstream file to the target hardware platform, providing support for hardware configuration.
[0153] In terms of the technical problems solved, step S701 mainly solves the problem of bitstream file transmission. Bitstream files are key files for configuring programmable array logic devices. If errors occur during the transmission process, it may cause hardware configuration failure or malfunction. By adopting data transmission and verification technology, the system can ensure the integrity and accuracy of the bitstream file during the transmission process and improve the reliability and stability of the transmission. In addition, through the preset transmission protocol, the system can adapt to different hardware platforms and interfaces to ensure that the bitstream file can be smoothly transmitted to the target hardware platform.
[0154] In terms of the technical effects achieved, through step S701, the system can efficiently and accurately transmit the bitstream file to the target hardware platform. First, through data transmission technology, the system can adapt to the needs of different hardware platforms and interfaces to ensure that the bitstream file can be transmitted smoothly. Then, through verification technology, the system can ensure the integrity and accuracy of the bitstream file during the transmission process, and improve the reliability and stability of the transmission. Finally, through the preset transmission protocol, the system can efficiently manage and transmit the bitstream file to provide support for hardware configuration.
[0155] For example, suppose a team is developing an embedded control system. In step S701, they first identify the type and interface of the target hardware platform and determine to transfer the bitstream file through the JTAG interface. The system transfers the bitstream file from the computer to the target hardware platform through the preset JTAG transmission protocol. During the transmission process, the system ensures the integrity and accuracy of the bitstream file through verification and technology, and finally stores the bitstream file in the configuration memory of the target hardware platform to prepare for subsequent execution operations.
[0156] In step S702, the system starts the execution of the bitstream file on the hardware platform of the target programmable array logic device. The specific technical process includes the following steps: First, the system sends a startup command to the target hardware platform through a control interface (such as JTAG or SPI) to trigger the loading and execution of the bitstream file. After receiving the startup command, the target hardware platform loads the bitstream file stored in the configuration memory into the programmable array logic device to complete the hardware configuration. After the configuration is completed, the target hardware platform will start working according to the logical structure and functions defined in the bitstream file to realize the designed hardware functions.
[0157] In terms of technical principles, step S702 utilizes hardware configuration and startup control technology. Hardware configuration technology configures the programmable array logic device to the designed logical structure and function by loading the bitstream file. Startup control technology sends a startup command through the control interface to trigger the loading and execution of the bitstream file. The combination of these two technologies enables the system to efficiently and accurately start the execution of the bitstream file on the target hardware platform to realize the designed hardware function.
[0158] In terms of the technical problems solved, step S702 mainly solves the problem of loading and executing the bitstream file. The bitstream file contains all the information to realize the circuit function. If errors occur in the loading and execution process, it may cause hardware configuration failure or functional abnormality. By adopting hardware configuration and startup control technology, the system can ensure the correctness and consistency of the bitstream file during loading and execution, and improve the reliability and stability of the hardware configuration. In addition, through the control interface, the system can easily manage and control the startup process of the hardware platform to ensure that the bitstream file can be executed smoothly.
[0159] In terms of the technical effects achieved, through step S702, the system can efficiently and accurately start the execution of the bitstream file on the target hardware platform. First, through the hardware configuration technology, the system can accurately load the logical structure and function in the bitstream file into the programmable array logic device to realize the hardware configuration. Then, through the startup control technology, the system can conveniently manage and control the startup process of the hardware platform to ensure that the bitstream file can be executed smoothly. Finally, through the control interface, the system can efficiently manage and start the hardware configuration and improve the efficiency and stability of the hardware implementation.
[0160] For example, suppose a team is developing a communication system. In step S702, they send a startup command to the target hardware platform through the JTAG interface to trigger the loading and execution of the bitstream file. After receiving the startup command, the target hardware platform loads the bitstream file stored in the configuration memory into the programmable array logic device to complete the hardware configuration. After the configuration is completed, the communication system starts working according to the logical structure and functions defined in the bitstream file to realize signal processing and transmission functions. Through these steps, the team can efficiently and accurately start the execution of the bitstream file on the target hardware platform to provide support for the implementation of the communication system.
[0161] In summary, through steps S701 and S702, the system can efficiently and accurately transfer the bitstream file to the target hardware platform and start the execution of the bitstream file on the hardware platform. Through reasonable technical means and processes, the system can improve the automation and efficiency of hardware configuration, meet different application requirements, and improve the performance and adaptability of hardware implementation. Finally, the generated design provides strong support for the efficient implementation and performance optimization of the system.
[0162] In order to effectively improve the simulation efficiency and accuracy, the present application provides an embodiment of a model processing device for an IP core for semi-physical simulation, which is used to implement all or part of the content of the model processing method for an IP core for semi-physical simulation, see Figure 8 The model processing device of the IP core for semi-physical simulation specifically includes the following contents:
[0163] The simulation model encapsulation module 10 is used to encapsulate the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, define the attributes of the model variables in the algorithm description of the algorithm IP core, and divide the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals;
[0164] A mapping relationship building module 20 is used to obtain the hardware resource description information of the programmable array logic device, establish a mapping relationship between the model variables and the hardware resource description information based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device by using a model-driven method, and dynamically generate an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship;
[0165] The file execution module 30 is used to perform comprehensive layout and routing on the top-level design file through the preset design tool of the programmable array logic device, generate a corresponding bit stream file that can be directly run on the programmable array logic device, and download the bit stream file to the target hardware platform to start running.
[0166] From the above description, it can be seen that the model processing device of the IP core for semi-physical simulation provided by the embodiment of the present application can encapsulate the algorithm model to be simulated into a reusable algorithm IP core of a programmable array logic device, define the attributes of the model variables in the algorithm description of the algorithm IP core, and divide the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; the top-level design file is comprehensively laid out and routed through the preset design tool of the programmable array logic device, and the corresponding bitstream file that can be directly run on the programmable array logic device is generated, and the bitstream file is downloaded to the target hardware platform to start running, thereby effectively improving the simulation efficiency and accuracy.
[0167] From the hardware level, in order to effectively improve the simulation efficiency and accuracy, the present application provides an embodiment of an electronic device for implementing all or part of the content of the model processing method of the IP core for semi-physical simulation, and the electronic device specifically includes the following content:
[0168] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the model processing device of the IP core for semi-physical simulation and the core business system, user terminal and related database and other related equipment; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the logic controller can be implemented with reference to the embodiment of the model processing method of the IP core for semi-physical simulation and the embodiment of the model processing device of the IP core for semi-physical simulation in the embodiment, and the contents thereof are incorporated herein, and the repeated parts are not repeated.
[0169] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.
[0170] In practical applications, part of the model processing method of the IP core used for semi-physical simulation can be executed on the electronic device side as described above, or all operations can be completed in the client device. Specifically, it can be selected according to the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.
[0171] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0172] Fig. 9 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig. 9 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig. 9 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0173] In one embodiment, the model processing method function of the IP core for semi-physical simulation can be integrated into the central processor 9100. The central processor 9100 can be configured to perform the following control:
[0174] Step S101: Encapsulating the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defining the attributes of the model variables in the algorithm description of the algorithm IP core, and dividing the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals;
[0175] Step S102: acquiring hardware resource description information of the programmable array logic device, establishing a mapping relationship between the model variables and the hardware resource description information using a model-driven method based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device, and dynamically generating an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship;
[0176] Step S103: Perform comprehensive layout and routing on the top-level design file through the preset design tool of the programmable array logic device, generate a corresponding bitstream file that can be directly run on the programmable array logic device, and download the bitstream file to the target hardware platform to start running.
[0177] From the above description, it can be seen that the electronic device provided in the embodiment of the present application encapsulates the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defines the attributes of the model variables in the algorithm description of the algorithm IP core, and divides the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; the top-level design file is comprehensively laid out and routed through the preset design tool of the programmable array logic device, and a corresponding bitstream file that can be directly run on the programmable array logic device is generated, and the bitstream file is downloaded to the target hardware platform to start running, thereby effectively improving the simulation efficiency and accuracy.
[0178] In another embodiment, the model processing device of the IP core for semi-physical simulation can be configured separately from the central processing unit 9100. For example, the model processing device of the IP core for semi-physical simulation can be configured as a chip connected to the central processing unit 9100, and the model processing method function of the IP core for semi-physical simulation is implemented through the control of the central processing unit.
[0179] like Fig. 9 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig. 9 In addition, the electronic device 9600 may also include Fig. 9 For components not shown, reference may be made to the prior art.
[0180] like Fig. 9 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.
[0181] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.
[0182] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.
[0183] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.
[0184] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0185] The communication module 9110 is a transmitter / receiver that sends and receives signals via the antenna 9111. The communication module 9110 (transmitter / receiver) is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0186] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module 9110 (transmitter / receiver) is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.
[0187] The embodiment of the present application also provides a computer-readable storage medium capable of implementing all steps in the model processing method for an IP core for semi-physical simulation in the above embodiment, where the execution subject is a server or a client. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all steps in the model processing method for an IP core for semi-physical simulation in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0188] Step S101: Encapsulating the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defining the attributes of the model variables in the algorithm description of the algorithm IP core, and dividing the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals;
[0189] Step S102: acquiring hardware resource description information of the programmable array logic device, establishing a mapping relationship between the model variables and the hardware resource description information using a model-driven method based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device, and dynamically generating an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship;
[0190] Step S103: Perform comprehensive layout and routing on the top-level design file through the preset design tool of the programmable array logic device, generate a corresponding bitstream file that can be directly run on the programmable array logic device, and download the bitstream file to the target hardware platform to start running.
[0191] From the above description, it can be seen that the computer-readable storage medium provided in the embodiment of the present application encapsulates the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defines the attributes of the model variables in the algorithm description of the algorithm IP core, and divides the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; the top-level design file is comprehensively laid out and routed through the preset design tool of the programmable array logic device, and a corresponding bitstream file that can be directly run on the programmable array logic device is generated, and the bitstream file is downloaded to the target hardware platform to start running, thereby effectively improving the simulation efficiency and accuracy.
[0192] The embodiments of the present application also provide a computer program product capable of implementing all steps in the model processing method for an IP core for semi-physical simulation in the above-mentioned embodiment, where the execution subject is a server or a client. When the computer program / instruction is executed by a processor, the steps of the model processing method for an IP core for semi-physical simulation are implemented. For example, the computer program / instruction implements the following steps:
[0193] Step S101: Encapsulating the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defining the attributes of the model variables in the algorithm description of the algorithm IP core, and dividing the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals;
[0194] Step S102: acquiring hardware resource description information of the programmable array logic device, establishing a mapping relationship between the model variables and the hardware resource description information using a model-driven method based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device, and dynamically generating an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship;
[0195] Step S103: Perform comprehensive layout and routing on the top-level design file through the preset design tool of the programmable array logic device, generate a corresponding bitstream file that can be directly run on the programmable array logic device, and download the bitstream file to the target hardware platform to start running.
[0196] From the above description, it can be seen that the computer program product provided by the embodiment of the present application encapsulates the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, defines the attributes of the model variables in the algorithm description of the algorithm IP core, and divides the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; the top-level design file is comprehensively laid out and routed through the preset design tool of the programmable array logic device, and the corresponding bitstream file that can be directly run on the programmable array logic device is generated, and the bitstream file is downloaded to the target hardware platform to start running, thereby effectively improving the simulation efficiency and accuracy.
[0197] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0198] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0199] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0200] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0201] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A model processing method for an IP core for semi-physical simulation, characterized in that: The method comprises: The algorithm model to be simulated is encapsulated into an algorithm IP core of a reusable programmable array logic device, the attributes of the model variables are defined in the algorithm description of the algorithm IP core, and the model variables are divided into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; Acquire the hardware resource description information of the programmable array logic device, establish a mapping relationship between the model variables and the hardware resource description information using a model-driven method based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device, and dynamically generate an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship; The top-level design file is comprehensively laid out and routed through the preset design tool of the programmable array logic device, a corresponding bit stream file that can be directly run on the programmable array logic device is generated, and the bit stream file is downloaded to the target hardware platform to start running.
2. The model processing method for IP core for semi-physical simulation according to claim 1, characterized in that: The algorithm model to be simulated is encapsulated into an algorithm IP core of a reusable programmable array logic device, and the attributes of the model variables are defined in the algorithm description of the algorithm IP core, including: Constructing an algorithm model to be simulated in a preset modeling tool, and converting the algorithm model into an algorithm IP core that can be run on a programmable array logic device through a programmable array logic device-related tool; In the description file of the algorithm IP core, attribute content is defined for each model variable, wherein the attribute content includes at least one of a variable name, a port direction, a data type, and an initial value.
3. The model processing method for IP core used for semi-physical simulation according to claim 1, characterized in that: The model variables are divided into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals, including: Dividing the model variables into two categories: input / output ports and parameters, wherein the input / output ports are directly bound to the physical input / output channels of the hardware of the programmable array logic device for real-time data exchange; The model variables of the parameter type are divided into two categories: dynamically adjustable parameters and clock reset special signals, wherein the dynamically adjustable parameters are dynamically adjusted and mapped to the CPU register space through software.
4. The model processing method for IP core for semi-physical simulation according to claim 1, characterized in that: The model variables based on the algorithm IP core and the hardware resource description information of the programmable array logic device are used to establish a mapping relationship between the model variables and the hardware resource description information using a model-driven method, including: Extracting detailed information of the model variables from the description file of the constructed algorithm IP core, and obtaining resource description information of the target programmable array logic device hardware platform; A model-driven method is adopted to establish automatic mapping between the model variables and the hardware resources, wherein the model variables of the input / output port type are mapped to the corresponding hardware physical channels, the model variables of the dynamically adjustable parameter type are mapped to the register space accessible to the CPU, and the clock reset special information is mapped to the corresponding clock reset resource area.
5. The model processing method of IP core for semi-physical simulation according to claim 1, characterized in that: The dynamically generating the engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship includes: Generating a configurable description of a corresponding programmable array logic device project according to a mapping relationship between the model variables and the hardware resources; The corresponding configurable top-level design file is obtained through the preset related tools of the programmable array logic device.
6. The model processing method of IP core for semi-physical simulation according to claim 1, characterized in that: The method of performing comprehensive layout and routing on the top-level design file by using a preset design tool of the programmable array logic device to generate a corresponding bitstream file that can be directly run on the programmable array logic device includes: Importing the top-level design file of the programmable array logic device into a preset design tool and converting it into a corresponding logic netlist; The layout and routing process operation is performed through the logic netlist to obtain a corresponding bit stream file.
7. The model processing method of IP core for semi-physical simulation according to claim 1, characterized in that: The step of downloading the bitstream file to the target hardware platform and starting the operation includes: Transmitting the bitstream file to a hardware platform of a corresponding target programmable array logic device; The execution of the bitstream file is started on a hardware platform of the target programmable array logic device.
8. A model processing device for an IP core used in semi-physical simulation, characterized in that: The device comprises: A simulation model encapsulation module is used to encapsulate the algorithm model to be simulated into an algorithm IP core of a reusable programmable array logic device, define the attributes of the model variables in the algorithm description of the algorithm IP core, and divide the model variables into three categories: input / output ports, dynamically adjustable parameters, and clock reset special signals; A mapping relationship building module, used to obtain the hardware resource description information of the programmable array logic device, establish a mapping relationship between the model variables and the hardware resource description information based on the model variables of the algorithm IP core and the hardware resource description information of the programmable array logic device by using a model-driven method, and dynamically generate an engineering configurable top-level design file of the programmable array logic device according to the established mapping relationship; The file execution module is used to perform comprehensive layout and routing on the top-level design file through the preset design tool of the programmable array logic device, generate a corresponding bit stream file that can be directly run on the programmable array logic device, and download the bit stream file to the target hardware platform to start running.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the model processing method of the IP core for semi-physical simulation according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the model processing method of an IP core for semi-physical simulation described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Mixed request type graphics transformation table shadowing method
CN105518746A
FPGA-based mapping-oriented network-on-chip verification method and system
CN109450705A
Method for realizing activation function Mish based on Xilinx CORDIC algorithm
CN118133903A
Selectively bypassing design process steps for a register-transfer logic (RTL) design in an electronic design automation (EDA) development environment
US10713403B1
Hardware software communication channel to support direct programming interface methods on FPGA-based prototype platforms
US20230401132A1
