Prototype verification method and device

By determining the target module and its associated modules and eliminating redundant modules during prototype verification, a targeted simulation verification version is constructed, which solves the problems of low verification efficiency and failure to consider module correlations in the existing technology, and achieves efficient prototype verification. .

CN118627437APending Publication Date: 2024-09-10SMARTER SILICON (SHANGHAI) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410834651.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing prototype verification technology, the functional module verification of the chip takes a long time in the simulation environment, resulting in low verification efficiency, and the correlation between modules and verification requirements cannot be effectively considered, resulting in the split version being unable to Comprehensive coverage of specific functional modules.

Method used

By obtaining the topology information and attribute information of each module in the prototype verification version, determine the target module to be verified and its associated modules, eliminate redundant modules, and build a targeted simulation verification version to ensure that the number of modules is reduced and verification requirements are covered. Consider Module hierarchy and functional dependencies.

Benefits of technology

It shortens the time-consuming verification process, improves verification efficiency, ensures that the simulation verification version can fully cover specific functional modules, avoids the lack of coupling relationships between modules and the existence of redundant modules, and improves the accuracy and efficiency of verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627437A
    Figure CN118627437A
Patent Text Reader

Abstract

The invention discloses a prototype verification method and device, and the method comprises the steps: obtaining the topological information and attribute information of each module of a register transmission level in a prototype verification version; determining a to-be-verified target module according to the verification demand information and the attribute information of each module; determining an association module associated with the target module according to the topological information and the attribute information of each module; and determining a simulation verification version corresponding to the prototype verification version according to the target module and the association module, wherein the number of the modules in the simulation verification version is smaller than the number of the modules in the prototype verification version.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of prototype verification technology, and in particular to a prototype verification method and device. Background Art

[0002] Prototype verification is an important part of the chip design process. During the prototype verification stage, the prototype verification version used to describe the chip structure and function can be loaded into a simulation environment (such as a field programmable gate array FPGA) to verify whether the chip structure and function design are correct in the simulation environment.

[0003] The problem with current prototype verification technology is that the prototype verification version contains a large number of functional modules of the chip, and it takes a long time to verify all the functional modules in a simulation environment, and the prototype verification efficiency is low. Summary of the invention

[0004] To this end, this application discloses the following technical solutions:

[0005] The first aspect of the present application provides a prototype verification method, comprising:

[0006] Obtain topology information and attribute information of each module of the register transfer level in the prototype verification version;

[0007] Determine the target module to be verified according to the verification requirement information and the attribute information of each module;

[0008] Determining an associated module associated with the target module according to the topology information and attribute information of each module;

[0009] The prototype verification version corresponds to a simulation verification version determined according to the target module and the associated module, and the number of modules in the simulation verification version is less than the number of modules in the prototype verification version.

[0010] Optionally, also include:

[0011] The simulation verification version is run in a simulation environment to obtain a verification result corresponding to the simulation verification version.

[0012] Optionally, also include:

[0013] If the verification result is a verification failure, determining a new associated module;

[0014] Adding the new associated module to the simulation verification version to obtain a new simulation verification version;

[0015] The new simulation verification version is run in the simulation environment to obtain a verification result corresponding to the new simulation verification version.

[0016] Optionally, the determining of a new associated module includes at least one of the following:

[0017] According to the topological information of each of the modules, a module at a higher level than the target module and the associated module is determined as a new associated module;

[0018] According to the topology information of each of the modules, a module at a lower level than the target module and the associated module is determined as a new associated module.

[0019] Optionally, determining that the prototype verification version corresponds to a simulation verification version according to the target module and the associated module includes:

[0020] Determining in the prototype verification version to remove redundant modules other than the target module and the associated module;

[0021] The redundant module is removed from the prototype verification version to obtain a simulation verification version consisting of the target module and the associated module.

[0022] Optionally, determining a target module to be verified according to the verification requirement information and the attribute information of each module includes:

[0023] Obtain verification requirement information;

[0024] According to the verification requirement information, the target module whose corresponding attribute information matches the verification requirement information is searched.

[0025] Optionally, also include:

[0026] Dividing the topology information and attribute information of each module into multiple categories, each category including the attribute information and topology information of the category corresponding to each module;

