A chip documentation automated generation system

By designing an automated chip documentation generation system, which utilizes a chip file parsing module and a document template library, chip documentation is automatically generated, solving the problem of low efficiency in chip documentation generation and achieving cost reduction and efficiency improvement.

CN121031542BActive Publication Date: 2026-01-30METAX INTEGRATED CIRCUITS (SHANGHAI) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511556290.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-29
Publication Date
2026-01-30
Estimated Expiration
2045-10-29

AI Technical Summary

Technical Problem

Chip documentation generation is inefficient and costly; existing technologies require additional scripting, leading to low efficiency.

Method used

Design an automated chip documentation generation system, including a chip file parsing module, a chip documentation template library, and a documentation generation module, which automatically extracts basic documentation data from chip files and generates chip documentation by combining it with document template parameters.

Benefits of technology

It reduces the cost of generating chip documentation, improves generation efficiency, and can automatically generate chip documentation without the need to write additional scripts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121031542B_ABST
    Figure CN121031542B_ABST
Patent Text Reader

Abstract

This invention relates to the field of chip technology, and more particularly to an automated chip documentation generation system, comprising M chip file parsing modules {A1, A2, ..., A...} m ,...,A M}, chip documentation template library and chip documentation generation module, A m For the m-th file parsing module; A m Used to obtain and parse the m-th type of chip file, generating the corresponding document basic data B. m The chip document template library is used to store the document template parameters {C1,C2,...,C} corresponding to the chip document templates. n ,...,C N}, C n The document template parameters are those corresponding to the nth chip document template; the document generation module is used to generate documents from A. m Obtain B from m And obtain B from the chip document template library. m Corresponding target C n Based on B m and B m Corresponding target C n Generate corresponding chip documentation. This invention reduces the cost and improves the efficiency of chip documentation generation.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the chip technical field, and particularly to a chip document automatic generation system. BACKGROUND

[0002] In the chip development process, a large number of chip documents need to be generated, such as register description documents, interface description documents, etc. The data amount of chip documents is huge, and some chip documents may include thousands of pages. If engineers directly write chip documents, the workload is huge. If chip documents are generated according to code files, additional scripts need to be written for each code file to generate chip documents, resulting in low generation efficiency and high generation cost of chip documents. Therefore, how to reduce the generation cost of chip documents and improve the generation efficiency of chip documents becomes a technical problem to be solved. SUMMARY

[0003] The present application aims to provide a chip document automatic generation system, which reduces the generation cost of chip documents and improves the generation efficiency of chip documents.

[0004] According to the first aspect of the present application, a chip document automatic generation system is provided, which comprises M chip file analysis modules {A1, A2,..., A m ,...,A M}, a chip document template library and a chip document generation module, A m is the mth file analysis module, the value range of m is 1 to M, and M is the total number of chip file analysis modules;

[0005] A m is used for obtaining the mth type of chip file for analysis and generating the corresponding document basic data B m ;

[0006] The chip document template library is used for storing the document template parameters {C1, C2,..., C n ,...,C N} corresponding to the chip document template, C n is the document template parameter corresponding to the nth chip document template, the value range of n is 1 to N, and N is the total number of chip document templates;

[0007] The document generation module is used for obtaining B m from A m , and obtaining the target C n corresponding to B m from the chip document template library, and generating the corresponding chip document based on B m and the target C n corresponding to B m .

[0008] Compared with existing technologies, this invention has significant advantages and beneficial effects. Through the above technical solution, the chip documentation automated generation system provided by this invention achieves considerable technological advancement and practicality, and has broad industrial application value, possessing at least the following beneficial effects:

[0009] This invention assigns a corresponding chip file parsing module to each type of chip file, which can directly extract the corresponding basic document data from each type of chip file without the need to write additional scripts. The chip document generation module automatically generates the corresponding target chip document by obtaining the target document template parameters from the chip document template library and combining them with the basic document data. This invention reduces the generation cost and improves the generation efficiency of chip documents. Attached Figure Description

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

[0011] Figure 1 This is a schematic diagram of an automated chip documentation generation system provided in an embodiment of the present invention. Detailed Implementation

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

