Chip verification method and device, equipment and storage medium

By obtaining the clock reset structure diagram of the chip and building a virtual clock tree, the clock reset structure is automatically verified, which solves the problems of modular connection errors and the impact of clock resetter changes, and improves chip verification efficiency and scalability.

CN118586353APending Publication Date: 2024-09-03HANGZHOU CORE POWER SEMICON CO LTD

Patent Information

Application Number
CN202410630801.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In the chip verification environment, the modular connection method is easy to introduce errors, and changes to the clock resetter will affect the entire chip design cycle, resulting in low verification efficiency.

Method used

By obtaining the clock reset structure diagram of the chip, determining the component information and parent-child relationship, building a virtual clock tree, and building a clock reset verification platform based on general verification methodology to automatically verify the clock reset structure.

Benefits of technology

It reduces the complexity and time of chip verification, improves verification efficiency, achieves rapid iteration and progress convergence, and has strong scalability to adapt to different projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586353A
    Figure CN118586353A
Patent Text Reader

Abstract

The embodiment of the invention discloses a chip verification method and device, equipment and a storage medium, and relates to the technical field of chip verification. The method comprises the following steps: acquiring a clock reset structure chart of a chip; determining component information of each component in the clock reset structure chart and a parent-child relationship of each component according to the clock reset structure chart; obtaining a virtual clock tree according to the component information and the father-son relationship; based on a general verification methodology, constructing a clock reset verification platform of the chip according to the virtual clock tree; and verifying the clock reset structure of the chip through the clock reset verification platform. Therefore, by automatically analyzing the clock reset structure chart and generating the chip verification environment, the chip verification complexity is reduced, verification environment iteration and verification progress convergence can be completed in a short time, the verification environment implementation complexity is reduced through the clock node father-son relationship virtual clock tree, and the verification efficiency is improved. And the method has relatively high expandability and can be adapted to different projects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip verification technology, and in particular to a chip verification method, device, equipment and storage medium. Background Art

[0002] Large-scale chip structures are more complex. If modular connections are used in the verification environment, errors may be introduced, and it is difficult to find the location of the error in time during debugging, resulting in low work efficiency. In addition, the modification of the clock reset generator (CRG) may run through the entire chip design cycle. If the CRG is modified, the verification personnel need to adjust the component connection relationship synchronously, resulting in low verification efficiency. Summary of the invention

[0003] In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and to provide a chip verification method, device, equipment and storage medium for automatically extracting clock reset key node information and using the node idea to verify the environment method.

[0004] The present invention provides the following technical solutions:

[0005] In a first aspect, the present invention provides a chip verification method, the method comprising:

[0006] Get the clock reset structure diagram of the chip;

[0007] Determine, according to the clock reset structure diagram, component information of each component in the clock reset structure diagram and the parent-child relationship of each component;

[0008] Obtain a virtual clock tree according to the component information and the parent-child relationship;

[0009] Based on the general verification methodology, a clock reset verification platform of the chip is constructed according to the virtual clock tree;

[0010] The clock reset structure of the chip is verified by the clock reset verification platform.

[0011] In one implementation, the verifying the clock reset structure of the chip by the clock reset verification platform includes:

[0012] Sending a test stimulus to the clock reset structure through the clock reset verification platform, and obtaining an actual output from the clock reset structure;

[0013] Sending a test stimulus to the virtual clock tree through the clock reset verification platform, and obtaining an expected value from the virtual clock tree;

[0014] The actual output and the expected value are compared to obtain a comparison result; and whether the behavior of the clock reset structure is correct is determined according to the comparison result.

[0015] In one implementation, judging whether the behavior of the clock reset structure is correct according to the comparison result includes:

[0016] If the actual output is consistent with the expected value, the behavior of the clock reset structure is correct;

[0017] If the actual output does not match the expected value, then the clock reset structure behaves incorrectly.

[0018] In one implementation, after the clock reset verification platform sends a test stimulus to the clock reset structure, the method includes:

[0019] The actual operation information of the clock reset structure of the chip is monitored in real time by the clock reset verification platform;

[0020] The node information of the virtual clock tree is adjusted according to the actual operation information.

[0021] In one implementation, the actual operation information includes a reset signal and a register value, and the step of adjusting the node information of the virtual clock tree according to the actual operation information includes:

[0022] If the actual operation information is the reset signal, adjusting the reset attribute in the node information according to the reset signal;

[0023] If the actual operation information is the register value, the control attribute in the node information is adjusted according to the register value.

[0024] In one implementation, determining component information of each component in the clock reset structure diagram according to the clock reset structure diagram includes:

[0025] Traversing the component type of each component in the clock reset structure diagram;

[0026] Create several types of tuples corresponding to the component types;

[0027] The component information of the corresponding components is represented by the several types of tuples.

[0028] In one implementation, determining the parent-child relationship of each component in the clock reset structure diagram according to the clock reset structure diagram includes:

[0029] Traversing the connection relationship of each of the components in the clock reset structure diagram;

[0030] The parent-child relationship of each of the components is determined according to the connection relationship.

[0031] In a second aspect, the present invention provides a chip verification device, the device comprising:

[0032] An acquisition module, used to acquire a clock reset structure diagram of a chip;

[0033] A determination module, used to determine the component information of each component in the clock reset structure diagram and the parent-child relationship of each component according to the clock reset structure diagram;

[0034] An acquisition module, used for obtaining a virtual clock tree according to the component information and the parent-child relationship;

[0035] A construction module, used for constructing a clock reset verification platform of the chip according to the virtual clock tree based on a general verification methodology;

[0036] A verification module is used to verify the clock reset structure of the chip through the clock reset verification platform.

[0037] In a third aspect, the present invention proposes a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the chip verification method described in the first aspect are implemented.

[0038] In a fourth aspect, the present invention proposes a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the chip verification method as described in the first aspect.

[0039] The chip verification method, device, equipment and storage medium disclosed in the present invention obtain the clock reset structure diagram of the chip; determine the component information of each component in the clock reset structure diagram and the parent-child relationship of each component according to the clock reset structure diagram; obtain a virtual clock tree according to the component information and the parent-child relationship; based on the general verification methodology, build a clock reset verification platform for the chip according to the virtual clock tree; verify the clock reset structure of the chip through the clock reset verification platform. In this way, the chip verification environment is generated through the automatic analysis of the clock reset structure diagram, thereby reducing the complexity of chip verification, and the verification environment iteration and verification progress convergence can be completed in a short time. The complexity of the verification environment implementation is reduced through the virtual clock tree of the parent-child relationship of the clock nodes, and it has strong scalability and can be adapted to different projects. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0041] Figure 1 A schematic diagram of a process of a chip verification method proposed in an embodiment of the present invention is shown;

[0042] Figure 2 A schematic diagram of the structure of the components proposed in the embodiment of the present invention is shown;

[0043] Figure 3 Another schematic diagram of the process of the chip verification method proposed in the embodiment of the present invention is shown;

[0044] Figure 4 A schematic structural diagram of a chip verification device proposed in an embodiment of the present invention is shown.

[0045] Icons: 400 - chip verification device; 401 - acquisition module; 402 - determination module; 403 - acquisition module; 404 - construction module; 405 - verification module. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0047] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. 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.

[0048] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0049] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0050] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.

[0051] Example 1

[0052] The embodiment of the present disclosure provides a chip verification method for automatically extracting the key node information of clock reset and using the node concept to verify the environment method.

[0053] See also Figure 1 The present invention proposes a chip verification method, which includes steps S101 to S105. Each step is described in detail below.

[0054] Step S101, obtaining a clock reset structure diagram of a chip.