[0027] The step of searching for a target module that matches the corresponding attribute information with the verification requirement information according to the verification requirement information includes:

[0028] In the category corresponding to the verification requirement information, a target module whose corresponding attribute information matches the verification requirement information is searched for.

[0029] Optionally, the attribute information includes at least one of a module name, module input and output interface information, module register information, and module connection information, and the topology information represents the hierarchical relationship of the modules;

[0030] Determining the associated module associated with the target module according to the topology information and attribute information of each module includes at least one of the following:

[0031] According to the hierarchical relationship indicated by the topological information of each module, a module located at a level above the target module and a module located at a level below the target module are determined as associated modules associated with the target module;

[0032] According to at least one of the module input and output interface information, the module register information and the module connection information, the functional dependency relationship between the modules is determined, and the module that has a functional dependency relationship with the target module is determined as an associated module associated with the target module.

[0033] Optionally, the obtaining of topology information and attribute information of each module of the register transfer level in the prototype verification version includes:

[0034] The prototype verification version is parsed according to the data structure of the prototype verification version to obtain topology information and attribute information of each module in the prototype verification version.

[0035] A second aspect of the present application provides a prototype verification device, comprising:

[0036] An obtaining unit, used for obtaining topology information and attribute information of each module of the register transfer level in the prototype verification version;

[0037] The module determines the unit for:

[0038] Determine the target module to be verified according to the verification requirement information and the attribute information of each module;

[0039] Determining an associated module associated with the target module according to the topology information and attribute information of each module;

[0040] The version determination unit is used to determine the prototype verification version corresponding to the simulation verification version according to the target module and the associated module, and the number of modules in the simulation verification version is less than the number of modules in the prototype verification version. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0042] Figure 1 is a flowchart of a prototype verification method provided by an embodiment of the present application;

[0043] Figure 2 This is a schematic diagram of a prototype module provided in an embodiment of the present invention.

[0044] Figure 3 is a flow chart of another prototype verification method provided by an embodiment of the present application;

[0045] Figure 4 It is a structural schematic diagram of a prototype verification device provided in an embodiment of the present application;

[0046] Figure 5 It is a structural schematic diagram of another prototype verification device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] This example provides a prototype verification method. Figure 1 , the method may include the following steps.

[0049] S101, obtaining topology information and attribute information of each module of the register transfer level in the prototype verification version.

[0050] The above-mentioned prototype verification version may be edited based on the Verilog language and is used to describe the register transfer level (RTL) code of the integrated circuit chip structure that needs to be verified.

[0051] In other optional embodiments, the above-mentioned prototype verification version can also be a design and library file such as netlist, lef, def, GDSII, etc. The corresponding processing method is consistent with the processing method of the RTL code. The following text takes the RTL code as an example to illustrate the method of this embodiment.

[0052] Optionally, the solution of this embodiment can also be applied to simulation in an EDA environment and verification of EDA tool related functions.

[0053] The prototype verification version may include multiple code modules, each code module corresponding to an integrated circuit module of the integrated circuit chip. Each code module may contain information for describing various structures of the corresponding integrated circuit module. For example, an integrated circuit module may include registers, circuit structures for implementing specific logic operations (such as AND gates, XOR gates), input and output interfaces, and connecting wires, etc. Correspondingly, the code module may include module input and output interface information for describing the input and output interfaces, module register (reg) information for describing the registers, module wire (wire) information for describing the connecting wires, and logic block information for describing the circuit structure for implementing specific logic operations, etc.

[0054] In the prototype verification version, the above information can be expressed by codes edited based on the Verilog language.

[0055] In step S101 , the prototype verification version may be parsed according to its data structure to obtain topology information and attribute information of each module in the prototype verification version.

[0056] The attribute information may include at least one of the module name, module input and output interface information, module register information, module connection information, and logic block information.

[0057] The way to parse and obtain attribute information can be:

[0058] In the grammatical rules of the Verilog language, the above-mentioned various information can be declared by preceding keywords. Exemplarily, the code for declaring the module name may be "module X_module", where "module" is the keyword used to declare the module name, and the code between "module X_module" and the keyword "endmodule" constitutes a code module that describes the integrated circuit module corresponding to X_module, and "X_module" is the module name of the code module. The code for declaring a register may be "reg X_Reg=1", where "reg" is the keyword, "X_Reg" is the name of the register, and 1 is the initial value of the register.

