IP management system and IP management method

Through the configuration management module and parsing module of the IP management system, abstract syntax trees and models are generated, which solves the problem of complex IP-level SoC design processes, achieves fast and accurate IP calling and management, and improves design efficiency and accuracy.

CN111709215BActive Publication Date: 2024-09-24HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010484741.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-01
Publication Date
2024-09-24
Estimated Expiration
2040-06-01

AI Technical Summary

Technical Problem

The existing IP-level SoC design process is complicated and lengthy, resulting in excessive repetitive work and reduced accuracy, making it difficult to keep up with the growth in chip complexity.

Method used

Design an IP management system, including a configuration management module, a syntax parsing module, a register parsing module, a model generation module, a global inspection module and an integration module. It assists development through configuration files to generate abstract syntax trees, port abstract models and register address mapping models. , automatically generate SPEC and UVM verification files to achieve fast and accurate calling and management of IP.

Benefits of technology

It improves chip design efficiency and accuracy, reduces designer workload, achieves IP reusability and cross-project continuity, shortens the development cycle, and ensures compatibility with other CAD tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

An IP management system and an IP management method, the present invention relates to an IP management system and an IP management method. The purpose of the present invention is to solve the problem that the existing IP-level SoC design process is complicated and lengthy, and as the system increases, it causes too much repetitive work and the accuracy rate decreases. An IP management system includes: the IP management system includes a configuration management module, a syntax parsing module, a register parsing module, a model generation module, a text generation module, a global inspection module and an integration module; the configuration file content includes the source file of each soft IP, hard IP or the location information of the model file of each soft and hard IP, the macro information of each soft and hard IP, the path information of each soft and hard IP, and the SystemRDL file location information corresponding to each soft and hard IP or the custom register information description file location information. The present invention is used in the field of digital chip design and its EDA tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an IP management system and an IP management method. Background Art

[0002] As the IC industry continues to evolve, the functions and scale of chips are gradually improved and enhanced, which has led to a sharp increase in the scale of ICs. At the same time, competition in the chip industry has also continued to increase. How can products respond to the market quickly? How can they effectively reduce system development costs while meeting multi-functions, high performance, and low power consumption? How can they shorten the development cycle of chip design, verification, and implementation processes for continuous updates and iterations, thereby accelerating time to market? These have become the focus of market attention. In the nano era, the manufacturing capacity of integrated circuits continues to develop steadily according to Moore's Law, relying on various emerging technologies. However, the design method based on the cell library has long been unable to meet the increasingly complex requirements. The existing design capabilities and EDA tool capabilities are far behind the development of semiconductor processes. How to improve design capabilities and efficiency and keep up with the pace of chip complexity growth has become a research hotspot.

[0003] The idea of ​​"reusability" divides the system into several modules according to functions, and directly uses various components and existing knowledge and experience to build an integrated chip with specific functions, avoiding starting from scratch, and directly raising the design level from the unit module to the system structure, without having to get stuck in the quagmire of module implementation, thereby reducing the complexity of the overall system design and improving efficiency. The emergence of reusable design methodology has become a leap in the history of integrated circuit design, and has been widely recognized by the industry and has become the mainstream. However, using IP level reuse, how to make IPs from different manufacturers compatible, how to use them quickly and accurately, and how to use the continuity and reusability between different project projects to reduce the design workload requires a relatively complete management method. With the support of the management platform, the corresponding IP can be quickly configured, found and used, improving the design efficiency of the system chip, while reducing the risk of design and development. Therefore, it is very necessary to design a universal, efficient and accurate reusable IP management platform for the use and management of IP. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the existing IP-level SoC design process is complicated and lengthy, and as the system increases, too much repetitive work leads to a decrease in accuracy, and to propose an IP management system and an IP management method.

[0005] An IP management system includes:

[0006] The IP management system includes a configuration management module, a syntax parsing module, a register parsing module, a model generation module, a text generation module, a global check module and an integration module.

[0007] The specific process of an IP management method of an IP management system is as follows:

[0008] Step 1: Perform corresponding configuration work on all managed IPs according to the requirements of the IP management system, that is, write the configuration file of the IP management system;