[0055] In this embodiment, after the design scheme of CRG is determined, the connection relationship of CRG in the chip can be displayed in the form of Visio graphics according to the design scheme, so as to obtain a clock reset structure diagram based on Visio. Specifically, the chip pin (PAD) or input (Input) component is used as the input port, the output (Output) component is used as the output port, the register (Register, REG) is used as the control signal, and the components are required to be connected with unidirectional arrows, and the connection line naming is consistent with the connection line naming of the register transfer level (Register Transfer Level, RTL).

[0056] It should be noted that in order to improve reusability and scalability, various component models need to be developed. Figure 2 Examples of components include PAD, REG, Input (CRG input signal port), Output (CRG output signal port), AND gate (AND), OR gate (OR), multiplexer (MUX), inverter (INV), scan multiplexer (SCAN MUX), design for testability multiplexer (DFT MUX), divider (DIV), independent clock generator (ICG) and constant (Constant). After development, all of the above components are placed in the Visio stencil library as the basic components of the clock reset structure.

[0057] Step S102: determining component information of each component in the clock reset structure diagram and the parent-child relationship of each component according to the clock reset structure diagram.

[0058] In this embodiment, the concept of node is used to regard each component in the clock reset structure diagram as multiple corresponding nodes. The basic information that needs to be obtained for each node includes the node ID, the parent node ID, the node type, the control signal required by the node, and the signal name of the output component.

[0059] Specifically, the information of each component can be obtained by parsing the clock reset structure diagram, and several types of tuples can be created according to the different types of components, so as to record the component information of each component, that is, the information of each node through several types of tuples; and the parent-child relationship of each component needs to be obtained by parsing the clock reset structure diagram, so as to know the parent-child relationship of the corresponding node. In this way, every time the clock structure of the chip is changed, the parent-child clock relationship, node attributes and other information of the clock structure diagram provided by the designer can be automatically extracted to change the subsequent chip verification environment in a short time, and the complexity of the verification environment is reduced by the virtual clock tree of the parent-child relationship of the clock node, which has strong scalability and can be adapted to different projects.

[0060] In a specific embodiment, determining the component information of each component in the clock reset structure diagram based on the clock reset structure diagram includes: traversing the component type of each component in the clock reset structure diagram; creating corresponding several types of tuples according to the component type; and representing the component information of the corresponding component through the several types of tuples.

[0061] In this embodiment, Python is first used to traverse all components in the clock reset structure diagram, extract the prefix of the component name as the component type, rename the component in the format of component type_ID; then, according to the different component types, several types of tuples are created to record the information of each component. The commonly used components are: osc_cell, mux_cell, div_cell, ckg_cell, out_cell, and_cell, or_cell, inv_cell.

[0062] Among them, the attributes of osc_cell include name and port_id. Both PAD and Input components can be regarded as osc_cell.

[0063] The attributes of mux_cell include name, port_id, father_port0_id (MUX port 0 father node ID), father_port1_id (MUX port 1 father node ID), mux_type (MUX types include Normal, SCAN, DFT), cfg_reg (control register name). If the type is SCAN or DFT, father_port1_id and cfg_reg can be ignored.

[0064] The attributes of div_cell include name, port_id, father_port, div_type, fix_par (fixed frequency division coefficient), alt_par_reg (variable frequency division coefficient control register name), rst_name, duty_cycle. Among them, div_type includes fixed frequency division (FIX_DIV) and variable frequency division (Gating_div).

[0065] The attributes of ckg_cell include name, port_id, father_port, and en_reg (name of the gated clock enable register).

[0066] The attributes of and_cell include name, port_id, father_port0, father_port1.

[0067] The attributes of or_cell include name, port_id, father_port0, father_port1. The attributes of inv_cell include name, port_id, father_port.

[0068] The attributes of out_cell include name, port_id, father_port, and interface_name.

[0069] In a specific embodiment, determining the parent-child relationship of each component in the clock reset structure diagram according to the clock reset structure diagram includes: traversing the connection relationship of each component in the clock reset structure diagram; and determining the parent-child relationship of each component according to the connection relationship.

[0070] In this embodiment, since the connection relationship between components is a unidirectional connection, the properties of the corresponding components can be obtained by traversing the input and output ports of each connection line in the clock reset structure diagram.