[0059] Based on the above grammatical rules, when executing S101, the above keywords can be detected one by one in the prototype verification version, the prototype verification version can be divided into multiple code modules based on the detected keywords, and the above attribute information can be extracted based on the keywords in each code module.

[0060] In S101, the topological information of each code module can also be obtained according to the data structure analysis of the prototype verification version. The topological information of a code module is used to describe the hierarchical relationship between the code module and other code modules.

[0061] The above topology information can be determined based on the nested relationship between different code modules in the prototype verification version. As an example, assuming that "module module_5" is located between "module module_2" and "endmodule", and "module module_6" is included between "module module_5" and its corresponding "endmodule", the topology information of module 5 (module_5) obtained by parsing may include:

[0062] Module 5 is contained in module 2 (module_2), and module 5 contains a module 6 (module_6).

[0063] S102: Determine the target module to be verified according to the verification requirement information and the attribute information of each module.

[0064] The number of target modules can be one or more, and one target module is used as an example for description below.

[0065] In step S102, verification requirement information may be obtained first, and then a target module whose corresponding attribute information matches the verification requirement information may be searched for according to the verification requirement information.

[0066] The verification requirement information is used to describe the purpose of this verification. For example, the verification requirement information may describe which function or functions of the chip need to be verified this time.

[0067] As some examples, the verification requirement information may include: this verification needs to check the Clock & Reset Generator (CRG) function of the chip.

[0068] After obtaining the verification requirement information, the verification requirement information can be analyzed for one or more attribute information of each module obtained in S101 to determine which attribute information is related to the verification requirement information, and then the modules to which these related attribute information belong can be determined as target modules to be verified.

[0069] In combination with the above example, after obtaining the verification requirement information that needs to verify the CRG function, the module input and output interface information of each module can be checked to analyze which input and output interfaces are related to the CRG function. For example, analyze which interfaces are used to input control signals that control the CRG function, and which interfaces are used to output clock reset signals, etc. Then, based on the relevant input and output interfaces, determine the target module (CRG_module) corresponding to the CRG function. For example, after analyzing the output interface for outputting the clock reset signal, determine the code module to which the interface belongs as the target module.

[0070] As an example, the prototype verification version obtained in S101 can be used Figure 2 (1) indicates that each rectangular module in the figure represents a code module in the prototype verification version, and the target module determined according to the verification requirement information in S102 can be module 5 in the structure.

[0071] In some optional embodiments, before executing S102, the attribute information and topology information of each module may be classified according to the following steps:

[0072] The topology information and attribute information of each module are divided into multiple categories, and each category includes the attribute information and topology information of the category corresponding to each module.

[0073] Before classification, several key-value pairs can be constructed based on the attribute information and topology information parsed previously. Each key-value pair includes a module name as a key and topology information or a certain attribute information as a value.

[0074] As an example, the key-value pairs constructed in this way may include: (module name, topology information), (module name, module register information), (module name, logic block information), (module name, module input interface information), (module name, module output interface information), (module name, module connection line information), etc.

[0075] After the key-value pairs are divided, they can be classified. Key-value pairs containing the same type of values ​​are classified into the same category, and key-value pairs containing different types of values ​​are classified into different categories. For example, (module 5, module register information of module 5) and (module 4, module register information of module 4) are classified into the same category, namely, the register category; (module 3, module 3 topology information) and (module 2, module 2 topology information) are classified into the topology information category.

[0076] After implementing the above classification steps, the way to find the target module can be:

[0077] In the category corresponding to the verification requirement information, find the target module whose corresponding attribute information matches the verification requirement information.

[0078] The method of searching in the corresponding category is similar to the aforementioned searching method, that is, searching in the corresponding category whether there is attribute information related to the verification requirement information. If so, the module to which the attribute information related to the verification requirement information belongs can be determined as the target module.

[0079] The category corresponding to the verification requirement information may be related to the function described by the verification requirement information. For example, when the verification requirement information is: when the CRG function of the chip needs to be checked, the corresponding category may include an input interface category and an output interface category.

