System on chip (SOC) integration method, device and electronic equipment

Through the combination of SOC automatic integration tools and code compilation tools, RTL integration files are generated, which solves the problem of low SOC integration efficiency and achieves rapid integration and high reusability.

CN114510452BActive Publication Date: 2024-09-03HANGZHOU WEIMING XINKE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210021993.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-10
Publication Date
2024-09-03
Estimated Expiration
2042-01-10

AI Technical Summary

Technical Problem

In the development of system-on-chip SOC based on VIVADO HLS, the SOC integration efficiency is low, especially when the scale is large. The existing technology is difficult to quickly complete the effective integration of modules, and the script has poor usability and reusability.

Method used

By obtaining the SOC configuration file, use the SOC automatic integration tool to generate an intermediate file, and send it to the target code compilation tool to generate a register conversion level circuit RTL integration file. Based on this file, SOC integration is performed to achieve rapid integration and reuse of modules.

Benefits of technology

It improves the efficiency and reusability of SOC integration, can quickly integrate SOC modules of different sizes, and solves the problem of low integration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114510452B
    Figure CN114510452B
Patent Text Reader

Abstract

The present application discloses a system-on-chip (SOC) integration method, device and electronic device. The method includes: obtaining a SOC configuration file of the SOC to be integrated, the SOC configuration file contains the configuration information of the SOC to be integrated; sending the configuration file to the SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating each SOC module according to a port of a preset port type based on the pipeline connection relationship of the SOC; sending the intermediate file to the target code compilation tool to obtain a register conversion level circuit RTL integration file; integrating the SOC to be integrated based on the RTL integration file. The present application solves the technical problem of low SOC integration efficiency in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and more specifically, to a system-on-chip (SOC) integration method, device, and electronic device. Background Art

[0002] In the development and design of System on Chip (SOC) based on VIVADO High Level Synthesis (HLS), SOC is usually divided into multiple modules for parallel development and design. When integrating multiple modules, it is very important to match the interfaces and process the working order of the modules and module pipelines.

[0003] The SOC integration method based on VIVADO HLS in the related art mainly includes two solutions. The first solution is that the VIVADO HLS tool analyzes the connection relationship between sub-modules by itself, thereby directly completing the SOC integration. The second solution is to write a script, analyze the interface of the register transfer level (RTL) code of the sub-module generated by the VIVADO HLS tool through the script and directly generate the RTL code for integration. However, for the first technical solution, although it is fast, when the scale of the SOC exceeds a certain level, the tool cannot directly and effectively complete the integration. The second technical solution requires logic engineers to independently develop templates for different SOC systems, identify the connection relationship between SOC modules, and insert pipeline control modules, which will result in poor script usability and reusability, and low SOC integration efficiency. Summary of the invention

[0004] The embodiments of the present application provide a system on chip (SOC) integration method, device and electronic device to at least solve the technical problem of low SOC integration efficiency in the related art.

[0005] According to one aspect of an embodiment of the present application, a system on chip (SOC) integration method is provided, comprising: obtaining a SOC configuration file of a SOC to be integrated, the SOC configuration file including configuration information of the SOC to be integrated; sending the configuration file to a SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating a first intermediate file and a second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating ports of each SOC module according to a preset port type based on a pipeline connection relationship of the SOC; sending the intermediate file to a target code compilation tool to obtain a register conversion level circuit RTL integration file; and integrating the SOC to be integrated based on the RTL integration file.

[0006] According to another aspect of an embodiment of the present application, a system-on-chip (SOC) integration device is also provided, including: an acquisition unit, which acquires a SOC configuration file of a SOC to be integrated, wherein the SOC configuration file includes configuration information of the SOC to be integrated; a first generation unit, which is used to send the configuration file to a SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating a first intermediate file and a second intermediate file, wherein the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating ports of each SOC module according to a preset port type based on a pipeline connection relationship of the SOC; a processing unit, which is used to send the intermediate file to a target code compilation tool to obtain a register conversion level circuit (RTL) integration file; and an integration unit, which is used to integrate the SOC to be integrated based on the RTL integration file.