[0071] For a single-input single-output component, traverse the output ports of the connection line. If the component connected to the output port is Output or INV, the component ID connected to the input port of the connection line is the parent node ID of the node. Since the name of the connection line is consistent with the RTL name requirements, the name of the connection line is the name of the output signal.

[0072] For a dual-input single-output component, traverse the output port of the connecting line. If the component connected to the output port is AND or OR, the component ID connected to the input port of the connecting line is the parent node ID of the node. Use the same method to find the other parent node of the component.

[0073] For DIV components, there are many types of DIV components. The specific method is to traverse the output ports of the connection lines, find all the connection lines connected to them, and then determine which port the connection line is connected to, so as to determine the relevant parameters of the DIV component. For example, if the output end of the connection line is connected to the DIV_REG port of the DIV component, then the REG component connected to the input end of the connection line is the frequency division coefficient control register of the DIV.

[0074] For the MUX component, the specific method is to first find the connection line connected to it, and then determine which port the connection line is connected to to determine the parent node ID and control register name. It should be noted that the MUX component has two signal input ports, and the order of the two ports cannot be swapped. For the SCAN MUX and the testability design multiplexer DFT MUX, only the parent node ID of father_port0 needs to be determined.

[0075] For the clock source component, the clock source component only needs to know the component ID. By traversing the input port of the connection line, if the component connected to the input port is PAD or input, it can be determined that the component is a clock source component and the corresponding component name and ID can be set.

[0076] Step S103: obtaining a virtual clock tree according to the component information and the parent-child relationship.

[0077] In this embodiment, it is necessary to build a chip verification environment, in which the most important part is the reference model. The concept of nodes is used in the reference model to build a virtual clock tree consistent with the design scheme. Specifically, the node information recorded by the several types of tuples obtained in step S102 is connected according to the parent-child relationship obtained in step S102 to obtain a virtual clock tree corresponding to the clock reset structure diagram. The virtual clock tree is used to verify and simulate the propagation and processing of the clock signal in the system. At the same time, since the node attributes have the property of backward propagation, after the configurable nodes are configured, some clock parameters will be recalculated according to the node type and continue to propagate downward until they are passed to the output component.

[0078] Step S104: Based on the general verification methodology, a clock reset verification platform for the chip is constructed according to the virtual clock tree.

[0079] In this embodiment, the reference model including the virtual clock tree is integrated into the Universal Verification Methodology (UVM) verification framework to obtain the clock reset verification platform of the chip. In this way, through the flexibility and scalability of the UVM framework, the chip CRG can be easily subjected to comprehensive functional verification and performance analysis.

[0080] Step S105 , verifying the clock reset structure of the chip through the clock reset verification platform.

[0081] In this embodiment, after the clock reset verification platform is constructed, the clock reset structure (Device Under Test, Dut) of the chip is verified by the clock reset verification platform. At this time, the clock reset verification platform generates a chip verification environment through automatic clock structure analysis, reducing the complexity of CRG verification.

[0082] See also Figure 3 In a specific embodiment, the clock reset structure of the chip is verified by the clock reset verification platform, including steps S1051 to S1053, and each step is described in detail below.

[0083] Step S1051: Send a test stimulus to the clock reset structure through the clock reset verification platform, and obtain an actual output from the clock reset structure.

[0084] In this embodiment, first, the clock reset verification platform generates test stimuli, which are usually various input signals or conditions that may appear in the simulated real environment, and are used to trigger the behavior of the clock reset structure. Specifically, the clock reset verification platform can send test stimuli to the input port of the clock reset structure through scan mode (scan_mode), testability design enable (dft_en), bus interface (bus_interface) and reset (reset). The control logic part of the clock reset structure will parse the test stimuli sent, scan_mode and dft_en are parsed as parent changes (parent change), reset is parsed as reset changes (reset_change), and bus_interface is parsed as register value changes (reg_val_change). When the test stimulus is parsed, the clock reset structure performs corresponding actions according to the parsing results, and then the actual output (actual_output_data) can be obtained from the output port of the clock reset structure.