[0009] The configuration file content includes the location information of the source file of each soft IP and hard IP or the model file of each soft IP and hard IP, the macro information of each soft IP and hard IP, the path information of each soft IP and hard IP, and the SystemRDL file location information corresponding to each soft IP and hard IP or the custom register information description file location information;

[0010] Step 2: After the configuration file is passed to the IP management system, the configuration management module of the IP management system extracts and distributes the content of the configuration file in step 1, and processes the configuration of the IP management system itself and the control information of the IP management system itself;

[0011] The configuration management module extracts the control information of the IP management system itself, and the control information of the IP management system itself includes the startup status of each module in the IP management system and the configuration of the working status;

[0012] The configuration management module of the IP management system parses the configuration file, finds the source file or model file corresponding to each soft and hard IP according to the location information and path information of each soft and hard IP in the configuration file, finds the macro corresponding to each soft and hard IP, and finds the SystemRDL file or custom register information description file corresponding to each soft and hard IP;

[0013] The configuration management module of the IP management system distributes the location information and path information of each soft and hard IP, the source files or model files corresponding to each soft and hard IP, and the macros corresponding to each soft and hard IP to the Verilog syntax compiler and the syntax parsing module of the IP management system;

[0014] The configuration management module of the IP management system distributes the location information and path information of each soft and hard IP, and the SystemRDL file or custom register information description file corresponding to each soft and hard IP, and passes it to the SystemRDL Compiler and the register parsing module of the IP management system;

[0015] Step 3: The IP management system uses the Verilog syntax compiler to extract and parse the contents of the source files of the soft and hard IPs or the model files of the soft and hard IPs to generate an abstract syntax tree;

[0016] The syntax parsing module of the IP management system uses a traversal algorithm to traverse the abstract syntax tree AST to obtain the three types of information: the hierarchy, parameterization, and port of soft and hard IPs; and further obtains the top level of IP based on the hierarchy of soft and hard IPs;

[0017] The syntax parsing module of the IP management system passes the obtained soft and hard IP hierarchy, parameterization, port and top-level information to the model generation module of the IP management system;

[0018] The model generation module of the IP management system uses the hierarchy, parameterization, ports and top-level information of the soft and hard IPs extracted by the syntax parsing module of the IP management system to construct a port abstract model for the ports of each soft and hard IP;

[0019] Step 4: The IP management system processes the SystemRDL file content obtained by the configuration management module of the IP management system from the configuration file with the help of the SystemRDL Compiler tool to generate a tree structure;

[0020] The register parsing module of the IP management system processes the tree structure, obtains the register bit width, type, and address information of each soft and hard IP, and passes the register bit width, type, and address information of each soft and hard IP to the model generation module of the IP management system;

[0021] The register parsing module of the IP management system uses custom register description information to directly extract the register width, type, and address information of each soft and hard IP without going through SystemRDLCompiler, and passes it to the model generation module of the IP management system to build a register address mapping abstract model for the registers of each soft and hard IP.

[0022] Step 5, the configuration management module of the IP management system controls the text generation module of the IP management system according to the control information of the IP management system itself extracted in step 2, so that the text generation module of the IP management system automatically generates SPEC according to demand, the verification file of UVM, and the C language header file text information containing the IP register address;

[0023] Step 6: The global check module of the IP management system will check the existence and legitimacy of all information in the configuration file of the IP management system in step 1;

[0024] The global check module of the IP management system will check the legitimacy of the port abstract model and register address mapping abstract model generated by the model generation module of the IP management system, including checking the legitimacy of the direction, bit width, name, and parameters of each port of the port abstract model of each soft and hard IP, checking the legitimacy of the name, bit width, address, type, and the correctness of the mathematical relationship between the address and bit width of the register address mapping abstract model of each soft and hard IP, and correcting the errors or generating error warnings;

[0025] The global check module of the IP management system checks the SPEC and UVM verification files generated by the text generation module of the IP management system, and checks the availability of the C language header files containing the IP register addresses;