[0007] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned system-on-chip (SOC) integration method when running.

[0008] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the system-on-chip (SOC) integration method through the computer program.

[0009] In the embodiment of the present application, by obtaining the SOC configuration file of the SOC to be integrated, the SOC configuration file contains the configuration information of the SOC to be integrated; sending the configuration file to the SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating each SOC module according to a port of a preset port type based on the pipeline connection relationship of the SOC; sending the intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file; integrating the SOC to be integrated based on the RTL integration file. Since the SOC module is integrated by generating an intermediate file through the SOC automatic integration tool, and the RTL integration file is generated based on the code compilation tool, SOC modules of different scales can be quickly integrated, which not only improves the efficiency of SOC integration, but also improves the reusability of SOC integration, and solves the technical problem of low SOC integration efficiency in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0011] Figure 1 is a schematic diagram of an application environment of an optional system-on-chip (SOC) integration method according to an embodiment of the present application;

[0012] Figure 2 is a schematic diagram of an application environment of another optional system-on-chip (SOC) integration method according to an embodiment of the present application;

[0013] Figure 3 It is a flowchart of an optional system-on-chip (SOC) integration method according to the related art;

[0014] Figure 4 It is a flowchart of another optional system-on-chip (SOC) integration method according to the related art;

[0015] Figure 5 is a schematic structural diagram of an optional system-on-chip (SOC) integrated device according to an embodiment of the present application;

[0016] Figure 6 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0017] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present application.

[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0019] According to one aspect of an embodiment of the present application, a system on chip (SOC) integration method is provided. Optionally, as an optional implementation, the above-mentioned system on chip (SOC) integration can be but is not limited to being applied to: Figure 1 In the environment shown. The application environment includes: a SOC automatic integration tool based on VIVADO HLS and a SCALA code compilation tool. The above-mentioned integration tool is an extension tool of VIVADO HLS. The extension tool can generate an intermediate file for the configuration file of the SOC to be integrated with different modules, and output the RTL code through the above-mentioned SCALA code compilation tool. Based on the RTL code, the current SOC system module can be integrated. The above-mentioned intermediate file specifically includes a module black box file that encapsulates each SOC module according to a preset port, an intermediate file containing the connection relationship between each SOC module, and a top-level integration file obtained by encapsulating the above-mentioned module black box file and the intermediate file of the connection relationship between each SOC module. After obtaining the above-mentioned intermediate file, the SOC automatic integration tool based on VIVADO HLS generates a log file. The log file reports pipeline problems, port mismatch problems and SOC connection dangling (no connection module found) during the SOC module integration process, for SOC developers to synchronize and iterate development.

[0020] As another optional implementation, the above-mentioned system-on-chip SOC integration method of the present application can be applied to Figure 2 In the application environment shown. Figure 2As shown, human-computer interaction can be performed between user 202 and user device 204. User device 204 includes memory 206 and processor 208. In this embodiment, user device 204 can refer to but not be limited to executing the operations performed by the above terminal device 102 to obtain the voice response time of the target device.

[0021] Optionally, in this embodiment, the user device 204 may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and this embodiment does not make any limitation to this.

[0022] Optionally, in one or more embodiments, Figure 3 As shown, the above-mentioned system-on-chip SOC integration method includes:

[0023] S302, obtaining a SOC configuration file of the SOC to be integrated, wherein the SOC configuration file includes configuration information of the SOC to be integrated.

[0024] In the embodiment of the present invention, the above SOC configuration file includes but is not limited to the module name of the SOC, the instantiation name of the SOC module, the configuration information related to the SOC pipeline work, and the RTL top-level file of the SOC module, etc., which are not limited here. In the SOC, since there are multiple modules with the same module name, for example, two Bluetooth modules have the same function, they need to be configured with different instantiation names for the system to call during the integrated use, such as Bluetooth1 and Bluetooth2.

