A method for optimizing the storage and generation of chip user manual documents
By optimizing the storage and generation methods of chip user manuals, storing the first page and multi-level headings in the corresponding areas, and performing data parsing and comparison to delete redundant data, the problem of chip manual storage space growth was solved, achieving storage space optimization and efficient data management.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-16
- Publication Date
- 2026-03-10
AI Technical Summary
As the number of chips increases, the storage space required for chip user manuals continues to grow, leading to wasted storage space and management difficulties.
The chip user manual's first page is stored in the system's first page data storage area, while multi-level headings and their subordinate sections are stored in their respective level data storage areas. The headings and content are parsed and compared, redundant data is removed, and image data is processed using OpenCV image recognition algorithms to generate the electronic chip user manual document.
This effectively reduces the storage space required for chip user manuals, improves the efficiency and accuracy of data storage, and ensures the uniqueness and efficiency of data management.
Smart Images

Figure CN116737867B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of chip technology, and in particular to a method for optimizing the storage and generation of chip user manual documents. Background Technology
[0002] This section is intended to provide background or context for the embodiments of this application as set forth in the claims. The description herein is not intended to imply that it is prior art that has been disclosed, simply because it is included in this section.
[0003] As competition intensifies and technology continues to innovate in the chip industry, chip iteration cycles are accelerating. Chip designers must constantly write chip user manuals. These manuals, typically provided by chip manufacturers or suppliers, contain basic chip information, technical details, and usage instructions, enabling users to fully understand the chip's performance and characteristics and thus better utilize and develop its applications. Each manual provides detailed explanations of technical parameters and offers typical application circuits and design solutions to help users better understand the chip's application scenarios.
[0004] In the chip design and manufacturing process, chip data files are a crucial information carrier, containing vital information such as chip design, layout, schematics, and packaging. In practical applications, chip user manuals are also essential documents, typically containing usage methods, parameters, and precautions. These are documents that chip manufacturers must provide to users, hence the extreme importance they place on managing user manuals. However, with the increasing number of chips, the number of user manuals is growing rapidly, leading to a significant increase in the storage space occupied by chip information. Summary of the Invention
[0005] The purpose of this application is to provide a method for optimizing the storage and generation of chip user manual documents, which can solve the technical problem that chip information occupies an increasingly large amount of storage space in the prior art.
[0006] This application discloses a method for optimizing the storage of chip user manual documents, including:
[0007] Obtain the chip user manual, which includes a homepage and a main body. The main body includes multi-level headings and their subordinate parts. The homepage of the chip user manual is stored in the homepage data storage area defined in the system, and the multi-level headings and their subordinate parts are stored in the corresponding level data storage areas defined in the system.
[0008] Search the various levels of headings in the chip user manual and determine whether the heading includes startup configuration or nested vector interrupt controller NVIC. If so, only store the heading in the corresponding level data storage area and do not store the subordinate parts of the heading.
[0009] If not, the subordinate content of the title is parsed into text data, table data, and image data and stored in the corresponding level data storage area. When the extracted table data includes Flash storage space and information blocks, the entire address bar column in the table data is deleted and the table data is stored in the corresponding level data storage area.
[0010] In a preferred embodiment, the method further includes: retrieving and parsing the first page of the chip user manual into text data, extracting the chip model, manual version, and manual type, and storing them in the first page data storage area.
[0011] In a preferred embodiment, the extracted chip model, manual version, and manual type are compared with the content stored in the system's homepage data storage area. If they match, the storage of the chip user manual is terminated.
[0012] In a preferred embodiment, if the title does not include the startup configuration and the nested vector interrupt controller NVIC, the extracted text data, table data, and image data under the title are compared with the content stored in the system's various levels of data storage areas. If they match, they are linked to the storage path with the matching content.
[0013] In a preferred embodiment, the table under the heading is converted to LaTeX format data and compared with table data stored in the system's various data storage areas.
[0014] In a preferred embodiment, the OpenCV image recognition algorithm is used to compare the extracted image data with the image data stored in the system's various data storage areas.
[0015] In a preferred embodiment, the method further includes: determining whether the title includes any one of the following: power supply monitor, voltage regulator, real-time clock (RTC), GPIO, UART, I2C, SPI, I2S, DAC, CRC, SWD, and JTAG; if so, storing only the title in the corresponding level data storage area and not storing the subordinate parts of the title.
[0016] In a preferred embodiment, the chip described in the chip manual is based on the Arm Cortex-M series core.
[0017] In a preferred embodiment, the main body of the chip user manual includes at least three levels of headings.
[0018] This application also discloses a method for optimizing the generation of chip user manual documents, including:
[0019] The method described above for storing optimized chip user manual documents involves obtaining the electronic chip data document stored in the system; extracting the necessary information of the chip data file from the electronic chip data document according to the chip model or chip production parameters; and generating the electronic chip user manual document by combining it with a pre-prepared document template.
[0020] In this embodiment, the first page of the chip user manual is stored in a dedicated first page data storage area within the system. Multi-level headings and their subordinate sections are stored in corresponding level data storage areas within the system. When the heading includes a startup configuration or a nested vector interrupt controller (NVIC), only the heading is stored in the corresponding level data storage area; the subordinate sections are not stored. Furthermore, when the extracted table data includes Flash storage space and information blocks, the entire address column is deleted from the table data before storing the table data in the corresponding level data storage area. Therefore, this application can save storage space for the chip user manual.
[0021] The specification of this application contains numerous technical features distributed across various technical solutions. Listing all possible combinations of these technical features (i.e., technical solutions) would make the specification excessively lengthy. To avoid this problem, the various technical features disclosed in the above-described invention, the various technical features disclosed in the following embodiments and examples, and the various technical features disclosed in the accompanying drawings can be freely combined to form various new technical solutions (all of which should be considered as described in this specification), unless such a combination of technical features is technically infeasible. For example, one example discloses feature A+B+C, and another example discloses feature A+B+D+E. Features C and D are equivalent technical means that serve the same function, and technically only one needs to be used; they cannot be used simultaneously. Feature E can technically be combined with feature C. Therefore, the solution A+B+C+D should not be considered as described because it is technically infeasible, while the solution A+B+C+E should be considered as described. Attached Figure Description
[0022] Figure 1 This is a schematic flowchart of a method for storing an optimized chip user manual document according to the first embodiment of this application.
[0023] Figure 2 This is a schematic diagram of a system storage structure according to one embodiment of this application.
[0024] Figure 3 This is a schematic diagram of the first page of the chip user manual according to one embodiment of this application.
[0025] Figure 4This is a schematic diagram outlined in the chip user manual according to one embodiment of this application.
[0026] Figure 5 This is a schematic diagram of a table in a chip user manual according to one embodiment of this application.
[0027] Figure 6 This is a schematic diagram of a table in a chip user manual converted to LaTeX format according to one embodiment of this application.
[0028] Figure 7 This is a schematic diagram of the Flash storage space in the chip user manual according to one embodiment of this application.
[0029] Figure 8 This is a schematic diagram of the information block in the chip user manual according to one embodiment of this application.
[0030] Figure 9 This is a schematic flowchart of the method for generating an optimized chip user manual document according to the second embodiment of this application. Detailed Implementation
[0031] In the following description, many technical details are presented to help the reader better understand this application. However, those skilled in the art will understand that the technical solutions claimed in this application can be implemented even without these technical details and various variations and modifications based on the following embodiments.
[0032] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0033] The first embodiment of this application relates to a method for optimizing the storage of chip user manual documents, the process of which is as follows: Figure 1 As shown, the method includes the following steps:
[0034] Step 101: Obtain the chip user manual, which includes a homepage and a main body. The main body includes multi-level headings and their subordinate sections. The homepage of the chip user manual is stored in the homepage data storage area allocated in the system, and the multi-level headings and their subordinate sections are stored in the corresponding level data storage areas allocated in the system. In one embodiment, the chip described in the chip user manual may be based on an Arm Cortex-M series core.
[0035] In one embodiment, the main body of the chip user manual may include at least three levels of headings, for example, including third or fourth level headings.
[0036] Next, the first page of the chip user manual is retrieved and parsed into text data, and the chip model, manual version, and manual type are extracted and stored in the first page data storage area. In one embodiment, the extracted chip model, manual version, and manual type are compared with the content stored in the system's first page data storage area. If they match, the storage of the chip user manual ends.
[0037] Step 102: Retrieve the headings of each level in the chip user manual and determine whether the heading includes startup configuration or nested vector interrupt controller NVIC. If so, only store the heading in the corresponding level data storage area and do not store the subordinate parts of the heading.
[0038] In another embodiment, retrieving the various levels of headings in the chip user manual further includes: determining whether the heading includes any of the following: power supply monitor, voltage regulator, real-time clock (RTC), GPIO, UART, I2C, SPI, I2S, DAC, CRC, SWD, and JTAG. If so, only the heading is stored in the corresponding level of data storage area, and the subordinate parts of the heading are not stored.
[0039] Step 103: If the title does not include startup configuration and nested vector interrupt controller NVIC, parse the content under the title into text data, table data, and image data, and store them respectively in the corresponding level data storage area. When the extracted table data includes Flash storage space and information blocks, delete the entire address column in the table data and then store the table data in the corresponding level data storage area. If the title does not include startup configuration and nested vector interrupt controller NVIC, compare the extracted text data, table data, and image data under the title with the content stored in the system's various level data storage areas. If they match, link to the storage path with the matching content. Further, if the title does not include any of the following: power supply monitor, voltage regulator, real-time clock RTC, GPIO, UART, I2C, SPI, I2S, DAC, CRC, SWD, and JTAG, compare the extracted text data, table data, and image data under the title with the content stored in the system's various level data storage areas. If they match, link to the storage path with the matching content.
[0040] In one embodiment, the table under the header is converted to LaTeX format data and compared with the table data stored in the system's various data storage areas.
[0041] In one embodiment, the OpenCV image recognition algorithm is used to compare the extracted image data with the image data stored in the system's various data storage areas.
[0042] To better understand the technical solution of this application, a specific example is provided below. The details listed in this example are mainly for ease of understanding and are not intended to limit the scope of protection of this application.
[0043] To improve the efficiency and accuracy of extracting information from chip user manuals, a standardized and fixed format is adopted for the manuals. Chip information is extracted using a combination of keyword and fuzzy search methods, and the extracted chip information is checked for duplicates against existing chip information in the system to ensure the uniqueness of the data entered into the system.
[0044] First, the system divides the data storage area according to the first page and headings of the chip user manual. The first page is the top-level data area and is unique. Subsequent data storage areas are divided according to the headings. Each first-level heading and its following content constitutes a first-level data storage area, each second-level heading and its following content constitutes a second-level data storage area, each third-level heading and its following content constitutes a third-level data storage area, and so on. The system storage structure is as follows: Figure 2 As shown. There is also a mapping relationship between the data storage areas at each level; that is, the homepage data area maps to multiple first-level heading data areas, one first-level heading data area maps to multiple second-level heading data areas, one second-level heading data area maps to multiple third-level heading data areas, and so on.
[0045] By searching the first page and headings of the datasheet, the various storage data areas of the chip user manual are identified. Then, the main text of the chip user manual is parsed and extracted, and stored in the system according to the system's internal chip information list format.
[0046] The parsing methods for the main text of chip user manuals are divided into four categories: homepage, text, tables, and images. The parsing and storage methods for each of these four types are explained below.
[0047] 1. Obtain the chip model, manual type (datasheet or user manual), and manual version from the first page of the chip user manual. Other data is template information and has been pre-stored in the system; it does not need to be stored again.
[0048] Example 1:
[0049] Input: e.g. Figure 3 As shown
[0050] Output: Chip model (MM32F3070), datasheet type (datasheet), datasheet version (1.45).
[0051] 2. Locate the chip user manual overview in the document based on the title. Then, extract chip information by parsing keywords and characters, organize it into a chip information list, and compare it with the data in the system for duplicates. If it does not exist, store it in the system. If it already exists, do not store it to ensure data uniqueness, but map the existing chip information in the system to this chip model. When generating the chip user manual, the system's chip information list mapped to this chip model can be read, and finally, a complete chip user manual is output.
[0052] Example 2:
[0053] Input: e.g. Figure 4 As shown
[0054] Outputs: Core (M3), Maximum Frequency (120MHz), 12-bit ADCs (3), Comparators (2), 16-bit General Purpose Timers (2), 32-bit General Purpose Timers (2), 16-bit Basic Timers (2), 16-bit Advanced Timers (2), I2C Interfaces (2), I2S Interfaces (3), SPI Interfaces (3), USB Interface (1), CAN Interface (1), UART Interfaces (8), Minimum Operating Voltage (2.0V), Maximum Operating Voltage (5.5V), Minimum Operating Temperature (-40°C), Maximum Operating Temperature (85°C), Industrial Maximum Operating Temperature (-40°C), Industrial Maximum Operating Temperature (105°C), Package Types (LQFP144, LQFP100, LQFP64, LQFP48, and QFN40).
[0055] 3. Locate the table in the document based on keywords, convert the table in the document into an intermediate file describing the table in LaTeX format, and then perform a deduplication check. If the table does not exist, it is stored in the system. If the table already exists, it is not stored to ensure data uniqueness, and the tables already stored in the system are mapped to this chip model.
[0056] Example 3:
[0057] Input: e.g. Figure 5 As shown
[0058] Output: such as Figure 6 As shown
[0059] 4. The system retrieves the location of images within a document based on keywords. Then, it uses the open-source OpenCV image recognition library to compare the images in the system for duplicates. If no duplicate exists, the image is losslessly compressed before being stored in the system, further reducing storage space usage. If the image already exists, it is not stored to ensure data uniqueness, and the images already stored in the system are mapped to this chip model.
[0060] When retrieving and parsing the title and its subordinate content, determine whether the title includes any of the following: startup configuration, nested vector interrupt controller NVIC, power supply monitor, voltage regulator, real-time clock RTC, GPIO, UART, I2C, SPI, I2S, DAC, CRC, SWD, and JTAG. If so, only store the title in the corresponding level data storage area and do not store the subordinate parts of the title.
[0061] like Figure 7 and Figure 8 As shown, when the extracted table data includes Flash storage space and information blocks, the entire address column in the table data is deleted and the table data is stored in the corresponding level data storage area.
[0062] The second embodiment of this application also discloses a method for optimizing chip user manual document generation, comprising: obtaining chip data electronic documents stored in the system as described above using the optimized chip user manual document storage method; extracting necessary information of chip data files from the chip data electronic documents according to chip model or chip production parameters; and generating chip user manual electronic documents in combination with a pre-compiled document template.
[0063] like Figure 9 As shown, the method for optimizing the generation of chip user manual documents is implemented through the following steps:
[0064] 1. Obtain the electronic file of the chip data document.
[0065] The chip data can be generated into an electronic document by scanning paper chip data documents, or the electronic chip data document can be directly imported via network or USB port.
[0066] 2. Parse the chip data file, categorize and summarize the parsed chip information, and ensure the uniqueness of the data.
[0067] By parsing a large number of chip data files, information on various versions of chips, such as chip design, layout, schematic diagram, package, peripheral functions, peripheral versions, power consumption, etc., is obtained, and the large amount of chip information is classified and categorized into a structured data set.
[0068] 3. Edit and modify chip information in the database.
[0069] The product allows direct editing of chip information in the database. If errors are found in the parsed chip data, the product can be directly modified. It also features a function to add new chip information; by editing existing chip information, new chip information is generated and then categorized and stored in the database.
[0070] 4. Generate a chip user manual based on the chip configuration requirements.
[0071] By inputting the chip model or configuring chip user manual production parameters such as chip internal code and chip core packaging functions, the necessary information from the chip data file is extracted from the dataset, including chip functions, interface definitions, pin descriptions, and operating voltages. Finally, combined with a pre-prepared document template, a compliant electronic chip user manual document is generated.
[0072] 5. Transmission of electronic documentation for chip user manuals
[0073] The electronic version of the chip user manual can be printed as a paper document using the printing function, or exported via network or USB port.
[0074] Accordingly, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the various method embodiments of this application. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device. As defined herein, computer-readable storage media does not include transient media, such as modulated data signals and carrier waves.
[0075] It should be noted that in this patent application, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. In this patent application, if it refers to performing an action according to an element, it means performing the action at least according to that element, including two cases: performing the action only according to that element, and performing the action according to that element and other elements. Expressions such as "multiple," "repeatedly," and "various" include two, two times, two kinds, and more than two, more than two times, and more than two kinds.
[0076] All references to this specification are considered to be incorporated integrally into the disclosure of this application so that they can serve as the basis for modifications if necessary. Furthermore, it should be understood that the above descriptions are merely preferred embodiments of this specification and are not intended to limit the scope of protection of this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of one or more embodiments of this specification should be included within the scope of protection of one or more embodiments of this specification.
[0077] In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A method of optimizing chip manual document storage, characterized by, The method comprises: obtaining a chip usage manual including a title page and a text part, the text part including multiple levels of titles and their subordinate parts, the title page of the chip usage manual being stored in a title page data storage area divided in the system, and the multiple levels of titles and their subordinate parts being stored in corresponding level data storage areas divided in the system; retrieving each level of title of the chip usage manual, judging whether the title includes a startup configuration or a nested vector interrupt controller (NVIC), and if so, only storing the title in the corresponding level data storage area without storing the subordinate part of the title; if not, parsing the subordinate content of the title into text data, table data and picture data and storing them in the corresponding level data storage area, when the extracted table data includes a Flash storage space and an information block, deleting the address column of the table data and storing the table data in the corresponding level data storage area; and if the title does not include a startup configuration or a nested vector interrupt controller (NVIC), comparing the extracted text data, table data and picture data of the subordinate part of the title with the content stored in each level data storage area of the system, and if consistent, linking to the storage path of the consistent content.
2. The method of claim 1, wherein, The method further comprises: retrieving and parsing the title page of the chip usage manual into text data, extracting the chip model, manual version and manual type and storing them in the title page data storage area.
3. The method of claim 2, wherein, comparing the extracted chip model, manual version and manual type with the content stored in the title page data storage area of the system, and if consistent, ending the storage of the chip usage manual.
4. The method of claim 1, wherein, converting the table under the title into LATEX format data and comparing it with the table data stored in each level data storage area of the system.
5. The method of claim 1, wherein, comparing the extracted picture data with the picture data stored in each level data storage area of the system by using an OpenCV image recognition algorithm.
6. The method of claim 1, wherein, The method further comprises: judging whether the title includes any of a power supply monitor, a voltage regulator, a real-time clock (RTC), a GPIO, a UART, an I2C, an SPI, an I2S, a DAC, a CRC, a SWD and a JTAG, and if so, only storing the title in the corresponding level data storage area without storing the subordinate part of the title.
7. The method of claim 1, wherein, The chip described in the chip usage manual is based on an Arm cortex-M series core.
8. The method of claim 1, wherein, The text part of the chip usage manual includes at least three levels of titles.
9. A method of optimizing chip manual document generation, characterized by, The method comprises: obtaining a chip data electronic document stored in a system by the method of optimizing chip usage manual document storage according to any one of claims 1-8; and extracting necessary information of a chip data file from the chip data electronic document according to a chip model or chip production parameters and generating a chip usage manual electronic document in combination with a pre-prepared document template.
Citation Information
Patent Citations
Car owner instruction manual display method based on embedded device
CN102508629A
Document structure conversion method and device, storage medium and electronic equipment
CN111859863A