[0026] Step 7. The integration module of the IP management system will integrate the source files or model files of each soft and hard IP, the macros and path information of each soft and hard IP, the SystemRDL files or custom register information description files of each soft and hard IP obtained by the configuration management module of the IP management system; the hierarchy, parameterization, ports and top-level information of each soft and hard IP parsed by the syntax parsing module of the IP management system; the abstract port model and register address mapping abstract model generated by the model generation module of the IP management system; and the text information generated by the text generation module of the IP management system to generate a complete IP management system, add it to the management library, and wait for user calls;

[0027] Step 8. Repeat steps 3 to 7 until the information of all managed IPs in step 1 is integrated to generate a complete IP management system, which is added to the management library and waits for user calls.

[0028] The beneficial effects of the present invention are:

[0029] The present invention utilizes the reusable concept to improve the chip design process through a management platform, and can use configuration files to assist development, reduce the work of chip designers, improve design efficiency, and ensure design accuracy. It is an auxiliary development tool that shortens the development process and improves efficiency and accuracy.

[0030] In different chip development projects or migration changes of the same project, in the horizontal and vertical updates of the project, in addition to the reusability of IP, the configuration files of the management platform can still be used multiple times, avoiding the problem of having to start over every time the project is completed. Figure 1As shown in the figure, the IP used in project A0 is a_0, b_0, and c_0. With the iterative updates of different projects, if the configuration file contains all available IPs, the management platform can be used in all projects A0-A2, B0, and C0 without changes. If other modules are introduced, it only needs to update the platform configuration to work, which increases the probability of reuse and improves efficiency. Secondly, the management platform can automatically generate SPEC, UVM verification models and related driver development files, improve the parallelism and accuracy of chip development, ensure compatibility with other CAD tools, and reduce the work of developers. Solve the problems of excessive duplication of existing IP-level SoC design processes and the decrease in accuracy as the system increases, improve the existing chip development and design process, and realize the IP management platform designed for fast and accurate IP calls to improve design efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is a structural block diagram of the IP management system of the present invention;

[0032] Figure 2 This is an example diagram of the reusability of IP management of the present invention;

[0033] Figure 3 This is an example diagram of the configuration file format specification of the present invention;

[0034] Figure 4 A flow chart of a method for generating a port abstract model by a model generating module of the present invention;

[0035] Figure 5 A flow chart of a method for generating a register address mapping abstract model by a model generation module of the present invention. DETAILED DESCRIPTION

[0036] Specific implementation method 1: Figure 1 As shown, in this embodiment, an IP management system includes:

[0037] The IP management system is mainly used to manage and model soft and hard IPs, and provide basic services for IP-level instantiation and interconnection in chip design;

[0038] The IP management system mainly includes configuration management module, syntax parsing module, register parsing module, model generation module, text generation module, global check module and integration module.

[0039] Specific implementation method 2: This implementation method is different from specific implementation method 1 in that: the configuration management module is used for parsing, extracting and distributing configuration files of the IP management system;

[0040] The configuration file content includes the location information of the source file of each soft IP and hard IP or the model file of each soft IP and hard IP, the macro information of each soft IP and hard IP, the path information of each soft IP and hard IP, and the SystemRDL file location information corresponding to each soft IP and hard IP or the custom register information description file location information;

[0041] The model files of soft and hard IP are the same as the source files, which are provided in the IP and already exist;

[0042] The files provided by soft and hard IPs include at least one of the source files or model files, which can be all or only one. The IP management system can manage such IPs.

[0043] Generally speaking, for soft IP, it is usually in the form of source files, and hard IP is in the form of model files, but it is not necessarily the case. It also depends on what the IP provides. Therefore, we will talk about the source files or model files of soft and hard IP together;

[0044] The other steps and parameters are the same as those in the first embodiment.

[0045] Specific implementation method three: This implementation method is different from specific implementation methods one or two in that: the grammar analysis module is specifically:

[0046] When the source files of soft and hard IPs or the model files of soft and hard IPs are processed by the Verilog syntax compiler (such as Pyverilog, um... compiler processing should be well known, Pyverilog is a compiler front-end tool) to generate an abstract syntax tree (AST), the syntax parsing module uses a traversal algorithm to process the abstract syntax tree to obtain the three types of information: hierarchy, parameterization, and port of soft and hard IPs.

[0047] The other steps and parameters are the same as those in the first or second embodiment.