[0013] This invention provides an automated chip documentation generation system, such as... Figure 1 As shown, it includes M chip file parsing modules {A1, A2, ..., A...} m ,...,A M}, chip documentation template library and chip documentation generation module, A m Let m be the m-th file parsing module, where m ranges from 1 to M, and M is the total number of file parsing modules in the chip.

[0014] A m Used to obtain and parse the m-th type of chip file, generating the corresponding document basic data B. mThat is, the system sets a corresponding chip file parsing module for each type of chip file, so that each type of chip file can directly generate a corresponding chip document based on the system automation, without the need to additionally write scripts. As an example, the chip file parsing module can be a module for parsing register code files to generate document basic data corresponding to registers based on the register code files. As another example, the chip file parsing module can also be a module for parsing chip interface code files to generate document basic data corresponding to chip interfaces based on the chip interface code files.

[0015] The chip document template library is used to store document template parameters {C1, C2,..., C n ,...,C N} corresponding to chip document templates. n Cn is a document template parameter corresponding to the nth chip document template, and n ranges from 1 to N, where N is the total number of chip document templates. It should be noted that the document template parameters corresponding to the chip document templates can be generated in advance in the chip document template library for direct use by the system.

[0016] The document generation module is used to obtain B m from A m , and obtain a target C m corresponding to B n from the chip document template library, and generate a corresponding chip document based on B m and the target C m corresponding to B n . It should be noted that after the basic data and the target document template parameters are determined, the basic data can be generated into a corresponding chip document according to the configuration in the target document template parameters. The same set of basic parameters can be selected to generate different chip documents by selecting different target document template parameters, and the corresponding target document template parameters can be selected according to actual application requirements, which greatly improves the generation efficiency of chip documents.

[0017] As an embodiment, the document basic data includes a document set {te1, te2,..., te x ,...,te X}, a table set {ta1, ta2,..., ta y ,...,ta Y}, a picture set {P1, P2,..., P z ,...,P Z}, a file header header, a title set {ti1, ti2,..., ti e ,...,ti E}, and a relationship tree. Wherein, te xis the xth document in the document base data, x is in the range of 1 to X, X is the total number of documents in the document set, ta y is the yth table in the document base data, y is in the range of 1 to Y, Y is the total number of tables in the table set, P z is the zth picture in the document base data, z is in the range of 1 to Z, Z is the total number of pictures in the picture set, ti e is the eth title in the document base data, e is in the range of 1 to E, E is the total number of titles in the title set. It should be noted that the structures of the document base data generated by different chip file parsing modules are consistent, and are all composed of a document set, a table set, a picture set, a file header header, a title set and a relationship tree. The specific data contents in the base data of different chip files are different. In the base data, there is only one file header header, the document set can include one or more documents, or can be empty; the title set can include one or more titles, or can be empty; the table set can include one or more tables, or can be empty; the picture set can include one or more pictures, or can be empty, and is flexibly set according to the specific application scene.

[0018] As an embodiment, the relationship tree includes a plurality of nodes, the plurality of nodes are hierarchically arranged, each node is composed of one of te x , ta y , P z , header, ti e , or composed of a plurality of associations of te x , ta y , P z , header, ti e . The association relationship between te x , ta y , P z , header, ti e includes at least one association between te x and at least one ta y , at least one association between te x and at least one P z , at least one association between ta y and at least one P z , at least one association between ti e and at least one te x , at least one association between ti e and at least one ta yThe document set, the table set, the picture set, the header, and the title set store all data extracted from the chip file, and the relationship tree defines the association and sequence relationship between all data extracted from the chip file, and the same document, title, table, picture, and the like can be reused in different nodes of the relationship tree.

[0019] As an embodiment, the system further includes a document template parameter generation module configured to obtain a chip document template, parse the obtained chip document template to generate corresponding document template parameters, and store the generated document template parameters in the chip document template library. Based on the document template parameter generation module, a chip document template can be added in the chip document template library to generate corresponding document template parameters according to application requirements.