[0025] S304, sending the configuration file to the SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating the ports of each SOC module according to the preset port type based on the pipeline connection relationship of the SOC.

[0026] Here, the SOC automatic integration tool based on VIVADO HLS can configure the RTL top-level file of each SOC module in the file to encapsulate each SOC module according to the preset port to obtain each SOC module black box file. Here, the preset port includes but is not limited to Stream type port, AXI4 type port, AXILite type port, dual-port RAM type port, each SOC module black box file encapsulates the above type of port, and different SOC modules establish communication connections with other SOC modules based on the different ports. Based on the pipeline connection relationship of the SOC, the file obtained by encapsulating each SOC module according to the port of the preset port type is obtained to obtain a second intermediate file, that is, for example, the port type of the current SOC module is Stream type, and the port type of the previous SOC module is also Stream type. It should be noted that, assuming that the previous level SOC module in the current SOC system has a group of A_stream_master ports, and the next level SOC module has A_stream_slave ports, these two groups are both stream type ports, and the connection port names are all A, one is the master direction and the other is the slave direction, and these two levels of SOC can establish a communication connection relationship.

[0027] In an embodiment of the present invention, the first intermediate file and the second intermediate file are integrated and packaged into an intermediate file, which can be input into a SCALA code compilation tool to eventually obtain an integrated RTL code, through which various modules in the SOC can be integrated.

[0028] S306, sending the intermediate file to a target code compilation tool to obtain a register conversion level circuit RTL integration file;

[0029] In the embodiment of the present invention, the target code compilation tool may be a SCALA code compilation tool, or may be other code compilation tools that can be used in conjunction with the SOC automatic integration tool of VIVADO HLS, and no limitation is made herein.

[0030] S308: Integrate the SOC to be integrated based on the RTL integration file.

[0031] In the embodiment of the present application, by obtaining the SOC configuration file of the SOC to be integrated, the SOC configuration file contains the configuration information of the SOC to be integrated; sending the configuration file to the SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating each SOC module according to a port of a preset port type based on the pipeline connection relationship of the SOC; sending the intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file; integrating the SOC to be integrated based on the RTL integration file. Since the SOC module is integrated by generating an intermediate file through the SOC automatic integration tool, and the RTL integration file is generated based on the code compilation tool, SOC modules of different scales can be quickly integrated, which not only improves the efficiency of SOC integration, but also improves the reusability of SOC integration, and solves the technical problem of low SOC integration efficiency in related technologies.

[0032] In one or more embodiments, the configuration information includes the top-level RTL file of each SOC module and the pipeline connection relationship of the module of the SOC to be integrated; the above step S204, sending the configuration file to the SOC automatic integration tool, generating the intermediate file includes:

[0033] The top-level RTL file is read from the SOC configuration file, and each SOC module of the SOC to be integrated is encapsulated according to a preset port type based on the RTL file to obtain the first intermediate file.

[0034] Here, the SOC automatic integration tool of VIVADO HLS reads the top-level RTL file from the SOC configuration file. The above RTL file is the top-level file of different SOC modules in the SOC, and then generates a black box intermediate file (first intermediate file) corresponding to each SOC according to different types of port types such as Stream type ports, AXI4 type ports, AXILite type ports, dual-port RAM type ports, etc.

[0035] The pipeline connection relationship is read from the SOC configuration file; and a second intermediate file including the communication connection between each of the SOC modules is generated based on the pipeline connection relationship.

[0036] In an embodiment of the present invention, the pipeline connection relationship of the working interaction of each module of the SOC is read from the SOC configuration file, and then according to the pipeline connection relationship, according to different types of connection ports such as Stream type ports, AXI4 type ports, AXILite type ports, dual-port RAM type ports, etc., modules of the port type with the same specific name are established with a communication connection relationship, and a second intermediate file including the communication connection between each of the SOC modules is generated. Assuming that the previous level SOC module in the current SOC system has a group of A_stream_master ports, and the next level SOC module has an A_stream_slave port, these two groups are both stream type ports, and the connection port names are both A, one is the master direction and the other is the slave direction, these two levels of SOC can establish a communication connection relationship.