[0048] Specific implementation method 4: This implementation method is different from any one of the specific implementation methods 1 to 3 in that the register parsing module is specifically:

[0049] When the SystemRDL file is processed by the SystemRDL Compiler to generate a tree structure, or a custom register information description file is provided in the soft or hard IP, the register parsing module is used to process the tree structure or the custom register information description file to obtain the bit width, type, and address information of each register in the soft or hard IP (from the perspective of expression, the IP is presented in the form of source files or model files, and the content of these files is the source code of the IP. The logical meaning of these source codes contains register information, and the accurate register can be more clearly obtained from the corresponding SystemRDL file);

[0050] The custom register information description file is a format file containing the bit width, type, and address information of each register in the soft and hard IP.

[0051] (SystemRDL is also a kind of format file. SystemRDL format is an industrial standard. Some IPs do not provide SystemRDL files, so the IP management platform may customize a format to achieve the same function as SystemRDL. For those who use the IP management platform, they can use SystemRDL or a customized format, which is more flexible).

[0052] The other steps and parameters are the same as those in Specific Embodiments 1 to 3.

[0053] Specific implementation method 5: This implementation method is different from specific implementation methods 1 to 4 in that: the model generation module is used for port modeling and register modeling of soft and hard IPs;

[0054] For the port model, according to the obtained IP level, IP parameterization, IP ports, bit width of each port, input and output direction, and port name, this information is packaged to build data structures such as classes or structures, and handed over to the global inspection module for inspection, including checking bit width (some bit widths contain parameters, so the parameters are checked at the same time, and some bit widths do not have parameters, so the legality is checked), checking the legality of the direction, checking the uniqueness of the name, checking the correctness of the level, and returning the output to the model generation module after the inspection;

[0055] For the register model, according to the offset address, name, bit width, read / write type of each register, this information is packaged to build data structures such as classes or structures, and then sent to the global inspection module for inspection to check the mathematical relationship between the offset address and bit width, the uniqueness of the name, and the correctness of the type. After the inspection, it is returned to the model to generate module output;

[0056] The other steps and parameters are the same as those in Specific Embodiments 1 to 4.

[0057] Specific implementation method six: This implementation method is different from any of specific implementation methods one to five in that: the text generation module is used to automatically generate SPEC, UVM verification files, C language header files containing IP register addresses and other text information based on the information obtained by the register parsing module (the register parsing module is used to process tree structures or customized register information description files to achieve the acquisition of three types of information: bit width, type, and address of each register in the soft and hard IP;); (these files can be partially generated, fully generated, or not generated. The specific content to be generated depends on how the users of the IP management platform use it, and it is also relatively flexible) (this "etc. text information" can also generate corresponding IP-XACT, HTML).

[0058] SPEC (specification): technical specification documents, which exist in various forms such as PDF, Word, and web pages. The IP management system mainly generates technical specification documents in the form of web pages (HTML);

[0059] UVM (universal verification methodology): Universal verification methodology, specifically a syntax based on SystemVerilog. The IP management system mainly generates UVM verification files;

[0060] The other steps and parameters are the same as those in Specific Implementations 1 to 5.

[0061] Specific implementation seven: This implementation differs from any one of specific implementations one to six in that: the global check module is used to check the legality and availability of the port models of the soft and hard IPs generated by the model generation module, the register model, and the text information generated by the text generation module, and to perform error correction and error warning information at the same time, to ensure the correctness of the port models of the soft and hard IPs generated by the model generation module, the register model, and the text information generated by the text generation module.

[0062] The other steps and parameters are the same as those in Specific Embodiments 1 to 6.

[0063] Specific implementation eight: This implementation differs from any one of specific implementations one to seven in that: the integration module is used to integrate the source files of each soft and hard IP, the model files, the port models of the soft and hard IPs generated by the model generation module, the register model, and the text information generated by the text generation module to generate a complete IP management system, add it to the management library, and wait for user calls; the IP management system provides services for IP instantiation and interconnection during chip design, as well as the system architecture definition of the chip.

[0064] The other steps and parameters are the same as those in Specific Embodiments 1 to 7.

[0065] Specific implementation method 9: The specific process of an IP management method in this implementation method is as follows:

[0066] Step 1: Perform corresponding configuration work on all managed IPs according to the requirements of the IP management system, that is, write the configuration file of the IP management system;

[0067] The configuration file content includes the location information of the source file of each soft IP and hard IP or the model file of each soft IP and hard IP, the macro information of each soft IP and hard IP, the path information of each soft IP and hard IP, and the SystemRDL file location information corresponding to each soft IP and hard IP or the custom register information description file location information;

[0068] (SystemRDL is also a kind of format file. SystemRDL format is an industrial standard. Some IPs do not provide SystemRDL files, so the IP management platform may customize a format to achieve the same function as SystemRDL. For those who use the IP management platform, they can use SystemRDL or a customized format, which is more flexible).

[0069] Step 2: After the configuration file is passed to the IP management system, the configuration management module of the IP management system extracts and distributes the content of the configuration file in step 1, and processes the configuration of the IP management system itself (configuration of the working state, such as the target address of the operation, whether to start the file generation module to generate file information, the path location of the file information generated by the file generation module, the name of the file generated by the file generation module, whether to enable the register parsing module, etc.) and the control information of the IP management system itself;

[0070] The configuration management module extracts the control information of the IP management system itself, and the control information of the IP management system itself includes the startup status of each module in the IP management system (configuration management module, syntax parsing module, register parsing module, model generation module, text generation module, global inspection module and integration module), the configuration of the working status (such as the target address of the operation, whether the file generation module is started to generate file information, the path location of the file information generated by the file generation module, the name of the file generated by the file generation module, whether the register parsing module is enabled, etc.);

[0071] The configuration management module of the IP management system parses the configuration file, finds the source file or model file corresponding to each soft and hard IP according to the location information and path information of each soft and hard IP in the configuration file, finds the macro corresponding to each soft and hard IP, and finds the SystemRDL file or custom register information description file corresponding to each soft and hard IP;

[0072] The configuration management module of the IP management system distributes the location information and path information of each soft and hard IP, the source files or model files corresponding to each soft and hard IP, and the macros corresponding to each soft and hard IP to the Verilog syntax compiler (such as Pyverilog) and the syntax parsing module of the IP management system;

[0073] The configuration management module of the IP management system distributes the location information and path information of each soft and hard IP, and the SystemRDL file or custom register information description file corresponding to each soft and hard IP, and passes it to the SystemRDL Compiler and the register parsing module of the IP management system;

[0074] Step 3: The IP management system uses a Verilog syntax compiler (or compiler front-end tool, such as Pyverilog) to extract and parse the contents of the source files of soft and hard IPs or the model files of soft and hard IPs, and generate an abstract syntax tree (AST) (basically all compilers generate AST, but different compilers may generate AST in different ways. The process is determined by different compilers, but the results are similar).

[0075] The syntax parsing module of the IP management system uses a traversal algorithm to traverse the abstract syntax tree AST to obtain the three types of information: the hierarchy, parameterization, and port of soft and hard IPs; and further obtains the top layer of IP according to the hierarchy of soft and hard IPs (an IP is generally composed of multiple modules, and the large module is composed of small modules, such as this, so there is a concept of the top layer);

[0076] The syntax parsing module of the IP management system passes the obtained soft and hard IP hierarchy, parameterization, port and top-level information to the model generation module of the IP management system;

[0077] The model generation module of the IP management system uses the hierarchy, parameterization, ports and top-level information of the soft and hard IPs extracted by the syntax parsing module of the IP management system to build a port abstract model for each soft and hard IP port (packaging this information to build data structures such as classes or structures);

[0078] Step 4: The IP management system processes the SystemRDL file content obtained by the configuration management module of the IP management system from the configuration file with the help of the SystemRDL Compiler (SystemRDL compiler, compiler front-end tool) tool to generate a tree structure;

[0079] The register parsing module of the IP management system processes the tree structure, obtains the register bit width, type, and address information of each soft and hard IP, and passes the register bit width, type, and address information of each soft and hard IP to the model generation module of the IP management system;

