Initialization configuration method, electronic device and medium for SOC chip verification
By defining and integrating the initial configuration information of the multiplexed chip component module in SOC chip verification, the error problems caused by the repetitive configuration and understanding differences in SOC chip verification are solved, and the accuracy and efficiency of verification are improved.
Patent Information
- Application Number
- CN202411415895.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-10-11
AI Technical Summary
In the prior art, there is a lot of repetitive work in the initialization configuration of SOC chip verification, and the initialization configuration errors result in low accuracy and low efficiency due to understanding problems.
By defining the register initialization configuration information of the chip component module and integrating multiplexing in verification environments at each level, reconfiguring and reconfiguring it reduces duplicate configurations and ensuring the accuracy and efficiency of configuration information. The specific steps include defining and encapsulating the initialization configuration process in the chip composition module, subsystem and SOC hierarchy, generating a verification environment and initialization sequence files, and performing the initialization configuration based on these files.
Reduces repetitive configuration work, improves the accuracy and efficiency of initial configuration of SOC chip verification, avoids configuration errors, and shortens the verification process.
Smart Images

Figure CN118939496B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip verification, and in particular to an initialization configuration method, electronic equipment and medium for SOC chip verification. Background Art
[0002] Chip initialization configuration is an important part of the system-on-chip (SOC) chip verification, and is the prerequisite for ensuring that the chip can be brought up smoothly and correctly. Chip initialization configuration includes chip component module (Block) initialization configuration, chip subsystem (Subsystem) and SOC initialization configuration. In the prior art, it is necessary to implement Block initialization configuration, Subsystem initialization configuration and SOC initialization configuration separately, and perform a large amount of repetitive configuration work. The higher the level, the easier it is to cause initialization configuration errors due to comprehension problems, resulting in low accuracy of SOC chip verification initialization configuration and low efficiency of SOC chip verification. It can be seen from this that how to improve the accuracy of SOC chip verification initialization configuration and SOC chip verification efficiency has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The present invention aims to provide an initialization configuration method, electronic device and medium for SOC chip verification, which improves the accuracy of the initialization configuration of SOC chip verification and the efficiency of SOC chip verification.
[0004] According to a first aspect of the present invention, there is provided an initialization configuration method for SOC chip verification, comprising:
[0005] Step S1: In the nth chip component module B n The configuration component of the verification environment defines the register initialization configuration information n ,A2 n ,...,A i n ,...,A f(n) n}, replace n ,A2 n ,...,A i n ,...,A f(n) n}Write B n Verification environment configuration file BF1 n Among them, A i n For B n The corresponding i-th register initialization configuration information, the value range of i is 1 to f(n), f(n) is B nThe corresponding register number, n ranges from 1 to N, N is the total number of chip components contained in the SOC chip, A i n =(A1 i n ,A2 i n ), A1 i n A i n The corresponding parameter name, A2 i n A1 i n The default value of
[0006] Step S2: Based on all A i n In B n The initialization sequence component is defined in B n Initialization configuration process, and B n The initialization configuration process is encapsulated in B n The main function of BT n In the BT n Write Block n Initialization sequence file BF2 n In, based on BF1 n and BF2 n Execute B n Initialization configuration of
[0007] Step S3: In the mth chip subsystem SS m Integration and reuse of SS in the configuration components of the verification environment m Included B n Corresponding BF1 n , generate SS m Corresponding verification environment configuration file SF1 m , the value range of m is from 1 to M, where M is the total number of chip subsystems contained in the SOC chip;
[0008] Step S4: m Reuse SS in the initialization sequence component m Included B n Corresponding BF2 n , based on SS m Included B n The dependencies of the functions are ordered by calling B n Corresponding BF2 n , and encapsulate to generate SS m The main function ST m , ST m Write SSm Initialization sequence file SF2 m In, based on SF1 m and SF2 m Execute SS m Initialization configuration of
[0009] Step S5: Integrate and reuse all SS in the configuration component of the verification environment of the SOC chip m Corresponding SF1 m , generate the verification environment configuration file CF1 corresponding to the SOC chip;
[0010] Step S6: reuse all SS in the initialization sequence component of the SOC chip m Corresponding SF2 m , based on SS m The dependencies of the functions are ordered by calling SF2 m , and encapsulate and generate the main function CT of the SOC chip, write CT into the initialization sequence file CF2 of the SOC chip, and execute the initialization configuration of the SOC chip based on CF1 and CF2.
[0011] According to a second aspect of the present invention, there is provided an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being configured to execute the method described in the first aspect of the present invention.
[0012] According to a third aspect of the present invention, there is provided a computer-readable storage medium storing computer-executable instructions, wherein the computer instructions are used to execute the method described in the first aspect of the present invention.
[0013] Compared with the prior art, the present invention has obvious advantages and beneficial effects. By means of the above technical solution, the initialization configuration method, electronic device and medium for SOC chip verification provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:
[0014] The present invention first completes the initialization configuration information of the chip component modules, and the chip subsystem and the SOC chip realize the initialization configuration by integrating and reusing the initialization configuration information of the chip component modules, thereby reducing a large amount of repetitive configuration work and avoiding configuration errors and iterative debugging caused by the chip subsystem and SOC chip verification personnel's incomplete understanding of the configuration, thereby improving the accuracy of the initialization configuration of the SOC chip verification, accelerating the convergence of the SOC chip verification, and improving the SOC chip verification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 A flow chart of an initialization configuration method for SOC chip verification provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0018] The embodiment of the present invention provides an initialization configuration method for SOC chip verification, such as Figure 1 As shown, including:
[0019] Step S1: In the nth chip component module B n The configuration component (Env_config) of the verification environment defines the register initialization configuration information n ,A2 n ,...,A i n ,...,A f(n) n}, replace n ,A2 n ,...,A i n ,...,A f(n) n}Write B n Verification environment configuration file BF1 n Among them, A i n For B n The corresponding i-th register initialization configuration information, the value range of i is 1 to f(n), f(n) is B n The corresponding register number, n ranges from 1 to N, N is the total number of chip components contained in the SOC chip, A i n =(A1 i n ,A2 i n ), A1 in A i n The corresponding parameter name, A2 i n A1 i n The default value of .
[0020] Among them, the configuration component of the verification environment sets the corresponding default value for each parameter to ensure that the chip composition module B n Can run normally.
[0021] Step S2: Based on all A i n In B n Define B in the initialization sequence component n Initialization configuration process, and B n The initialization configuration process is encapsulated in B n The main function of BT n In the BT n Write Block n Initialization sequence file BF2 n In, based on BF1 n and BF2 n Execute B n Initial configuration of .
[0022] Among them, B n The initialization configuration process defines the configuration order of registers and how each register is configured. It can be understood that the configuration of the dependent register must be arranged before the configuration of the dependent register, and the dependent register depends on the dependent register. Registers may be configured to default values, specified values, or skipped, that is, not configured. The initialization sequence component is a component in the verification environment.
[0023] Step S3: In the mth chip subsystem SS m Integration and reuse of SS in the configuration components of the verification environment m Included B n Corresponding BF1 n , generate SS m Corresponding verification environment configuration file SF1 m , the value range of m is 1 to M, and M is the total number of chip subsystems contained in the SOC chip.
[0024] It should be noted that the chip subsystem is composed of chip component modules interconnected, so SS m Ability to directly reuse SS m Included B n Corresponding BF1 n, avoiding repeated configuration and avoiding configuration errors caused by differences in configuration understanding, thereby improving the accuracy of chip subsystem initialization configuration.
[0025] Step S4: m Reuse SS in the initialization sequence component m Included B n Corresponding BF2 n , based on SS m Included B n The dependencies of the functions are ordered by calling B n Corresponding BF2 n , and encapsulate to generate SS m The main function ST m , ST m Write SS m Initialization sequence file SF2 m In, based on SF1 m and SF2 m Execute SS m Initial configuration of .
[0026] It is understandable that the dependent B n BF2 n The call must be placed before dependency B n BF2 n Before calling, it depends on B n Depends on the dependent B n By multiplexing SS m The Bn contained in the BF2 n , so that the construction of SS m The main function ST m Only SS needs to be defined m Included B n Corresponding BF2 n The calling order improves SS m The main function ST m The generation efficiency and accuracy of SS m The main function ST m Integrated packaging facilitates reuse during SOC chip initialization and configuration.
[0027] Step S5: Integrate and reuse all SS in the configuration component of the verification environment of the SOC chip m Corresponding SF1 m , generate the verification environment configuration file CF1 corresponding to the SOC chip.
[0028] It should be noted that the SOC chip is composed of interconnected chip subsystems. Therefore, the SOC chip can directly reuse the SS mn Corresponding SF1m , avoiding repeated configuration and avoiding configuration errors caused by differences in configuration understanding, thereby improving the accuracy of SOC chip initialization configuration.
[0029] Step S6: reuse all SS in the initialization sequence component of the SOC chip m Corresponding SF2 m , based on SS m The dependencies of the functions are ordered by calling SF2 m , and encapsulate and generate the main function CT of the SOC chip, write CT into the initialization sequence file CF2 of the SOC chip, and execute the initialization configuration of the SOC chip based on CF1 and CF2.
[0030] As an example, BT n There are g(n) sub-functions {bt1 n ,bt2 n ,...,bt j n ,...,bt g(n) n}, bt j n For BT n The jth subfunction in the equation, j ranges from 1 to g(n), g(n) is BT n The total number of subfunctions contained in , g(n)≥0, it can be understood that g(n) can be 0, that is, BT n It is not necessary to include sub-functions. j n Corresponding to the register configuration process of a functional category, BT n The calling order of g(n) sub-functions in B is based on n All A i n The initial configuration process is determined. n The number of sub-functions included and how the sub-functions are specifically set are divided according to factors such as the complexity and functions of the chip component modules.
[0031] It should be noted that the initialization configuration of most registers is consistent at the chip component module, chip subsystem and SOC chip level, but there are differences in the initialization configuration of some registers at the chip component module, chip subsystem and SOC chip level. In order to facilitate the reuse of configuration information at different levels and ensure configuration accuracy, it is necessary to define all A registers at the chip component module level. i n In the initialization configuration process, all the difference factors are also added. As an embodiment, in step S2, all A i nThe initialization configuration process includes:
[0032] Step S21, setting a default configuration execution statement for registers in chip component modules, chip subsystems, and SOC chips that have no difference in initialization configuration, and the default configuration execution statement configures the initial value of the register to a default value.
[0033] It should be noted that when constructing test cases for chip components, chip subsystems, and SOC chips, the default values can be modified by overriding the variables to modify the values corresponding to the default values in the main function.
[0034] Step S22, setting configuration execution statements of different branches for registers with different initialization configurations in chip component modules, chip subsystems, and SOC chips.
[0035] Specifically, step S22 may be implemented in a macro isolation manner. As an embodiment, step S22 includes:
[0036] Step S221, for the registers with different initialization configurations in the chip component modules, chip subsystems, and SOC chips, a chip component module macro definition branch, a chip subsystem macro definition branch, and a SOC chip macro definition branch are set in a macro isolation manner, and the chip component module macro definition branch, the chip subsystem macro definition branch, and the SOC chip macro definition branch configure the initial value of the register as a default value, or skip the initialization configuration of the current register, or configure the initial value of the register as a specified value, and the specified value is different from the default value.
[0037] It should be noted that, through the setting of step S221, any register can be configured differently in the chip component module, chip subsystem, and SOC chip. Specifically, there may be differences in the three levels of the chip component module, chip subsystem, and SOC chip, or there may be differences in two levels of the chip component module, chip subsystem, and SOC chip.
[0038] In addition, the addresses of the same register in different levels of the chip component module, chip subsystem, and SOC chip may be different. For example, the address of the register in the chip subsystem is the register address in the chip component module plus some offset values, and the address of the register in the SOC chip is the register address in the chip component module plus some other offset values. In order to facilitate the reuse of configuration information at different levels, as an embodiment, in step S2, all A i n The initialization configuration process includes:
[0039] Step S23, defining the register address as an address macro, and constructing an address macro mapping table, wherein the address macro mapping table includes mapping relationships between the address macro and the register addresses in the chip component module, the chip subsystem, and the SOC chip.
[0040] Among them, by defining address macros and constructing address macro mapping tables, the corresponding register addresses can be accurately and quickly obtained according to different levels during the code compilation process, ensuring the accuracy of configuration information reuse.
[0041] It should be noted that based on the reuse of configuration information at different levels, step S2 is based on BF1 n and BF2 n Execute B n Initialization configuration, step S4 based on SF1 m and SF2 m Execute SS m The initialization configuration of the SOC chip is similar to the process of performing the initialization configuration of the SOC chip based on CF1 and CF2 in step S6. As an embodiment, the initialization configuration of Q is performed based on G1 and G2, including:
[0042] Step S10: reload register configuration parameters {C1, C2, ..., C x ,...,C X}, C x is the xth reload register configuration parameter in the test case of Q, the value range of x is 1 to X, X is the total number of reload register configuration parameters in the test case of Q, 0≤X≤f(x), C x =(C1 x ,C2 x ), C1 x is the configuration parameter name of the reload register, C2 x C1 x The corresponding overload value. The overload value is any value within a reasonable range, including the default value.
[0043] Among them, X can be 0. When X is 0, it means that all parameters do not need to reload default parameters during the execution of the main program. Different reload register parameter information can be set for different Q test cases.
[0044] Step S20, calling G2, executing the main function in G2, if there is an overload register configuration parameter in the test case, then use the overload value for configuration, otherwise use the default value defined in the configuration component of the verification environment for configuration,
[0045] Among them, G1 is BF1 n , G2 is BF2 n , Q is B n ; or, G1 is SF1m , G2 is SF2 m , Q is SS m ; Or, G1 is CF1, G2 is CF2, and Q is the SOC chip.
[0046] It should be noted that when the main function calls the configuration information of a register in the main function for the first time, if there is an overload value, the overload value is called instead of the default value, and in the subsequent parameter passing process, the overload value corresponding to the register is passed.
[0047] As an embodiment, after step S20, the following steps are further included:
[0048] Step S30: determine the register address according to the type of Q and the address macro mapping table.
[0049] Step S40, determining the configuration execution statements of the branches corresponding to the registers with different initialization configurations in the chip component modules, chip subsystems, and SOC chips according to the macro definition corresponding to Q.
[0050] Among them, by executing different branches, differentiated configuration of the same register between different chip levels is achieved.
[0051] Step S50: Complete the initialization configuration of each register in Q according to each register address and the corresponding configuration execution statement.
[0052] In the verification environment of different levels of Q, each register configuration implementation function is different, but it is necessary to ensure that the same configuration function name is used to facilitate the reuse purpose. Specifically, macros are used to isolate the implementation.
[0053] It should be noted that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe 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 operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0054] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are configured to execute the method described in the embodiment of the present invention.
[0055] The embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer instructions are used to execute the method described in the embodiment of the present invention.
[0056] The embodiment of the present invention first completes the initialization configuration information of the chip component modules, and the chip subsystem and the SOC chip implement the initialization configuration by integrating and reusing the initialization configuration information of the chip component modules, thereby reducing a large amount of repetitive configuration work and avoiding configuration errors and iterative debugging caused by the chip subsystem and SOC chip verification personnel's lack of thorough understanding of the configuration, thereby improving the accuracy of the initialization configuration of the SOC chip verification, accelerating the convergence of the SOC chip verification, and improving the SOC chip verification efficiency.
[0057] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. An initialization configuration method for SOC chip verification, characterized in that: include: Step S1: In the nth chip component module B n The configuration component of the verification environment defines the register initialization configuration information n ,A2 n ,...,A i n ,...,A f(n) n }, replace n ,A2 n ,...,A i n ,...,A f(n) n }Write B n Verification environment configuration file BF1 n Among them, A i n For B n The corresponding i-th register initialization configuration information, the value range of i is 1 to f(n), f(n) is B n The corresponding register number, n ranges from 1 to N, N is the total number of chip components contained in the SOC chip, A i n =(A1 i n ,A2 i n ), A1 i n A i n The corresponding parameter name, A2 i n For A1 i n The default value of Step S2: Based on all A i n In B n The initialization sequence component is defined in B n Initialization configuration process, and B n The initialization configuration process is encapsulated in B n The main function of BT n In the BT n Write Block n Initialization sequence file BF2 n In, based on BF1 n and BF2 n Execute B n Initialization configuration of Step S3: In the mth chip subsystem SS m Integration and reuse of SS in the configuration components of the verification environment m Included B n Corresponding BF1 n , generating SS m Corresponding verification environment configuration file SF1 m , the value range of m is from 1 to M, where M is the total number of chip subsystems contained in the SOC chip; Step S4: m Reuse SS in the initialization sequence component m Included B n Corresponding BF2 n , based on SS m Included B n The dependencies of the functions are ordered by calling B n Corresponding BF2 n , and encapsulate to generate SS m The main function ST m , ST m Write SS m Initialization sequence file SF2 m In, based on SF1 m and SF2 m Execute SS m Initialization configuration of Step S5: Integrate and reuse all SS in the configuration component of the verification environment of the SOC chip m Corresponding SF1 m , generate the verification environment configuration file CF1 corresponding to the SOC chip; Step S6: reuse all SS in the initialization sequence component of the SOC chip m Corresponding SF2 m , based on SS m The dependencies of the functions are ordered by calling SF2 m , and encapsulate and generate the main function CT of the SOC chip, write CT into the initialization sequence file CF2 of the SOC chip, and execute the initialization configuration of the SOC chip based on CF1 and CF2.
2. The method according to claim 1, characterized in that BT n There are g(n) sub-functions {bt1 n ,bt2 n ,...,bt j n ,...,bt g(n) n }, bt j n For BT n The jth subfunction in the equation, j ranges from 1 to g(n), g(n) is BT n The total number of subfunctions contained in, g(n)≥0, each bt j n Corresponding to the register configuration process of a functional category, BT n The calling order of g(n) sub-functions in B is based on n All A i n The initial configuration process is determined.
3. The method according to claim 1 or 2, characterized in that: In step S2, define all A i n The initialization configuration process includes: Step S21, setting a default configuration execution statement for registers in chip component modules, chip subsystems, and SOC chips that have no difference in initialization configuration, wherein the default configuration execution statement configures the initial value of the register to a default value; Step S22, setting configuration execution statements of different branches for registers with different initialization configurations in chip component modules, chip subsystems, and SOC chips.
4. The method according to claim 3, characterized in that The step S22 comprises: Step S221, for the registers with different initialization configurations in the chip component modules, chip subsystems, and SOC chips, a chip component module macro definition branch, a chip subsystem macro definition branch, and a SOC chip macro definition branch are set in a macro isolation manner, and the chip component module macro definition branch, the chip subsystem macro definition branch, and the SOC chip macro definition branch configure the initial value of the register as a default value, or skip the initialization configuration of the current register, or configure the initial value of the register as a specified value, and the specified value is different from the default value.
5. The method according to claim 3, characterized in that: In step S2, define all A i n The initialization configuration process includes: Step S23, defining the register address as an address macro, and constructing an address macro mapping table, wherein the address macro mapping table includes mapping relationships between the address macro and the register addresses in the chip component module, the chip subsystem, and the SOC chip.
6. The method according to claim 5, characterized in that Perform initialization configuration of Q based on G1 and G2, including: Step S10: reload register configuration parameters {C1, C2, ..., C x ,...,C X }, C x is the xth reload register configuration parameter in the test case of Q, the value range of x is 1 to X, X is the total number of reload register configuration parameters in the test case of Q, 0≤X≤f(x), C x =(C1 x ,C2 x ), C1 x is the configuration parameter name of the reload register, C2 x C1 x The corresponding overload value; Step S20, calling G2, executing the main function in G2, if there is an overload register configuration parameter in the test case, then use the overload value for configuration, otherwise use the default value defined in the configuration component of the verification environment for configuration; Among them, G1 is BF1 n , G2 is BF2 n , Q is B n ; Or, G1 is SF1 m , G2 is SF2 m , Q is SS m ; Alternatively, G1 is CF1, G2 is CF2, and Q is the SOC chip.
7. The method according to claim 6, characterized in that After step S20, the following steps are further included: Step S30, determining the register address according to the type of Q and the address macro mapping table; Step S40, determining the configuration execution statements of the branches corresponding to the registers with different initialization configurations in the chip component modules, chip subsystems, and SOC chips according to the macro definition corresponding to Q; Step S50: Complete the initialization configuration of each register in Q according to each register address and the corresponding configuration execution statement.
8. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, wherein the instructions are configured to execute the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the method of any one of the preceding claims 1-7.