[0037] Finally, the first intermediate file and the second intermediate file are packaged to obtain the intermediate file for the target code compilation tool to call.

[0038] In one or more embodiments, the configuration information includes an instantiation name of each SOC module; and the generating, based on the pipeline connection relationship, a second intermediate file including a communication connection between each of the SOC modules includes:

[0039] Based on the connection relationship, a corresponding connection port is assigned to each SOC module with the instantiation name. For example, two adjacent SOC modules, such as a Bluetooth module containing two Bluetooth modules, then the instantiation names of the two Bluetooth modules are Bluetooth1 and Bluetooth2 respectively, and the other SOC module is an audio module, and the instantiation name is Audio1. Assuming that in the current SOC system, the first-level SOC module has a set of Bluetooth_stream_master ports, and the second-level SOC module has a Bluetooth_stream_slave port, these two groups are both stream type ports, and the connection port names are both Bluetooth, one is the master direction and the other is the slave direction, the two-level Bluetooth modules can establish a communication connection relationship.

[0040] Based on the connection relationship and the connection port, the second intermediate file including the communication connection between each SOC module of the instantiation name is generated.

[0041] In one or more embodiments, after the above step S206, sending the intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file, the method further includes at least one of the following:

[0042] Generate a log report file, which includes fault information during the integration process of the SOC to be integrated; in the embodiment of the present invention, the fault information includes but is not limited to pipeline problems during the integration process of the SOC module, module port type mismatch problems, and SOC connection dangling problems (no connection module found), etc. Subsequent developers will iterate their development synchronously based on the above fault information.

[0043] Generate a file list of the integrated code files of the SOC to be integrated. According to the file list, the subsequent developers can perform operations such as synthesis and simulation.

[0044] In one or more embodiments, in the above step S206, the target code compilation tool includes a SCALA code compilation tool, and sending the intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file includes: sending the intermediate file to the SCALA code compilation tool to obtain the RTL integration file.

[0045] In one or more embodiments, the preset port types include: Stream type, AXI4 type, AXILite type, and dual-port RAM type.

[0046] Based on the above embodiments, in one or more embodiments, if Figure 4 As shown, the above-mentioned system-on-chip SOC integration method also includes: step S402, reading the configuration file of the SOC to be integrated, the configuration file includes the module name, instantiation name, and configuration information of the work pipeline of each module; step S404, reading the top-level RTL file of the module to be integrated from the configuration file, and generating a black box intermediate file (first intermediate file) of each module according to the preset port; step S406, reading the pipeline connection relationship from the configuration file, and completing the intermediate file (second intermediate file) of the SOC module port connection according to the connection port name; step S408, completing the integration of the instantiated black box file and the instantiated connection top-level intermediate file, so that all intermediate files are generated, and a log is generated to report the pipeline problems, port mismatch problems and module hanging conditions in the integration process, so that developers can perform synchronous iterative development; step S410, converting the intermediate file into RTL code and integrating the file list through a compilation tool that supports the SCALA language, so that developers can perform subsequent synthesis and simulation operations.

[0047] Through the embodiments of the present invention, not only can SOC integration based on VIVADO HLS of any scale be completed, but also independent templates can be eliminated. The sub-module RTL code identification can be completed by agreeing on the port type with the sub-module developer, and the purpose of completing the integration can be achieved through a short configuration file, so that the tool has strong ease of use and reusability, the log files and intermediate files generated by the tool are clear, and finally the conversion from the intermediate file to the RTL code is completed using the SCALA language, which can intercept all comprehensive problems related to the integration.