[0080] Optionally, if attribute information related to the verification requirement information is not found in the category corresponding to the verification requirement information, it may be further searched in other categories to see whether there is attribute information related to the verification requirement information.

[0081] Exemplarily, if the module input interface information and module output interface information related to the verification requirement information are not found in the input interface category and the output interface category, it is possible to further search in the register category to see whether there is module register information related to the verification requirement information.

[0082] The benefits of searching for the target module after classification are:

[0083] Without classification, searching for the target module may require analyzing multiple attribute information of each module. After classification, only one attribute information in a specific category can be analyzed when searching for the target module. Therefore, searching after classification can effectively improve the efficiency of searching for the target module.

[0084] S103: Determine the associated modules associated with the target module according to the topology information and attribute information of each module.

[0085] An optional way to determine the associated module may be:

[0086] According to the hierarchical relationship indicated by the topological information of each module, a module located at a level above the target module and a module located at a level below the target module are determined as associated modules associated with the target module.

[0087] The module located at the upper level of the target module may be a module that contains the target module; the module located at the lower level of the target module may be one or more modules contained in the target module.

[0088] For example, in Figure 2 In (1), the target module determined is module 5, then the modules located at the upper level of the target module may include module 2 in the figure, and the modules located at the lower level of the target module may include module 6 in the figure.

[0089] Another optional way to determine the associated module can be:

[0090] According to at least one of the module input / output interface information, the module register information and the module connection information, the functional dependency relationship between the modules is determined, and the module having the functional dependency relationship with the target module is determined as the associated module associated with the target module.

[0091] The method of determining the functional dependency may include at least one of the following:

[0092] For any two modules, if the input parameters of the input interface of one module are the same as the output parameters of the output interface of the other module, it can be considered that there is a functional dependency relationship between the two modules, that is, the input of the former depends on the output of the latter; the input parameters of the input interface and the output parameters of the output interface can be obtained in the module input and output interface information;

[0093] For any two modules, if the parameters in the register of one module appear in the register of another module, it can be considered that there is a functional dependency between the two modules, and the parameters contained in the register can be obtained from the module register information;

[0094] For any two modules, if the module connection information of the two modules indicates that there is at least one connection line connecting the two modules, it can be considered that there is a functional dependency relationship between the two modules.

[0095] For example, in Figure 2 In (1), it can be determined based on the module input and output interface information that the output parameters of module 5 are consistent with the input parameters of module 4, and there is a connecting line between module 5 and module 4, thereby determining that there is a functional dependency relationship between module 5 and module 4, and further determining that module 4 belongs to an associated module.

[0096] S104, determining that the prototype verification version corresponds to the simulation verification version according to the target module and the associated modules, wherein the number of modules in the simulation verification version is less than the number of modules in the prototype verification version.

[0097] In step S104, redundant modules other than the target module and the associated modules may be first determined in the prototype verification version; and then the redundant modules may be removed from the prototype verification version to obtain a simulation verification version consisting of the target module and the associated modules.

[0098] Redundant modules may include every module in the prototype verification version except the target module and associated modules.

[0099] Combination Figure 2 For example, suppose Figure 2 In the prototype verification version shown in (1), module 5 is determined as the target module, and modules 2, 6 and 4 are determined as associated modules. Then, each module except these target modules and associated modules can be Figure 2 Module 1, module 3, module 7, module 8, module 9 and module 10 shown in (1) are determined as redundant modules.

[0100] The redundant modules may be removed by obtaining a copy of a prototype verification version, deleting the code of each redundant module from the copy, retaining the code belonging to the target module and associated modules, and finally using the remaining code modules as the simulation verification version.

[0101] The beneficial effect of this embodiment is that when performing prototype verification, a targeted simulation verification version is determined based on the target module to be verified and the associated modules associated with the target module. In this way, when verification is required in a simulation environment, the simulation verification version containing fewer modules can be directly loaded, thereby shortening the verification process and improving verification efficiency.

[0102] In the related technical field, there are some solutions for splitting the prototype verification version. This splitting solution is generally split from the top level of the prototype verification version, that is, one or several modules at the highest level (top level) and the modules contained in the prototype verification version are retained, and other modules at the highest level and the modules contained in them are directly deleted. Figure 2 (1) is an example. When splitting based on this splitting scheme, modules 1 to 8 may be retained and modules 9 and 10 may be deleted.