[0085] In a specific embodiment, after the test stimulus is sent to the clock reset structure by the clock reset verification platform, it includes: monitoring the actual operation information of the clock reset structure of the chip in real time by the clock reset verification platform; adjusting the node information of the virtual clock tree according to the actual operation information.

[0086] In this embodiment, when the clock reset structure parses the test stimulus issued and the clock reset structure performs corresponding actions according to the parsing results, the clock reset verification platform will monitor the actual operation information of the clock reset structure when performing the corresponding actions. When the actual operation information of the clock reset structure is modified, the node information of the virtual clock tree is adjusted according to the actual operation information.

[0087] In a specific embodiment, the actual operation information includes a reset signal and a register value, and adjusting the node information of the virtual clock tree according to the actual operation information includes: if the actual operation information is the reset signal, adjusting the reset attribute in the node information according to the reset signal; if the actual operation information is the register value, adjusting the control attribute in the node information according to the register value.

[0088] In this embodiment, if the clock reset verification platform recognizes the reset signal of the clock reset structure, it means that the clock reset structure is reset and needs to be restored to the initial state. At this time, the clock reset verification platform sets the reset attributes of some nodes in the virtual clock tree according to the reset signal, and also needs to set all control registers to default values. In this way, the clock reset structure can start from a known state, which is convenient for subsequent testing or operation.

[0089] If the clock reset verification platform recognizes that the register value of the clock reset structure has changed, the clock reset verification platform configures the control properties of the corresponding node in the virtual clock tree according to the new register value. This ensures that the behavior of the DUT is consistent with the latest register configuration.

[0090] In addition, if the clock reset verification platform recognizes that the scan_mode or dft_en signal becomes valid, the clock reset verification platform modifies the parameter values ​​of the SCAN_MUX and DFT_MUX nodes to ensure that the test signal or data can be correctly routed to the required path or component.

[0091] It should be noted that since nodes have the characteristic of backward propagation of attributes, any modification of node attributes may affect subsequent nodes and eventually be reflected in the output node. This means that the clock reset verification platform needs to pay close attention to these changes and ensure that their propagation throughout the system is consistent and in line with expectations.

[0092] Step S1052: Send test stimulus to the virtual clock tree through the clock reset verification platform, and obtain expected value from the virtual clock tree.

[0093] In this embodiment, when the clock reset verification platform sends the test stimulus to the clock reset structure, the clock reset verification platform also needs to send the test stimulus to the reference model. At this time, the virtual clock tree in the reference model outputs the expected value (expect_data) according to the test stimulus.

[0094] Step S1053, comparing the actual output with the expected value to obtain a comparison result; and judging whether the behavior of the clock reset structure is correct according to the comparison result.

[0095] In this embodiment, the actual output of the clock reset structure is compared with the expected value of the virtual clock tree, and whether the behavior of the current clock reset structure is correct is determined based on the comparison result.

[0096] In a specific embodiment, judging whether the clock reset verification platform passes the test based on the comparison result includes: if the actual output is consistent with the expected value, the behavior of the clock reset structure is correct; if the actual output is inconsistent with the expected value, the behavior of the clock reset structure is incorrect.

[0097] In this embodiment, if the actual output of the clock reset structure is consistent with the expected value of the virtual clock tree, it can be known that the behavior of the clock reset structure is correct, which means that the clock reset structure behaves normally under given conditions and meets expectations.

[0098] On the contrary, if the actual output of the clock reset structure is inconsistent with the expected value of the virtual clock tree, it can be known that the behavior of the clock reset structure is incorrect, and the clock reset structure error troubleshooting phase begins. At this stage, the verification personnel need to analyze the simulation results, find out the specific cause of the error, and make corresponding modifications or adjustments to the chip's clock reset structure to ensure that it can correctly respond to the stimulus signal and produce the expected behavior.