[0048] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0049] According to another aspect of the embodiment of the present application, a system-on-chip (SOC) integration device for implementing the above-mentioned system-on-chip (SOC) integration method is also provided. Figure 5 As shown, the device comprises:

[0050] An acquiring unit 502 acquires a SOC configuration file of the SOC to be integrated, wherein the SOC configuration file includes configuration information of the SOC to be integrated;

[0051] The first generating unit 504 is used to send the configuration file to the SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating the ports of each SOC module according to the preset port type based on the pipeline connection relationship of the SOC;

[0052] The processing unit 506 is used to send the intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file;

[0053] The integration unit 508 is used to integrate the SOC to be integrated based on the RTL integration file.

[0054] In the embodiment of the present invention, the above SOC configuration file includes but is not limited to the module name of the SOC, the instantiation name of the SOC module, the configuration information related to the SOC pipeline work, and the RTL top-level file of the SOC module, etc., which are not limited here. In the SOC, since there are multiple modules with the same module name, for example, two Bluetooth modules have the same function, they need to be configured with different instantiation names for the system to call during the integrated use, such as Bluetooth1 and Bluetooth2.

[0055] Here, the SOC automatic integration tool based on VIVADO HLS can configure the RTL top-level file of each SOC module in the file to encapsulate each SOC module according to the preset port to obtain each SOC module black box file. Here, the preset port includes but is not limited to Stream type port, AXI4 type port, AXILite type port, dual-port RAM type port, each SOC module black box file encapsulates the above type of port, and different SOC modules establish communication connections with other SOC modules based on the different ports. Based on the pipeline connection relationship of the SOC, the file obtained by encapsulating each SOC module according to the port of the preset port type is obtained to obtain a second intermediate file, that is, for example, the port type of the current SOC module is Stream type, and the port type of the previous SOC module is also Stream type. It should be noted that, assuming that the previous level SOC module in the current SOC system has a group of A_stream_master ports, and the next level SOC module has A_stream_slave ports, these two groups are both stream type ports, and the connection port names are all A, one is the master direction and the other is the slave direction, and these two levels of SOC can establish a communication connection relationship.

[0056] In the embodiment of the present invention, the first intermediate file and the second intermediate file are integrated and packaged into an intermediate file, which can be input into a SCALA code compilation tool, and finally an integrated RTL code can be obtained, through which various modules in the SOC can be integrated. The target code compilation tool can be a SCALA code compilation tool, or other code compilation tools that can be used in conjunction with the SOC automatic integration tool of VIVADO HLS, and no limitation is made here.

[0057] In the embodiment of the present application, by obtaining the SOC configuration file of the SOC to be integrated, the SOC configuration file contains the configuration information of the SOC to be integrated; sending the configuration file to the SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating each SOC module according to a port of a preset port type based on the pipeline connection relationship of the SOC; sending the intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file; integrating the SOC to be integrated based on the RTL integration file. Since the SOC module is integrated by generating an intermediate file through the SOC automatic integration tool, and the RTL integration file is generated based on the code compilation tool, SOC modules of different scales can be quickly integrated, which not only improves the efficiency of SOC integration, but also improves the reusability of SOC integration, and solves the technical problem of low SOC integration efficiency in related technologies.

[0058] In one or more implementations, the configuration information includes a top-level RTL file of each SOC module and a pipeline connection relationship of the module of the SOC to be integrated; the first generation unit 504 includes:

[0059] A first reading module, configured to read the top-level RTL file from the SOC configuration file, and encapsulate each SOC module of the SOC to be integrated according to a preset port type based on the RTL file, so as to generate the first intermediate file;

[0060] A second reading module, used for reading the pipeline connection relationship from the SOC configuration file;

[0061] A generating module, configured to generate a second intermediate file including a communication connection between each of the SOC modules based on the pipeline connection relationship;

[0062] The encapsulation module is used to encapsulate the first intermediate file and the second intermediate file to obtain the intermediate file for the target code compilation tool to call.