[0103] The problems with this split are:

[0104] First, the granularity of this splitting scheme is large. Directly deleting other top-level modules without considering the relationship between modules can easily lead to the lack of coupling relationship between modules. For example, in the above example, the function of a module in module 1 may depend on a module in module 9. In this case, directly deleting module 9 will cause the modules in module 1 to lack the necessary coupling relationship and cannot be verified. In addition, there are often many low-level redundant modules in the retained top-level modules, resulting in low verification efficiency.

[0105] Secondly, the split does not take into account specific verification requirements. Therefore, when verifying a certain verification requirement, a split version may not include all functional modules related to the verification requirement, resulting in a single split version being unable to meet the verification requirement. At this time, it is often necessary to switch back and forth between multiple split versions to meet the corresponding verification requirements. For example, when doing CRG-related functional verification, due to version limitations, the split version may not cover the CRG function of the entire chip, and can only verify and cover multiple versions separately.

[0106] Compared with the above-mentioned splitting scheme, on the first hand, compared with the scheme of splitting directly from the top level, the splitting granularity of the scheme of this embodiment is smaller, so when determining the simulation verification version, redundant modules that are not related to the verification requirements can be eliminated as much as possible, thereby solving the problem of low verification efficiency caused by retaining low-level redundant modules. In addition, since the relationship between modules is considered during splitting, the scheme of this embodiment can also avoid the lack of coupling relationship between modules after splitting, ensuring that the retained simulation verification version can be verified smoothly.

[0107] Secondly, in the simulation verification version obtained by the method of this embodiment, what are retained are the target modules corresponding to the verification requirements and the associated modules associated with the target modules. This can ensure that the simulation verification version covers the modules related to specific verification requirements more comprehensively, avoid the problem of missing modules involved in the verification requirements in the version and needing to switch between multiple versions, and ensure that only one version needs to be run in the simulation environment to complete the verification of specific functions.

[0108] Another embodiment also provides a prototype verification method, see Figure 3 , which is a flow chart of the method of this embodiment.

[0109] The implementation of steps S101 to S104 may refer to the above-mentioned embodiments and will not be described in detail.

[0110] S301, running a simulation verification version in a simulation environment to obtain a verification result corresponding to the simulation verification version.

[0111] In step S301, the simulation verification version can be input into the simulation environment through the simulation software, and the simulation verification version can be run in the simulation environment. If the simulation verification version can run smoothly without abnormal phenomena such as errors, freezes, interruptions, etc., the verification result of the simulation verification version can be considered to be a successful verification. If the above-mentioned abnormal phenomena occur, the verification result can be considered to be a failed verification.

[0112] If the verification is successful, the verification method of this embodiment may be terminated. If the verification fails, step S302 may be executed.

[0113] S302: When the verification result is a verification failure, determine a new associated module.

[0114] One way to identify new associated modules could be:

[0115] According to the topological information of each module, a module at a higher level than the target module and the associated module is determined as a new associated module.

[0116] In the above determination method, based on the hierarchical relationship of each module, a module including the highest-level associated module in the simulation verification version can be determined in the prototype verification version, and this module can be determined as a new associated module.

[0117] by Figure 2 The simulation verification version shown in (2) is an example. When the verification of this simulation verification version fails, the module 2 of the highest level of the simulation verification version in the prototype verification version, that is, module 1, can be determined as a new associated module.

[0118] Another way to identify the new associated module could be:

[0119] According to the topological information of each module, a module at a lower level than the target module and the associated module is determined as a new associated module.

[0120] In the above determination method, based on the hierarchical relationship of each module, the module included in the lowest-level associated module in the simulation verification version can be determined in the prototype verification version, and this module can be determined as a new associated module.

[0121] by Figure 2 The simulation verification version shown in (2) is an example. When the verification of this simulation verification version fails, the module contained in the lowest level module 6 of the simulation verification version, that is, module 7 in the prototype verification version, can be determined as a new associated module.

[0122] S303, adding a new associated module to the simulation verification version to obtain a new simulation verification version.