[0099] The chip verification method proposed in this embodiment obtains the clock reset structure diagram of the chip; determines the component information of each component in the clock reset structure diagram and the parent-child relationship of each component according to the clock reset structure diagram; obtains a virtual clock tree according to the component information and the parent-child relationship; builds a clock reset verification platform for the chip according to the virtual clock tree based on the general verification methodology; and verifies the clock reset structure of the chip through the clock reset verification platform. In this way, the chip verification environment is generated through the automatic analysis of the clock reset structure diagram, thereby reducing the complexity of chip verification, and the verification environment iteration and verification progress convergence can be completed in a short time. The complexity of the verification environment implementation is reduced through the virtual clock tree of the parent-child relationship of the clock nodes, and it has strong scalability and can be adapted to different projects.

[0100] Example 2

[0101] In addition, the present disclosure provides a chip verification device 400, see Figure 4 , the device comprises:

[0102] An acquisition module 401 is used to acquire a clock reset structure diagram of a chip;

[0103] A determination module 402, configured to determine component information of each component in the clock reset structure diagram and a parent-child relationship of each component according to the clock reset structure diagram;

[0104] An acquisition module 403 is used to obtain a virtual clock tree according to the component information and the parent-child relationship;

[0105] A construction module 404 is used to construct a clock reset verification platform of the chip according to the virtual clock tree based on a general verification methodology;

[0106] The verification module 405 is used to verify the clock reset structure of the chip through the clock reset verification platform.

[0107] Optionally, the verification module 405 is also used to send test stimuli to the clock reset structure through the clock reset verification platform, and obtain actual output from the clock reset structure; send test stimuli to the virtual clock tree through the clock reset verification platform, and obtain expected values ​​from the virtual clock tree; compare the actual output with the expected value to obtain a comparison result; and determine whether the clock reset verification platform passes the test based on the comparison result.

[0108] Optionally, the verification module 405 is further used to determine that if the actual output is consistent with the expected value, the behavior of the clock reset structure is correct; if the actual output is inconsistent with the expected value, the behavior of the clock reset structure is incorrect.

[0109] Optionally, the verification module 405 is further used to monitor the actual operation information of the clock reset structure of the chip in real time through the clock reset verification platform; and adjust the node information of the virtual clock tree according to the actual operation information.

[0110] Optionally, the actual operation information includes a reset signal and a register value, and the verification module 405 is further used to adjust the reset attribute in the node information according to the reset signal if the actual operation information is the reset signal; and to adjust the control attribute in the node information according to the register value if the actual operation information is the register value.

[0111] Optionally, the determination module 402 is further used to traverse the component types of each component in the clock reset structure diagram; create the several types of tuples according to the component types; and represent the component information of the corresponding components through the several types of tuples.

[0112] Optionally, the determination module 402 is further configured to traverse the connection relationship between the components in the clock reset structure diagram; and determine the parent-child relationship between the components according to the connection relationship.

[0113] The device provided in the embodiment of the present disclosure can execute the steps of the chip verification method provided in Example 1, which will not be described again to avoid repetition.

[0114] The chip verification device proposed in this embodiment obtains the clock reset structure diagram of the chip; determines the component information of each component in the clock reset structure diagram and the parent-child relationship of each component according to the clock reset structure diagram; obtains a virtual clock tree according to the component information and the parent-child relationship; builds a clock reset verification platform for the chip according to the virtual clock tree based on a general verification methodology; and verifies the clock reset structure of the chip through the clock reset verification platform. In this way, the chip verification environment is automated through the automatic parsing of the clock reset structure diagram, thereby reducing the complexity of chip verification, and the verification environment iteration and verification progress convergence can be completed in a short time. The complexity of the verification environment is reduced through the virtual clock tree of the parent-child relationship of the clock nodes, and it has strong scalability and can be adapted to different projects.

[0115] Example 3

[0116] In addition, an embodiment of the present disclosure provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the chip verification method described in Embodiment 1 is implemented.