[0080] The register parsing module of the IP management system can also use the custom register description information to directly extract the register width, type, and address information of each soft and hard IP without going through the SystemRDL Compiler, and pass it to the model generation module of the IP management system to build a register address mapping abstract model for the registers of each soft and hard IP (packaging this information to build data structures such as classes or structures), such as Figure 5 shown.

[0081] Step 5, the configuration management module of the IP management system controls the text generation module of the IP management system according to the control information of the IP management system itself extracted in step 2, so that the text generation module of the IP management system automatically generates SPEC according to demand, the verification file of UVM, the text information such as the C language header file containing the IP register address;

[0082] Step 6: The global check module of the IP management system will check the existence and legitimacy of all information in the configuration file of the IP management system in step 1 (all information mentioned in step 1);

[0083] The global check module of the IP management system will check the legitimacy of the port abstract model and register address mapping abstract model generated by the model generation module of the IP management system, including checking the legitimacy of the direction, bit width, name, and parameters of each port of the port abstract model of each soft and hard IP, checking the legitimacy of the name, bit width, address, type, and the correctness of the mathematical relationship between the address and bit width of the register address mapping abstract model of each soft and hard IP, and correcting the errors or generating error warnings;

[0084] The global check module of the IP management system checks the SPEC and UVM verification files generated by the text generation module of the IP management system, and checks the availability of the C language header files containing the IP register addresses to ensure correctness;

[0085] Step 7. The integration module of the IP management system will integrate the source files or model files of each soft and hard IP obtained by the configuration management module of the IP management system, the macros of each soft and hard IP, the path information, the SystemRDL files of each soft and hard IP or the custom register information description files; the hierarchy, parameterization, ports and top-level information of each soft and hard IP parsed by the syntax parsing module of the IP management system; the hierarchy, parameterization, ports and top-level information of the soft and hard IP; the port abstract model and register address mapping abstract model generated by the model generation module of the IP management system; and the text information generated by the text generation module of the IP management system to generate a complete IP management system, add it to the management library, and wait for user calls; provide services for IP instantiation and interconnection during chip design, as well as chip system architecture definition.

[0086] Step 8. Repeat steps 3 to 7 until the information of all managed IPs in step 1 is integrated to generate a complete IP management system, which is added to the management library and waits for user calls.

[0087] The IP management system uses configuration management modules, Pyverilog and SystemRDL parsing tools, syntax parsing modules, register parsing modules, model generation modules, text generation modules, global inspection modules and integration modules to manage IP, thereby assisting the chip development process, reducing the content that chip development designers care about and improving efficiency. (Step 7 basically completes the management of one IP. If the configuration file of step 1 contains multiple IPs, steps 3 to 7 are basically repeated).

[0088] like Figure 2 As shown in the figure, the IP used in project A0 is a_0, b_0, and c_0. With the iterative updates of different projects, if the configuration file contains all available IPs, the management platform can be used in all projects A0-A2, B0, and C0 without changes. If other modules are introduced, it only needs to update the platform configuration to work, which increases the probability of reuse and improves efficiency. Secondly, the management platform can automatically generate SPEC, UVM verification models and related driver development files, improve the parallelism and accuracy of chip development, ensure compatibility with other CAD tools, and reduce the work of developers. Solve the problems of excessive duplication of existing IP-level SoC design processes and the decrease in accuracy as the system increases, improve the existing chip development and design process, and realize the IP management platform designed for fast and accurate IP calls to improve design efficiency.

[0089] The following examples are used to verify the beneficial effects of the present invention:

[0090] Embodiment 1:

[0091] The present invention uses JSON to implement the configuration of the management platform and uses Python to implement all the functions of the IP management platform. First, for the use of the management platform, corresponding configuration is performed through JSON for different projects or existing IPs, including the source file of each IP, including the path, SystemRDL file or model file and other related information. The JSON configuration template of the IP management platform is as follows Figure 3 The configuration management module of the management platform will automatically parse the configuration files that meet the requirements, obtain the main information of the source files, and distribute and transmit the information to each module in the management platform according to the requirements.