[0123] In S303, the codes of these new associated modules can be obtained from the prototype verification version, and the codes of the new associated modules can be added to the simulation verification version that has been verified once in S301 to obtain a new simulation verification version.

[0124] As an example, suppose Figure 2 After the simulation verification version shown in (2) fails to be verified, new associated modules, namely module 1 and module 7, can be determined in the prototype verification version, and then module 1 and module 7 are added to the simulation verification version to obtain a new simulation verification version.

[0125] S304, running the new simulation verification version in the simulation environment to obtain a verification result corresponding to the new simulation verification version.

[0126] The verification method of S304 can refer to step S301 and will not be described in detail.

[0127] Optionally, if after determining a new simulation verification version in the above manner, the new simulation verification version still fails to be verified, it can be determined whether a new associated module can continue to be found in the prototype verification version. If a new associated module can be found, the above process can be repeated until a new associated module is not found. If the verification fails and no new associated module can be found, the verification can be ended and the verification result of the verification can be determined as a verification failure.

[0128] For example, when verifying the CRG function, if the simulation verification version determined for the first time according to the above method fails to be verified, the new simulation verification version also fails to be verified, and no new associated module can be found, then the verification of the CRG function can be ended, and it is determined that the CRG function verification in the prototype verification version has failed, that is, it is determined that the CRG function in the prototype verification version cannot currently work normally and needs to be debugged.

[0129] This embodiment also provides a prototype verification device, see Figure 4 , the device may include the following units.

[0130] An obtaining unit 401 is used to obtain topology information and attribute information of each module of the register transfer level in the prototype verification version;

[0131] The module determination unit 402 is used to:

[0132] According to the verification requirement information and the attribute information of each module, determine the target module to be verified;

[0133] According to the topological information and attribute information of each module, determine the associated modules associated with the target module;

[0134] The version determination unit 403 is used to determine the prototype verification version corresponding to the simulation verification version according to the target module and the associated modules, and the number of modules in the simulation verification version is less than the number of modules in the prototype verification version.

[0135] Optionally, the version determination unit 403 determines the prototype verification version corresponding to the simulation verification version according to the target module and the associated module, including:

[0136] In the prototype verification version, it is determined to remove redundant modules other than the target module and associated modules;

[0137] Redundant modules are removed from the prototype verification version to obtain a simulation verification version consisting of the target module and associated modules.

[0138] Optionally, the module determination unit 402 determines the target module to be verified according to the verification requirement information and the attribute information of each module, including:

[0139] Obtain verification requirement information;

[0140] According to the verification requirement information, the corresponding attribute information and the target module that matches the verification requirement information are found.

[0141] Optionally, the module determination unit 402 is further configured to:

[0142] The topology information and attribute information of each module are divided into multiple categories, each category includes the attribute information and topology information of the category corresponding to each module;

[0143] The module determination unit 402 searches for a target module whose corresponding attribute information matches the verification requirement information according to the verification requirement information, including:

[0144] In the category corresponding to the verification requirement information, find the target module whose corresponding attribute information matches the verification requirement information.

[0145] Optionally, the attribute information includes at least one of the module name, module input and output interface information, module register information, and module connection information, and the topology information represents the hierarchical relationship of the modules;

[0146] The module determination unit 402 determines the associated modules associated with the target module according to the topology information and attribute information of each module, including at least one of the following:

[0147] According to the hierarchical relationship indicated by the topological information of each module, a module located at a level above the target module and a module located at a level below the target module are determined as associated modules associated with the target module;

[0148] According to at least one of the module input / output interface information, the module register information and the module connection information, the functional dependency relationship between the modules is determined, and the module having the functional dependency relationship with the target module is determined as the associated module associated with the target module.

[0149] Optionally, the obtaining unit 401 obtains topology information and attribute information of each module of the register transfer level in the prototype verification version, including:

[0150] The prototype verification version is parsed according to its data structure to obtain topological information and attribute information of each module in the prototype verification version.

[0151] In some optional embodiments, see Figure 5 , the above-mentioned prototype verification device may also include:

[0152] The verification unit 501 is used for:

[0153] Run the simulation verification version in the simulation environment to obtain the verification result corresponding to the simulation verification version.