[0117] The device provided in the embodiment of the present disclosure can execute the steps of the chip verification method provided in Example 1, which will not be described again to avoid repetition.

[0118] Example 4

[0119] The embodiment of the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the chip verification method described in the embodiment 1 is implemented.

[0120] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0121] The computer-readable storage medium provided in this embodiment can implement the chip verification method provided in Embodiment 1, and will not be described again here to avoid repetition.

[0122] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.

[0123] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0124] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A chip verification method, characterized in that: The method comprises: Get the clock reset structure diagram of the chip; Determine, according to the clock reset structure diagram, component information of each component in the clock reset structure diagram and the parent-child relationship of each component; Obtain a virtual clock tree according to the component information and the parent-child relationship; Based on the general verification methodology, a clock reset verification platform of the chip is constructed according to the virtual clock tree; The clock reset structure of the chip is verified by the clock reset verification platform.

2. The chip verification method according to claim 1, characterized in that: The verifying the clock reset structure of the chip by the clock reset verification platform includes: Sending a test stimulus to the clock reset structure through the clock reset verification platform, and obtaining an actual output from the clock reset structure; Sending a test stimulus to the virtual clock tree through the clock reset verification platform, and obtaining an expected value from the virtual clock tree; The actual output and the expected value are compared to obtain a comparison result; and whether the behavior of the clock reset structure is correct is determined according to the comparison result.

3. The chip verification method according to claim 2, characterized in that: The determining whether the behavior of the clock reset structure is correct according to the comparison result includes: If the actual output is consistent with the expected value, the behavior of the clock reset structure is correct; If the actual output does not match the expected value, then the clock reset structure behaves incorrectly.

4. The chip verification method according to claim 2, characterized in that: After the clock reset verification platform sends a test stimulus to the clock reset structure, the method includes: The actual operation information of the clock reset structure of the chip is monitored in real time by the clock reset verification platform; The node information of the virtual clock tree is adjusted according to the actual operation information.

5. The chip verification method according to claim 4, characterized in that: The actual operation information includes a reset signal and a register value, and the step of adjusting the node information of the virtual clock tree according to the actual operation information includes: If the actual operation information is the reset signal, adjusting the reset attribute in the node information according to the reset signal; If the actual operation information is the register value, the control attribute in the node information is adjusted according to the register value.

6. The chip verification method according to claim 1, characterized in that: The determining, according to the clock reset structure diagram, component information of each component in the clock reset structure diagram comprises: Traversing the component type of each component in the clock reset structure diagram; Create several types of tuples corresponding to the component types; The component information of the corresponding components is represented by the several types of tuples.

7. The chip verification method according to claim 1, characterized in that: Determining the parent-child relationship of each component in the clock reset structure diagram according to the clock reset structure diagram includes: Traversing the connection relationship of each of the components in the clock reset structure diagram; The parent-child relationship of each of the components is determined according to the connection relationship.

8. A chip verification device, characterized in that: The device comprises: An acquisition module, used to acquire a clock reset structure diagram of a chip; A determination module, used to determine the component information of each component in the clock reset structure diagram and the parent-child relationship of each component according to the clock reset structure diagram; An acquisition module, used for obtaining a virtual clock tree according to the component information and the parent-child relationship; A construction module, used for constructing a clock reset verification platform of the chip according to the virtual clock tree based on a general verification methodology; A verification module is used to verify the clock reset structure of the chip through the clock reset verification platform.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the chip verification method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the steps of the chip verification method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • UVM environment constructing method and system

    CN108038294A

  • Clock gating verification during RTL (Register Transfer Level) phase period of integrated circuit design

    CN108153920A

  • A high-level verification method applying a UVM verification platform

    CN109684681A

  • Verification method and device for chip clock tree and chip

    CN113835469A

  • Chip verification method supporting automatic reset of area

    CN116755927A

Cited By

  • Clock tree function verification method and device, electronic equipment and storage medium

    CN122086495A

  • A clock tree function verification method and device, electronic equipment and storage medium

    CN122086495B