Upward integration method of chip composition module, electronic equipment and medium
By building the original and replace subdirectories in the code bin of the chip composition module, the problem of long-term upward integration of the chip composition module is solved, and the chip development progress is accelerated.
Patent Information
- Application Number
- CN202510725713.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-06-03
AI Technical Summary
The upward integration process of chip composition modules is long in the middle, which affects the development progress of the entire chip.
Build the original subdirectory and replacement subdirectory in the code silo of the chip composition module to determine whether the code file to be integrated is adapted. If it is not adapted, a replacement code file will be generated in the code silo and directly integrated into the chip composition module.
This reduces the upward integration of chip components and accelerates the development progress of the entire chip.
Smart Images

Figure CN120234038A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip technology, and in particular to a chip component module upward integration method, electronic equipment and medium. Background Art
[0002] The chip is composed of interconnected chip component modules set in a hierarchical manner. The chip component module is generated by the code of the chip component module itself and the code on which the chip component module depends. The code on which the chip component module with submodules depends includes the code of the submodule of the chip component module. In the process of designing the chip component module, the code of the submodule of the chip component module needs to be integrated into the chip component module. The code of the submodule of the chip component module is constantly updated. During the integration process, it is necessary to get the code of one version of the submodule of the chip component module, but it may not be compatible in the chip component module. If there is an incompatibility, it is necessary to return to the submodule of the chip component module to update the code of the submodule of the chip component module. After the update is completed, the submodule code of the chip component module has usually been updated for multiple versions, and the submodule code of the latest version of the chip component module is reintegrated into the chip component module. If it is still incompatible, it is necessary to return to the submodule of the chip component module to update the code of the submodule of the chip component module, resulting in a long process of upward integration of the chip component module, which affects the development progress of the entire chip. It can be seen from this that how to reduce the process of upward integration of the chip component module and speed up the development progress of the entire chip has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The purpose of the present invention is to provide a chip component module upward integration method, electronic equipment and medium, which reduces the process of chip component module upward integration and speeds up the development progress of the entire chip.
[0004] According to a first aspect of the present invention, a method for upward integration of chip components and modules is provided, comprising: Step S1: Chip composition module A i Build B in the code repository j i The original subdirectory C ij , B j i A i The jth submodule of A, the value range of j is 1 to f(i), f(i) is i The number of sub-modules, i ranges from 1 to I, and I is the number of chip components that contain sub-modules in the chip; Step S2: B j i The code file to be integrated {BF1 ij ,BF2 ij,...,BF m ij ,...,BF M ij} is stored in C ij Among them, BF m ij is B j i The corresponding m-th code file to be integrated, where the value range of m is from 1 to M, and M is the number of code files to be integrated corresponding to B j i corresponding; Step S3, determine whether {BF1 ij , BF2 ij ,..., BF m ij ,..., BF M ij} is fully adapted in the code repository of A i . If so, directly integrate B ij , BF2 ij ,..., BF m ij ,..., BF M ij} into A j i . Otherwise, execute step S4; i Step S4, directly generate the updated code file of A i in the code repository of the chip component module Aand construct the replacement sub-directory D i of B j i . Debug the non-adapted BF ij in the code repository of A i to generate the corresponding replacement code file DF m ij and store it in D m ij ; ij Step S5, integrate B ij based on Cand D ij into A j i . i
[0005] According to the second aspect of the present invention, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executed by the at least one processor, and the instructions are configured to execute the method described in the first aspect of the present invention.
[0006] According to the third aspect of the present invention, there is provided a computer-readable storage medium storing computer-executable instructions for executing the method described in the first aspect of the present invention.
[0007] The present invention has obvious advantages and beneficial effects compared with the prior art. By means of the above technical solutions, a method for upward integration of chip component modules, an electronic device, and a medium provided by the present invention can achieve considerable technical progress and practicality, and has broad industrial utilization value. It has at least the following beneficial effects: In the process of upward integration of sub-modules of a chip component module in the present invention, first, it is determined whether it is compatible with the chip component module. If there is an incompatible situation, instead of returning to the sub-module of the chip component module to update the code of the sub-module of the chip component module, a replacement sub-directory for the sub-module of the chip component module is constructed in the code repository of the chip component module, and the incompatible code file to be integrated is directly debugged in the code repository of the chip component module to generate a corresponding replacement code file. Then, according to the code file to be integrated in the original sub-directory and the replacement code file in the replacement sub-directory, the sub-module of the chip component module is integrated into the chip component module, reducing the intermediate process of upward integration of the chip component module and accelerating the overall chip development progress. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0009] Figure 1 It is a flowchart of the method for upward integration of chip component modules provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0010] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0011] An embodiment of the present invention provides a method for upward integration of chip component modules, as Figure 1 shown, including: Step S1, construct the original sub-directory C of B in the code repository of chip component module A i in the code repository of j i ij , B j i is the j-th sub-module of A, where the value range of j is from 1 to f(i), and f(i) is the number of sub-modules of A i , and the value range of i is from 1 to I, where I is the number of chip component modules containing sub-modules in the chip. i
[0012] Among them, the code repository of the chip component module includes the environment code, design code, verification code, and preset process code corresponding to the version of the chip component module. During the development process of the chip component module, multiple versions of code files will be generated, and each version corresponds to a code repository. A in the steps of the present invention i 's code repository is the code repository corresponding to the current version of A to be processed, and B i 's original sub-directory refers to the original sub-directory corresponding to the version of B to be processed. The environment code is mainly used to configure and manage the environment required for operation. The design code is the chip design code corresponding to the chip component module. The verification code is the chip verification code corresponding to the chip component module. The preset process code is the code required for the preset execution operation process corresponding to the chip component module. j i j i
[0013] As an embodiment, the chip component module includes a System on Chip (SOC) component module, an Intellectual Property (IP) component module, a sub-system component module, and a block component module. The block component module is a chip component module that does not include sub-modules. The sub-modules of the SOC component module include one or more of the IP component module, the sub-system component module, and the block component module. The sub-modules of the IP component module include one or two of the sub-system component module and the block component module. The sub-modules of the sub-system component module include the block component module.
[0014] Taking the SOC component module including multiple IP component modules, the IP component module including multiple sub-system component modules, and the sub-system component module including multiple block component modules as an example, the upward integration of the chip module described in the embodiment of the present invention can specifically be the integration of the IP component module into the SOC component module, that is, A i is the SOC component module, and B j iIt is an IP component module. Specifically, the chip module described in the embodiments of the present invention can also be integrated upward as an integrated sub-system component module into the IP component module, that is, A i is an IP component module, B j i is a sub-system component module. Specifically, the chip module described in the embodiments of the present invention can also be integrated upward as a block component module into the sub-system component module, that is, A i is a sub-system component module, B j i is a block component module. The upward integration of the chip module specifically refers to the process of integrating the sub-module code files of the chip component module into the code repository of the corresponding chip component module to generate the chip component module. The chip component module includes the code files of the chip component module itself and the code files of the sub-modules of the integrated chip component module.
[0015] Step S2: Store the to-be-integrated code files {BF1 j i , BF2 ij ,..., BF ij ,..., BF m ij ,..., BF M ij} of B ij in C m ij , where BF j i is the m-th to-be-integrated code file corresponding to B j i , and the value range of m is from 1 to M, where M is the number of to-be-integrated code files corresponding to B
[0016] Step S3: Determine whether {BF1 ij , BF2 ij ,..., BF m ij ,..., BF M ij} are all adapted in the code repository of A i . If so, directly integrate B ij , BF2 ij ,..., BF m ij ,..., BF M ij into A j i based on {BF1 i . Otherwise, execute Step S4.
[0017] It should be noted that if {BF1 ij , BF2 ij ,..., BF m ij ,..., BF M ij} are all adapted in the target code repository of A i , then B ij , BF2 ij ,..., BF m ij ,..., BF M ij} can be directly integrated into A j i according to {BF1 i , BF2 ij ,..., BF ij ,..., BF m ij ,..., BF M ij} in A i 's target code repository. If {BF1
[0018] Steps S4, directly generate the updated code file of A i in the code repository of the chip component module A i and build the replacement subdirectory D j i of B ij in the code repository of A i . Debug the unadapted BF m ij in the code repository of A m ij to generate the corresponding replacement code file DF ij and store it in D
[0019] It should be noted that when {BF1 ij , BF2 ij ,..., BF m ij ,..., BF M ij} cannot be fully adapted in the code repository of A i , it may be that the code in the code repository of the chip component module A i needs to be debugged, or it may be {BF1 ij , BF2 ij ,..., BF m ij ,..., BF Mij The code in {} needs to be debugged, or perhaps both need to be debugged. When the chip component A i needs to be debugged, after debugging, it can be directly stored in the code repository of A i .
[0020] Step S5: Based on C ij and D ij integrate B j i into A i .
[0021] As an embodiment, the step S4 includes: Step S41: Debug the code of A according to the mismatch results of {BF1 ij , BF2 ij ,..., BF m ij ,..., BF M ij} in the code repository of A i , generate an updated code file of A and store it in the code repository of A i . i The updated code file of A is stored in the code repository of A i .
[0022] Step S42: Construct a replacement subdirectory D j i of B ij , debug the mismatched BF i in the code repository of A m ij to generate a corresponding replacement code file DF m ij and store it in D ij .
[0023] It should be noted that there may be one or more mismatched BFs m ij . By debugging each mismatched BF m ij in step S41, generate a corresponding replacement code file DF m ij .
[0024] As an embodiment, the step S5 includes: Step S51: Set a corresponding replacement configuration table {E1 i} in the code repository of A j i for B ij , E2 ij ,..., E n ij,...,E N ij}, E n ij is B j i The nth replacement configuration information in the corresponding replacement configuration table, where the value range of n is from 1 to N, and N is the total number of replacement configuration information corresponding to B j i E n including E1 n and E2 n , E1 n is the original code file path of the file to be replaced in the code repository of A i E2 n is the replacement code file path of the file to be replaced in the code repository of A i .
[0025] Step S52, parse the replacement configuration table corresponding to B j i to obtain each E n ij corresponding E1 n and E2 n .
[0026] Step S53, based on E2 n obtain the replacement code file corresponding to E2 from D ij , and replace the integrated code file corresponding to E1 in C n with the replacement code file corresponding to E2. If the read-write attributes of the replacement code file corresponding to E2 are inconsistent with those of the integrated code file corresponding to E1 ij , then modify the read-write attributes of the replaced code file corresponding to E1 n to the read-write attributes of the integrated code file corresponding to E1 n . n It should be noted that during the process of generating the replacement code file, the read-write attributes of the file may change. For example, the original code file has read-only attributes, but the generated replacement code file has read-write attributes. To maintain consistency, after the replacement is completed, the read-write attributes of the file are changed to those of the original code file n . n Step S54, integrate all the integrated code files after the corresponding replacement operations in the replacement configuration table corresponding to B n into A
[0027] .
[0028] Step S54, integrate all the integrated code files after the corresponding replacement operations in the replacement configuration table corresponding to B j i into A n ij . i .
[0029] It should be noted that B j i All Es in the corresponding replacement configuration table n ij The integrated code file after performing the corresponding replacement operation can be adapted to the code repository of A i Therefore, B j i All Es in the corresponding replacement configuration table n ij The integrated code file after performing the corresponding replacement operation is integrated into A i without affecting the development progress of A i
[0030] As an embodiment, E n also includes user identification, replacement time, and replacement reason information. Storing the above information can further facilitate subsequent tracking and debugging.
[0031] After integrating B j i All Es in the corresponding replacement configuration table n ij The integrated code file after performing the corresponding replacement operation into A i it is also necessary to synchronize the corresponding update information to B j i As an embodiment, E n also includes the file path of the file to be replaced in B j i After step S54, it also includes: Step S6, according to E n The file path of the file to be replaced in B j i and the corresponding replacement code file of E2 n update the code repository of B j i
[0032] Step S7, delete D i corresponding to B j i in the code repository of A ij and B j i the corresponding replacement configuration table.
[0033] It should be noted that by step S6, the replacement code file corresponding to E2 n is updated to the code repository of B j i There is no need to perform operations in B j i Debug in the code repository of i B in the code repository of j i The corresponding D ij And B j i Delete the corresponding replacement configuration table to avoid affecting the subsequent development of i
[0034] As an embodiment, step S6 includes: Step S61: Send the replacement code file corresponding to E2 n And the file to be replaced to the file path corresponding to B j i In the code repository of B j i
[0035] Step S62: Update the replacement code file corresponding to E2 n To the file path of the file to be replaced in the code repository of B j i In the code repository of B j i
[0036] As an embodiment, step S62 includes: Step S621: Determine whether there is a conflict between the updated replacement code file corresponding to E2 n And the code file in the current code repository of B j i If there is a conflict, determine the conflict selection and then execute step S622; otherwise, directly execute step S622.
[0037] Step S622: Merge the updated replacement code file corresponding to E2 n And the code file of the current version of B j i To generate the latest version of the code file in the code repository of B j i
[0038] It should be noted that during the merging process, the code files that exist in the replacement code file corresponding to E2 n But do not exist in the code file of the current version of B j i Will be retained, and the code files that exist in the code file of the current version of B j i And do not exist in the replacement code file corresponding to E2 n Will be retained, and the code files in E2 n The corresponding replacement code file and the current version of B j i The common part of the code file is retained. If there are conflicts, the parameters after the conflict selection are retained.
[0039] It should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts depict the steps as sequential processes, many of the steps can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operations are completed, but it can also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0040] The embodiments of the present invention also provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executed by the at least one processor, and the instructions are configured to execute the method described in the embodiments of the present invention.
[0041] The embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions for executing the method described in the embodiments of the present invention.
[0042] In the process of upward integration of the sub-modules of the chip composition module in the embodiments of the present invention, first determine whether it is adapted to the chip composition module. If there is a non-adapted situation, there is no need to return to the sub-module of the chip composition module to update the code of the sub-module of the chip composition module. Instead, a replacement sub-directory of the sub-module of the chip composition module is constructed in the code repository of the chip composition module, and the non-adapted code file to be integrated is directly debugged in the code repository of the chip composition module to generate a corresponding replacement code file. Then, the sub-module of the chip composition module is integrated into the chip composition module according to the code file to be integrated in the original sub-directory and the replacement code file in the replacement sub-directory, reducing the intermediate process of upward integration of the chip composition module and accelerating the overall chip development progress.
[0043] The above are only the preferred embodiments of the present invention and do not impose any form of limitation on the present invention. Although the present invention has been disclosed above with the preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some changes or modifications to the above-disclosed technical content to form equivalent embodiments with equivalent changes, but as long as the content does not depart from the technical solution of the present invention, any simple modification, equivalent change, and modification made to the above embodiments based on the technical essence of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A method for upward integration of a chip component module, characterized in that, Comprising: Step S1, in the code repository of chip component module A i construct the original sub-directory C of B j i , where B ij is the j-th sub-module of A j i , and the value range of j is from 1 to f(i), f(i) is the number of sub-modules of A i , and the value range of i is from 1 to I, I is the number of chip component modules containing sub-modules in the chip; i Step S2: Store B j i 's to-be-integrated code files {BF1 ij , BF2 ij ,..., BF m ij ,..., BF M ij} into C ij . Here, BF m ij is the m-th to-be-integrated code file corresponding to B j i . The value range of m is from 1 to M, where M is the number of to-be-integrated code files corresponding to B j i ; Step S3, determine whether {BF1 ij , BF2 ij ,..., BF m ij ,..., BF M ij} are all adapted in the code repository of A i . If so, directly integrate B ij , BF2 ij ,..., BF m ij ,..., BF M ij} into A j i according to {BF1 i . Otherwise, execute Step S4; Step S4. Directly generate the updated code file of A in the code repository of chip component module A i and construct the replacement sub-directory D of B i j i in the code repository of A, debug the incompatible BF ij i in the code repository of A to generate the corresponding replacement code file DF m ij and store it in D m ij ; ij Step S5: Based on C ij and D ij Integrate B j i into A i .
2. The method according to claim 1, wherein The code repository of the chip composition module includes the environment code, design code, verification code, and preset process code corresponding to the chip composition module.
3. The method according to claim 1, wherein The step S4 includes: Step S41, debug the code of A in the code repository of A according to {BF1 ij , BF2 ij ,..., BF m ij ,..., BF M ij}, generate the updated code file of A and store it in the code repository of A i ; i Generate the updated code of A i and store it in the code repository of A i ; Step S42: Construct B j i The replacement sub-directory D ij In the code repository of A i Debug the incompatible BF m ij Generate the corresponding replacement code file DF m ij And store it in D ij Among them.
4. The method according to claim 1, wherein The step S5 includes: Step S51. Set the replacement configuration table {E1 i , E2 j i ,..., E ij , E2 ij ,..., E n ij ,..., E N ij} in the code repository of A n ij . E j i is the nth replacement configuration information in the replacement configuration table corresponding to B, where the value range of n is from 1 to N, and N is the total number of replacement configuration information corresponding to B j i . E n includes E1 n and E2 n . E1 n is the original code file path of the file to be replaced in the code repository of A i , and E2 n is the replacement code file path of the file to be replaced in the code repository of A i . Step S52, parse B j i The corresponding replacement configuration table, and obtain each E n ij The corresponding E1 n and E2 n ; Step S53, based on E2 n Obtain E2 from D ij corresponding replacement code file, and replace the E1 n corresponding to-be-integrated code file in C ij with the replacement code file corresponding to E2 n If the read-write attributes of the replacement code file corresponding to E2 n are inconsistent with those of the to-be-integrated code file corresponding to E1 n then modify the read-write attributes of the replaced code file corresponding to E1 n to the read-write attributes of the to-be-integrated code file corresponding to E1 n ; n Step S54: Take B j i All Es in the corresponding replacement configuration table n ij Integrate the integrated code file after performing the corresponding replacement operation into A i .
5. The method according to claim 4, wherein E n It also includes user identification, replacement time, and replacement reason information.
6. The method according to claim 4, wherein E n It also includes the file to be replaced in B j i The corresponding file path, and after the step S54, it further includes: Step S6: According to E n In B, for the file to be replaced j i The corresponding file path and E2 n Update the code repository of B with the corresponding replacement code file j i ; Step S7, take A i from the code repository of B j i and delete the corresponding D ij as well as the replacement configuration table corresponding to B j i 7. The method according to claim 6, wherein The step S6 includes: Step S61: Send E2 n The corresponding replacement code file and the file to be replaced to B j i The corresponding file paths to the code repository of B j i ; Step S62: Update the replacement code file corresponding to E2 n to the file to be replaced in the code repository of B j i at the corresponding file path in the code repository of B j i 8. The method according to claim 1, wherein The chip composition module includes an SOC composition module, an IP composition module, a sub-system composition module, and a block composition module. The sub-modules of the SOC composition module include one or more of the IP composition module, the sub-system composition module, and the block composition module. The sub-modules of the IP composition module include one or two of the sub-system composition module and the block composition module. The sub-module of the sub-system composition module includes the block composition module.
9. An electronic device, characterized in that, Comprising: At least one processor; And a memory communicatively connected to the at least one processor; Wherein, the memory stores instructions executed by the at least one processor, and the instructions are configured to execute the method according to any one of the foregoing claims 1-8.
10. A computer-readable storage medium, characterized in that, Stores computer-executable instructions for executing the method according to any one of the foregoing claims 1-8.
Citation Information
Patent Citations
Chip IP integration method and device, electronic equipment and storage medium
CN111859827A
Module integration method and device, storage medium and electronic equipment
CN114153473A
Code automatic integration method and device and readable storage medium
CN114546480A
Branch code merging method and device, equipment and storage medium
CN115167822A
Continuous integration method and device, electronic equipment and readable storage medium
CN117331539A