[0020] As an embodiment, the document template parameters corresponding to the chip document template include font, size, position, and color of the header, font, size, position, and color of each text type, font, size, position, and color of each table type, and font, size, position, and color of each title type, where the position can be specifically center, left, right, and the like. The document structure information includes table type sequence, document type sequence, display relationship between text and table, and display relationship between picture and text. The display relationship between text and table includes text and table interlacing, only outputting text without outputting table, and only outputting table without outputting text. The display relationship between picture and text includes picture insertion into text and text surrounding picture.

[0021] As an embodiment, the document generation module is configured to obtain each node in a top-down order, obtain the target chip document template corresponding to each node based on the target chip document template library and the document template parameter generation module, and generate the content corresponding to each node in the target chip document according to the document template parameters in the target chip document template. n In the target chip document, the content corresponding to each node is generated. It should be noted that the data content included in each node is obtained, and the data content can be one or more of the header, the document, the title, the table, and the picture. Each document, title, table, and picture has its own corresponding type, and the content corresponding to each node is generated in the target chip document according to the document template parameters in the target chip document template. n In the target chip document, the content corresponding to each node is generated. It should be noted that the data content included in each node is obtained, and the data content can be one or more of the header, the document, the title, the table, and the picture. Each document, title, table, and picture has its own corresponding type, and the content corresponding to each node is generated in the target chip document according to the document template parameters in the target chip document template.

[0022] It should be noted that in some application scenarios, some data can only be presented to some users, some data can be presented to all users, and some data can only be used internally, so different data has different security levels. In order to present the corresponding visible data in the chip document according to the security level of the user, as an embodiment, the security level corresponding to each node of the relationship tree is also set in each node. The document generation module includes a user id and a security level mapping table, the document generation module is used to obtain the security level corresponding to the current user id, and each node is obtained in turn in top-down order, it is judged whether the security level of the current obtained node is higher than the security level corresponding to the current user id, if yes, the current obtained node is skipped, and the next node is processed, otherwise, based on the target C n The current obtained node is generated in the target chip document. If the security level of the current obtained node is higher than the security level corresponding to the current user id, it means that the data of the current obtained node cannot be presented to the current user, and the current obtained node is skipped. If the security level of the current obtained node is not higher than the security level corresponding to the current user id, it means that the data of the current obtained node can be presented to the current user, so the data of the node is obtained, and the data of the node is generated in the chip document in the format corresponding to the target C n The current obtained node is generated in the target chip document. If the security level of the current obtained node is higher than the security level corresponding to the current user id, it means that the data of the current obtained node cannot be presented to the current user, and the current obtained node is skipped. If the security level of the current obtained node is not higher than the security level corresponding to the current user id, it means that the data of the current obtained node can be presented to the current user, so the data of the node is obtained, and the data of the node is generated in the chip document in the format corresponding to the target C

[0023] Specifically, it is assumed that the security level corresponding to the node includes a first level, a second level and a third level, and the security levels of the first level, the second level and the third level are increased in turn. The security level corresponding to the user id also includes the first level, the second level and the third level. When the security level corresponding to the user id is the first level, data with the security level of the first level can be generated for the user, and data with the security level of the second level and the third level are invisible to the user. When the security level corresponding to the user id is the second level, data with the security level of the first level and the second level can be generated for the user, and data with the security level of the third level is invisible to the user. When the security level corresponding to the user id is the third level, the user can be generated to present the data with the first level, the second level and the third level, that is, all data is visible to the user. By setting different security levels for each node and setting security levels for each user, different documents can be generated for different users based on the same set of basic data.

[0024] The embodiment of the application sets a corresponding chip file parsing module for each type of chip file, which can directly extract the corresponding document basic data from each type of chip file without additional scripting. The chip document generation module can automatically generate the corresponding target chip document by obtaining the target document template parameters from the chip document template library and combining the document basic data. The application reduces the generation cost of the chip document and improves the generation efficiency of the chip document.