[0092] The management platform will use the Pyverilog tool and the information of the configuration management module to generate an abstract syntax tree. Figure 4 As shown in the figure, the iterative search algorithm of platform 1 is used to search for the instantiation content of each module in each IP through precise search, regular search, fuzzy search and other methods to determine the hierarchical relationship. According to the top-level module of the IP, the parameterization information and the top-level port conditions are obtained, including the port name, direction, bit width, etc. of each signal. After that, the management platform establishes the port abstract model of the IP through the model generation module, and checks its own structure and the generated model to ensure the accuracy of the model. The generated port abstract model provides guarantee for the instantiation and interconnection of each IP in the management platform, thereby improving the efficiency of design and development.

[0093] The management platform uses the SystemRDL Compiler tool to parse the SystemRDL file and generate a corresponding tree structure for each IP. At the same time, the platform's customized parsing module can also be used to obtain register information. Through further processing by the platform, address mapping information is obtained, including the name, address, bit width, type, etc. of the register. The management platform uses the model generation module to generate the corresponding register abstract model and check the accuracy of the model. The model provides support for the system architecture of SoC development in the management platform, improving development efficiency while ensuring design accuracy. Furthermore, the management platform uses this information to generate UVM files, software development header files, HTML and other information through the platform's text generation module, reducing the work of chip development and improving the parallelism of chip design engineering.

[0094] Finally, the integration module of the management platform will organize and further check the IP source files, SystemRDL files, and register description files obtained by the configuration management module; the useful macro definitions and parameterized information screened out through iterative search and analysis; and the port abstract model and address mapping abstract model generated by the model generation module, and add them to the library. The IP management platform is used to assist in the chip development process. For each IP developed in the SoC, the macro definition and parameterized information are changed through the control management platform, and the project directory and corresponding files are automatically generated and copied. The port model is used to develop instantiation and interconnection, and the address mapping model is used to define the system structure, so as to use the IP management platform to achieve rapid design of IC development project engineering.

[0095] The present invention may also have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.

Claims

1. An IP management system, characterized in that: The system comprises: The IP management system includes a configuration management module, a syntax parsing module, a register parsing module, a model generation module, a text generation module, a global check module and an integration module; The configuration management module is used for parsing, extracting and distributing configuration files of the IP management system; The configuration file content includes the location information of the source file of each soft IP and hard IP or the model file of each soft IP and hard IP, the macro information of each soft IP and hard IP, the path information of each soft IP and hard IP, and the SystemRDL file location information corresponding to each soft IP and hard IP or the custom register information description file location information; The syntax parsing module is specifically: When the source files of soft and hard IP or the model files of soft and hard IP are processed by the Verilog syntax compiler to generate an abstract syntax tree, the syntax parsing module uses a traversal algorithm to process the abstract syntax tree to obtain the three types of information: hierarchy, parameterization, and port of soft and hard IP. The register parsing module is specifically: When the SystemRDL file is processed by the SystemRDL Compiler to generate a tree structure, or a custom register information description file is provided in the soft or hard IP, the register parsing module is used to process the tree structure or the custom register information description file to obtain the bit width, type, and address information of each register in the soft or hard IP; The custom register information description file is a format file containing the bit width, type, and address information of each register in the soft and hard IP; The model generation module is used for port modeling and register modeling of soft and hard IPs; The text generation module is used to automatically generate SPEC, UVM verification files, and C language header file text information containing IP register addresses according to the information obtained by the register parsing module; The global inspection module is used to check the legitimacy and availability of the port models of the soft and hard IPs, the register models and the text information generated by the text generation module, and to perform error correction and error warning information to ensure the correctness of the port models of the soft and hard IPs, the register models and the text information generated by the text generation module. The integration module is used to integrate the source files and model files of each soft and hard IP, the port models and register models of the soft and hard IP generated by the model generation module, and the text information generated by the text generation module to generate a complete IP management system, add it to the management library, and wait for user calls.