[0154] Optionally, the module determination unit 402 is further configured to determine a new associated module when the verification result is a verification failure;

[0155] The version determination unit 403 is also used to add a new associated module to the simulation verification version to obtain a new simulation verification version;

[0156] The verification unit 501 is further used to run a new simulation verification version in a simulation environment to obtain a verification result corresponding to the new simulation verification version.

[0157] Optionally, the module determining unit 402 determines a new associated module, including at least one of the following:

[0158] According to the topological information of each module, a module at a higher level than the target module and the associated module is determined as a new associated module;

[0159] According to the topological information of each module, a module at a lower level than the target module and the associated module is determined as a new associated module.

[0160] The working principle of the prototype verification device provided in this embodiment can refer to the relevant steps of the prototype verification method provided in any embodiment, and will not be repeated here.

[0161] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0162] For the convenience of description, the above system or device is described as being divided into various modules or units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0163] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0164] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0165] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A prototype verification method, comprising: Obtain topology information and attribute information of each module of the register transfer level in the prototype verification version; Determine the target module to be verified according to the verification requirement information and the attribute information of each module; Determining an associated module associated with the target module according to the topology information and attribute information of each module; The prototype verification version corresponds to a simulation verification version determined according to the target module and the associated module, and the number of modules in the simulation verification version is less than the number of modules in the prototype verification version.

2. The method according to claim 1, further comprising: The simulation verification version is run in a simulation environment to obtain a verification result corresponding to the simulation verification version.

3. The method according to claim 2, further comprising: If the verification result is a verification failure, determining a new associated module; Adding the new associated module to the simulation verification version to obtain a new simulation verification version; The new simulation verification version is run in the simulation environment to obtain a verification result corresponding to the new simulation verification version.

4. The method according to claim 3, wherein the determining of a new associated module comprises at least one of the following: According to the topological information of each of the modules, a module at a higher level than the target module and the associated module is determined as a new associated module; According to the topology information of each of the modules, a module at a lower level than the target module and the associated module is determined as a new associated module.

5. The method according to claim 1, wherein determining that the prototype verification version corresponds to the simulation verification version according to the target module and the associated module comprises: Determining in the prototype verification version to remove redundant modules other than the target module and the associated module; The redundant module is removed from the prototype verification version to obtain a simulation verification version consisting of the target module and the associated module.

6. The method according to claim 1, wherein determining the target module to be verified according to the verification requirement information and the attribute information of each module comprises: Obtain verification requirement information; According to the verification requirement information, the target module whose corresponding attribute information matches the verification requirement information is searched.

7. The method according to claim 6, further comprising: Dividing the topology information and attribute information of each module into multiple categories, each category including the attribute information and topology information of the category corresponding to each module; The step of searching for a target module that matches the corresponding attribute information with the verification requirement information according to the verification requirement information includes: In the category corresponding to the verification requirement information, a target module whose corresponding attribute information matches the verification requirement information is searched for.

8. The method according to claim 1, wherein the attribute information includes at least one of a module name, module input and output interface information, module register information, and module connection information, and the topology information represents the hierarchical relationship of the modules; Determining the associated module associated with the target module according to the topology information and attribute information of each module includes at least one of the following: According to the hierarchical relationship indicated by the topological information of each module, a module located at a level above the target module and a module located at a level below the target module are determined as associated modules associated with the target module; According to at least one of the module input and output interface information, the module register information and the module connection information, the functional dependency relationship between the modules is determined, and the module that has a functional dependency relationship with the target module is determined as an associated module associated with the target module.

9. The method according to claim 1, wherein obtaining topology information and attribute information of each module of the register transfer level in the prototype verification version comprises: The prototype verification version is parsed according to the data structure of the prototype verification version to obtain topology information and attribute information of each module in the prototype verification version.

10. A prototype verification device, comprising: An obtaining unit, used for obtaining topology information and attribute information of each module of the register transfer level in the prototype verification version; The module determines the unit for: Determine the target module to be verified according to the verification requirement information and the attribute information of each module; Determining an associated module associated with the target module according to the topology information and attribute information of each module; The version determination unit is used to determine the prototype verification version corresponding to the simulation verification version according to the target module and the associated module, and the number of modules in the simulation verification version is less than the number of modules in the prototype verification version.