[0063] In one or more implementations, in a system on chip (SOC) integrated device, the configuration information further includes an instantiation name of each SOC module; the generation module specifically includes:

[0064] an allocating subunit, configured to allocate a corresponding connection port to each of the instantiated SOC modules based on the connection relationship;

[0065] A generating subunit is used to generate the above-mentioned second intermediate file including the communication connection between each SOC module of the instantiation name based on the connection relationship and the connection port.

[0066] In one or more embodiments, the system on chip (SOC) integrated device further includes at least one of the following:

[0067] A second generating unit, configured to generate a log report file, wherein the log report file includes fault information in the integration process of the SOC to be integrated;

[0068] The third generating unit is used to generate a file list of integration code files of the SOC to be integrated.

[0069] In one or more implementations, the processing unit specifically includes: a processing module, configured to send the intermediate file to a SCALA code compilation tool to obtain the RTL integrated file.

[0070] In one or more embodiments, the preset port types include: Stream type, AXI4 type, AXILite type, and dual-port RAM type.

[0071] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned system on chip SOC integration method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a server as an example. Figure 6 As shown, the electronic device includes a memory 602 and a processor 604. The memory 602 stores a computer program. The processor 604 is configured to execute the steps in any of the above method embodiments through the computer program.

[0072] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0073] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0074] S1, obtaining a SOC configuration file of the SOC to be integrated, wherein the SOC configuration file includes configuration information of the SOC to be integrated;

[0075] S2, sending the configuration file to the SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating each SOC module according to a port of a preset port type based on a pipeline connection relationship of the SOC;

[0076] S3, sending the above intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file;

[0077] S4, integrating the SOC to be integrated based on the RTL integration file.

[0078] Alternatively, a person skilled in the art may understand that: Figure 6 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Figure 6 The electronic device and the electronic equipment described above are not limited in structure. Figure 6 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 6 Different configurations shown.

[0079] Among them, the memory 602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the system-on-chip SOC integration method and device in the embodiment of the present application. The processor 604 executes various functional applications and data processing by running the software programs and modules stored in the memory 602, that is, realizing the above-mentioned system-on-chip SOC integration method. The memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 602 may further include a memory remotely located relative to the processor 604, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 602 can be specifically, but not limited to, used to store information such as SOC configuration files. As an example, such as Figure 6As shown, the memory 602 may include, but is not limited to, the acquisition unit 502, the first generation unit 504, the processing unit 506, and the integration unit 508 in the system-on-chip SOC integrated device. In addition, it may also include, but is not limited to, other module units in the system-on-chip SOC integrated device, which will not be repeated in this example.

[0080] Optionally, the transmission device 606 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 606 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 606 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0081] In addition, the electronic device further includes: a display 608 for displaying the SOC configuration file information; and a connection bus 610 for connecting various module components in the electronic device.

[0082] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.

[0083] In one or more embodiments, the present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned system-on-chip SOC integration method. Wherein, the computer program is configured to execute the steps of any of the above-mentioned method embodiments when running.

[0084] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0085] S1, obtaining a SOC configuration file of the SOC to be integrated, wherein the SOC configuration file includes configuration information of the SOC to be integrated;

[0086] S2, sending the configuration file to the SOC automatic integration tool to generate an intermediate file; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating each SOC module according to a port of a preset port type based on a pipeline connection relationship of the SOC;

[0087] S3, sending the above intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file;

[0088] S4, integrating the SOC to be integrated based on the RTL integration file.