[0025] The above merely describes the preferred embodiments of the present application, and is not intended to limit the present application in any form. Although the present application has been disclosed with the preferred embodiments as above, it is not intended to limit the present application. Any person skilled in the art can make some changes or modifications to the above disclosed technical contents to make equivalent embodiments with equivalent changes, without departing from the technical solution of the present application. Any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present application, without departing from the technical solution of the present application, still belongs to the scope of the technical solution of the present application.

Claims

1. A chip document automatic generation system, characterized in that, The chip file analysis module includes M chip file analysis modules {A1, A2,..., AM}, a chip document template library, and a chip document generation module. m The chip file analysis module includes M chip file analysis modules {A1, A2,..., AM}, a chip document template library, and a chip document generation module. M The chip file analysis module includes M chip file analysis modules {A1, A2,..., AM}, a chip document template library, and a chip document generation module. m A is the mth file analysis module, m is in the range of 1 to M, and M is the total number of chip file analysis modules. A m For obtaining the mth chip file to parse, generate the corresponding document basic data B m , chip file type includes register code file and chip interface code file; The chip document template library is used for storing document template parameters {C1, C2,..., C n ,...,C N} corresponding to chip document templates n Cn is the document template parameter corresponding to the nth chip document template, n ranges from 1 to N, and N is the total number of chip document templates. The document generation module is configured to acquire B m from A m , and acquire B m corresponding target C n from the chip document template library, generate corresponding chip documents based on B m and B m corresponding target C n , and different target document template parameters are selected for the same set of basic parameters to generate different chip documents. The document base data includes a document set {te1, te2,..., te x ,...,te X}, a table set {ta1, ta2,..., ta y ,...,ta Y}, a picture set {P1, P2,..., P z ,...,P Z}, a file header header, a title set {ti1, ti2,..., ti e ,...,ti E}, and a relationship tree; wherein te x is the xth document in the document base data, x has a value in the range of 1 to X, X is the total number of documents in the document collection, ta y is the yth table in the document base data, y has a value in the range of 1 to Y, Y is the total number of tables in the table collection, P z is the zth picture in the document base data, z has a value in the range of 1 to Z, Z is the total number of pictures in the picture collection, ti e is the eth title in the document base data, e has a value in the range of 1 to E, E is the total number of titles in the title collection; The relationship tree comprises a plurality of nodes arranged in a hierarchy, each node being composed of one of te x , ta y , P z , header, ti e or a plurality of associations of te x , ta y , P z , header, ti e . te x ,ta y P z , header, ti e The relationship between them includes at least one te x and at least one ta y The relationship between them, at least one te x and at least one P z The relationship between them, at least one ta y and at least one P z The relationship between them, at least ti e and at least one te x The association, at least ti e and at least one ta y The connection.

2. The system according to claim 1, characterized in that, The system further comprises a document template parameter generation module, which is configured to acquire a chip document template, parse the acquired chip document template to generate corresponding document template parameters, and store the generated document template parameters into the chip document template library.

3. The system according to claim 1, characterized in that, The document template parameters corresponding to the chip document template include the font, size, position, and color of the file header, the font, size, position, and color of each text type, the font, size, position, and color of each table type, the font, size, position, and color of each title type, and document structure information, which includes the order of table types, the order of document types, the display relationship between text and tables, and the display relationship between pictures and text.

4. The system according to claim 1, characterized in that, The document generation module is configured to acquire each node one by one in a top-down order, and generate content corresponding to each node in the target chip document based on the target C n In the target chip document, the content corresponding to each node is generated.

5. The system according to claim 1, characterized in that, Each node of the relationship tree is further provided with a corresponding security level.

6. The system according to claim 5, characterized in that, The document generation module comprises a user id and security level mapping table, and is configured to obtain a security level corresponding to a current user id, and sequentially obtain each node in a top-down order, and determine whether a security level of a currently obtained node is higher than the security level corresponding to the current user id, if yes, skip the currently obtained node and process a next node, otherwise, generate the currently obtained node in a target chip document based on a target C n In the target chip document, the currently obtained node is generated.

Citation Information

Patent Citations

  • Chip register description document generation method and device, storage medium and terminal equipment

    CN119473382A