2. The IP management method of the IP management system according to claim 1, characterized in that: The specific process of the method is: Step 1: Perform corresponding configuration work on all managed IPs according to the requirements of the IP management system, that is, write the configuration file of the IP management system; The configuration file content includes the location information of the source file of each soft IP and hard IP or the model file of each soft IP and hard IP, the macro information of each soft IP and hard IP, the path information of each soft IP and hard IP, and the SystemRDL file location information corresponding to each soft IP and hard IP or the custom register information description file location information; Step 2: After the configuration file is passed to the IP management system, the configuration management module of the IP management system extracts and distributes the content of the configuration file in step 1, and processes the configuration of the IP management system itself and the control information of the IP management system itself; The configuration management module extracts the control information of the IP management system itself, which includes the startup status of each module in the IP management system and the configuration of the working status; The configuration management module of the IP management system parses the configuration file, finds the source file or model file corresponding to each soft and hard IP according to the location information and path information of each soft and hard IP in the configuration file, finds the macro corresponding to each soft and hard IP, and finds the SystemRDL file or custom register information description file corresponding to each soft and hard IP; The configuration management module of the IP management system distributes the location information and path information of each soft and hard IP, the source files or model files corresponding to each soft and hard IP, and the macros corresponding to each soft and hard IP to the Verilog syntax compiler and the syntax parsing module of the IP management system; The configuration management module of the IP management system distributes the location information and path information of each soft and hard IP, and the SystemRDL file or custom register information description file corresponding to each soft and hard IP, and passes it to the SystemRDL Compiler and the register parsing module of the IP management system; Step 3: The IP management system uses the Verilog syntax compiler to extract and parse the contents of the source files of the soft and hard IPs or the model files of the soft and hard IPs to generate an abstract syntax tree; The syntax parsing module of the IP management system uses a traversal algorithm to traverse the abstract syntax tree AST to obtain the three types of information: the hierarchy, parameterization, and port of soft and hard IPs; and further obtains the top level of IP based on the hierarchy of soft and hard IPs; The syntax parsing module of the IP management system passes the obtained soft and hard IP hierarchy, parameterization, port and top-level information to the model generation module of the IP management system; The model generation module of the IP management system uses the hierarchy, parameterization, ports and top-level information of the soft and hard IPs extracted by the syntax parsing module of the IP management system to construct a port abstract model for the ports of each soft and hard IP; Step 4: The IP management system processes the SystemRDL file content obtained by the configuration management module of the IP management system from the configuration file with the help of the SystemRDL Compiler tool to generate a tree structure; The register parsing module of the IP management system processes the tree structure, obtains the register bit width, type, and address information of each soft and hard IP, and passes the register bit width, type, and address information of each soft and hard IP to the model generation module of the IP management system; The register parsing module of the IP management system uses the custom register description information to directly extract the register width, type, and address information of each soft and hard IP without going through SystemRDLCompiler, and passes it to the model generation module of the IP management system to build a register address mapping abstract model for the registers of each soft and hard IP; Step 5, the configuration management module of the IP management system controls the text generation module of the IP management system according to the control information of the IP management system itself extracted in step 2, so that the text generation module of the IP management system automatically generates the verification file of SPEC, UVM according to the demand, and contains the C language header file text information of the IP register address; Step 6: The global check module of the IP management system will check the existence and legitimacy of all information in the configuration file of the IP management system in step 1; The global check module of the IP management system will check the legitimacy of the port abstract model and register address mapping abstract model generated by the model generation module of the IP management system, including checking the legitimacy of the direction, bit width, name, and parameters of each port of the port abstract model of each soft and hard IP, checking the legitimacy of the name, bit width, address, type, and the correctness of the mathematical relationship between the address and bit width of the register address mapping abstract model of each soft and hard IP, and correcting the errors or generating error warnings; The global check module of the IP management system checks the SPEC and UVM verification files generated by the text generation module of the IP management system, and checks the availability of the C language header files containing the IP register addresses; Step 7: The integration module of the IP management system will obtain the source files or model files of each soft and hard IP, the macros and path information of each soft and hard IP, the SystemRDL files or custom register information description files of each soft and hard IP through the configuration management module of the IP management system; The hierarchy, parameterization, ports and top-level information of each soft and hard IP parsed by the syntax parsing module of the IP management system; And the information of port abstract model and register address mapping abstract model generated by the model generation module of the IP management system; The text information generated by the text generation module of the IP management system is integrated to generate a complete IP management system, added to the management library, and waits for user calls; Step 8. Repeat steps 3 to 7 until the information of all managed IPs in step 1 is integrated to generate a complete IP management system, which is added to the management library and waits for user calls.