[0089] Optionally, in this embodiment, a person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0090] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0091] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0092] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0093] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0094] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0095] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A system on chip (SOC) integration method, characterized in that: include: Acquire a SOC configuration file of the SOC to be integrated, wherein the SOC configuration file includes configuration information of the SOC to be integrated; The configuration information includes the top-level RTL file of each SOC module and the pipeline connection relationship of the modules of the SOC to be integrated; Sending the configuration file to the SOC automatic integration tool to generate an intermediate file, including: reading the top-level RTL file from the SOC configuration file, and encapsulating each SOC module of the SOC to be integrated according to a preset port type based on the RTL file to obtain a first intermediate file; reading the pipeline connection relationship from the SOC configuration file; generating a second intermediate file including communication connections between each of the SOC modules based on the pipeline connection relationship; integrating the first intermediate file and the second intermediate file to obtain the intermediate file for the target code compilation tool to call; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating the ports of each SOC module according to the preset port type based on the pipeline connection relationship of the SOC; Sending the intermediate file to a target code compilation tool to obtain a register conversion level circuit RTL integration file; The SOC to be integrated is integrated based on the RTL integration file.

2. The method according to claim 1, characterized in that The configuration information includes the instantiation name of each SOC module; the second intermediate file including the communication connection between each SOC module is generated based on the pipeline connection relationship, including: Allocate a corresponding connection port to each SOC module of the instantiation name based on the pipeline connection relationship; Based on the connection relationship and the connection port, the second intermediate file including the communication connection between each SOC module of the instantiation name is generated.

3. The method according to claim 1, characterized in that After sending the intermediate file to the target code compilation tool to obtain the register conversion level circuit RTL integration file, the method further includes at least one of the following: Generate a log report file, wherein the log report file includes fault information during the integration process of the SOC to be integrated; Generate a file list of integration code files of the SOC to be integrated.

4. The method according to any one of claims 1 to 3, characterized in that The target code compilation tool includes a SCALA code compilation tool, and the sending of the intermediate file to the target code compilation tool to obtain a register conversion level circuit RTL integration file includes: The intermediate file is sent to the SCALA code compilation tool to obtain the RTL integration file.

5. The method according to claim 1, characterized in that The preset port types include: Stream type, AXI4 type, AXILite type, and dual-port RAM type.

6. A system on chip (SOC) integrated device, characterized in that: include: An acquiring unit, acquiring a SOC configuration file of the SOC to be integrated, wherein the SOC configuration file includes configuration information of the SOC to be integrated; The configuration information includes the top-level RTL file of each SOC module and the pipeline connection relationship of the modules of the SOC to be integrated; A first generating unit is used to send the configuration file to the SOC automatic integration tool to generate an intermediate file, including: reading the top-level RTL file from the SOC configuration file, and encapsulating each SOC module of the SOC to be integrated according to a preset port type based on the RTL file to obtain a first intermediate file; reading the pipeline connection relationship from the SOC configuration file; generating a second intermediate file including communication connections between each of the SOC modules based on the pipeline connection relationship; integrating the first intermediate file and the second intermediate file to obtain the intermediate file for the target code compilation tool to call; wherein the intermediate file is a file obtained by integrating the first intermediate file and the second intermediate file, the first intermediate file is a file obtained by encapsulating each SOC module of the SOC to be integrated according to a preset port type, and the second intermediate file is a file obtained by encapsulating the ports of each SOC module according to the preset port type based on the pipeline connection relationship of the SOC; A processing unit, used for sending the intermediate file to a target code compilation tool to obtain a register conversion level circuit RTL integration file; An integration unit is used to integrate the SOC to be integrated based on the RTL integration file.

7. The device according to claim 6, characterized in that The configuration information includes the top-level RTL file of each SOC module and the pipeline connection relationship of the modules of the SOC to be integrated; The first generating unit comprises: A first reading module, configured to read the top-level RTL file from the SOC configuration file, and encapsulate each SOC module of the SOC to be integrated according to a preset port type based on the RTL file to obtain the first intermediate file; A second reading module, used for reading the pipeline connection relationship from the SOC configuration file; A generating module, configured to generate a second intermediate file including a communication connection between each of the SOC modules based on the pipeline connection relationship; The encapsulation module is used to integrate the first intermediate file and the second intermediate file to obtain the intermediate file for the target code compilation tool to call.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 5 when executed.

9. An electronic device, comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 5 through the computer program.