Assertion-based chip reset function verification method, system, equipment and medium

By using SystemVerilog assertions to describe reset timing relationships in a chip verification environment, the problem of low accuracy in traditional verification methods is solved, enabling accurate inspection and efficient verification of chip reset functions.

CN118940688APending Publication Date: 2024-11-12上海芯钛信息科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411090535.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Traditional chip reset function verification methods suffer from low verification accuracy and difficulty in detecting hidden errors during chip reset.

Method used

An assertion-based chip reset function verification method is adopted. The reset timing relationship is described by SystemVerilog assertions, integrated into the top-level file of the chip verification environment, and connected to the target signal for reset timing check.

Benefits of technology

It enables precise inspection of the chip reset function, delving into all the details of the chip reset design, improving the accuracy and efficiency of verification, and the assertion module has good portability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940688A_ABST
    Figure CN118940688A_ABST
Patent Text Reader

Abstract

The invention relates to an assertion-based chip reset function verification method, system and device and a medium, and aims to verify a chip reset time sequence by adopting an assertion verification mode, so that all details of chip reset design can be deepened, and the chip reset function can be verified more accurately and comprehensively. Besides, the assertion module also has good portability, and can be reused by simply adjusting inspection signals and inspection parameters in different chip reset verification, so that the verification efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of chip verification, and relates to an assertion-based chip reset function verification method, system, device and medium. Background Art

[0002] The reset circuit in chip design is used to ensure that all parts of the entire chip can be fully initialized when the chip starts, ensuring that the chip can start stably. The reset function affects the following aspects: whether the chip can start stably and whether it can be in a certain state at the beginning of operation; whether each part of the chip system can start in sequence according to the startup sequence and timing; when an error occurs, the chip can be restored to its initial state through reset. With the rapid development of semiconductor technology, the integration of chips has also increased rapidly. There are more and more IP cores (reusable components) integrated in chips, so the reset design of chip systems has become more and more complex and important.

[0003] Verifying the correctness of the chip reset function is an important first step in the entire chip verification. How to efficiently and reliably verify the chip reset function has become a crucial part of chip verification. The traditional verification method is to verify whether the reset is correct by inputting stimulus to the chip and checking the correctness of the chip output data. However, the traditional verification method has great limitations and cannot discover some hidden errors in chip reset. There is a technical problem of low verification accuracy. Summary of the invention

[0004] In view of the problems existing in the above-mentioned traditional methods, the present invention proposes an assertion-based chip reset function verification method, an assertion-based chip reset function verification system, a computer device and a computer-readable storage medium, which can realize accurate inspection of chip reset design.

[0005] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:

[0006] On the one hand, a method for verifying chip reset function based on assertion is provided, comprising the steps of:

[0007] According to the reset timing relationship of the chip reset design of the chip under test, the reset timing relationship is described by SystemVerilog assertion and updated to the assertion module integrated in the top-level file of the chip verification environment; the RTL code of the chip under test is integrated in the top-level file of the chip verification environment;

[0008] Connect the target signal of the RTL code to the assertion module in the top-level file of the chip verification environment; the target signal includes the power-on reset signal, the global reset signal, the IP core reset signal, the CPU reset signal and the clock signal;

[0009] After generating the clock reset signal at the top level of the chip in the chip verification environment, start the test case to perform reset timing check on the chip under test.

[0010] On the other hand, a chip reset function verification system based on assertion is also provided, including:

[0011] An assertion setting module is used to describe the reset timing relationship according to the reset timing relationship of the chip reset design of the chip under test with SystemVerilog assertions and update the assertion module integrated in the top-level file of the chip verification environment; the RTL code of the chip under test is integrated in the top-level file of the chip verification environment;

[0012] The signal connection module is used to connect the target signal of the RTL code to the assertion module in the top-level file of the chip verification environment; the target signals include power-on reset signal, global reset signal, IP core reset signal, CPU reset signal and clock signal;

[0013] The reset check module is used to generate a clock reset signal at the top level of the chip in the chip verification environment and then start the test case to perform reset timing check on the chip under test.

[0014] On the other hand, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned assertion-based chip reset function verification method when executing the computer program.

[0015] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned assertion-based chip reset function verification method are implemented.

[0016] One of the above technical solutions has the following advantages and beneficial effects:

[0017] The above assertion-based chip reset function verification method, system, device and medium can verify the chip reset timing by using the assertion verification method, which can go deep into all the details of the chip reset design, so as to verify the chip reset function more accurately and comprehensively. In addition, the assertion module is also very portable and can be reused in different chip reset verifications by simply adjusting the check signal and check parameters, thereby greatly improving the verification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 This is a typical chip reset flow chart;

[0020] Figure 2 1 is a flow chart of a method for verifying a chip reset function based on assertion in one embodiment;

[0021] Figure 3 A top-level schematic diagram of a chip verification environment of an assertion-based chip reset function verification method in one embodiment;

[0022] Figure 4 A schematic diagram of a check flow when a rising edge of a power-on reset is monitored in one embodiment;

[0023] Figure 5 A schematic diagram of a check flow when a falling edge of a power-on reset is monitored in one embodiment;

[0024] Figure 6 A schematic diagram of a core reset check flow after a chip operates normally in one embodiment;

[0025] Figure 7 A schematic diagram of the module architecture of an assertion-based chip reset function verification system in one embodiment. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0027] It should be noted that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of this phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be appreciated by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0028] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.

[0029] During the development process, it was found that assertion verification can go deep into the chip design and achieve accurate inspection of chip reset design by describing the timing relationship between chip resets. Figure 1 The typical reset process shown is as follows: the first step of the chip is to release the power-on reset (i.e., power on reset). The second step is to enter the global reset phase (i.e., global reset) and release the global reset. The third step is to enter the initialization phase (i.e., inital status) to complete the necessary data initialization of the chip. The fourth step is to enter the IP core reset phase (i.e., IP reset) and release the reset of each IP. The fifth step is to enter the CPU reset phase (i.e., cpureset) and release the CPU reset. The sixth step is to enter the IDLE phase (i.e., idle (chip run)), and the chip runs normally. The seventh step is to enter the IP core reset request phase (i.e., IP reset request). If there is an IP reset request, the control IP enters reset.

[0030] In one embodiment, Figure 2 As shown, a chip reset function verification method based on assertion is provided, which may include the following processing steps S10 to S16:

[0031] S10, describing the reset timing relationship with SystemVerilog assertions according to the reset timing relationship of the chip reset design of the chip under test and updating the assertion module integrated in the top-level file of the chip verification environment; integrating the RTL code of the chip under test in the top-level file of the chip verification environment;

[0032] S14, connecting the target signal of the RTL code to the assertion module in the top-level file of the chip verification environment; the target signal includes a power-on reset signal, a global reset signal, an IP core reset signal, a CPU reset signal and a clock signal;

[0033] S16, after generating a clock reset signal at the top level of the chip in the chip verification environment, start the test case to perform a reset timing check on the chip under test.

[0034] It is understood that the timing relationship of the chip reset design of the chip to be tested can be analyzed first (such as manual analysis or automatic analysis using a dedicated timing recognition tool), and then the reset timing relationship is described using SystemVerilog assertions according to the reset timing relationship, and a corresponding assertion module (this module is used to describe the reset timing relationship according to the aforementioned SystemVerilog assertions in the UVM verification platform in this field) is developed according to the UVM verification methodology to perform reset timing inspection. It is understood that SystemVerilog assertions are a mechanism in a hardware description and verification language for specifying desired behaviors and properties so as to automatically check and verify these behaviors during simulation and formal verification. SystemVerilog assertions help capture errors and inconsistencies in chip reset designs, thereby improving the efficiency and reliability of verification.

[0035] like Figure 3 As shown, on the existing UVM verification platform built based on UVM verification methodology, the aforementioned assertion module is integrated in the top-level file (i.e. Testbench) of the chip verification environment and the integrated chip RTL (Register Transfer Level) code, and the RTL code is a kind of hardware description language (HDL) code, which is used to describe the logical function and sequential behavior of digital circuits. The RTL code defines the operation, data flow and control signal of registers, and is an important step in designing hardware logic circuits. In the chip design process, the RTL code is usually written in languages ​​such as Verilog or VHDL existing in this area.

[0036] Connect the power-on reset signal, global reset signal, IP core reset signal, CPU reset signal, clock (clk) signal and other signals of the chip RTL code to the assertion module, and then generate the clock reset signal of the top layer of the chip in the chip verification environment, and then start the test case to check the reset timing of the chip.

[0037] The above assertion-based chip reset function verification method can verify the chip reset timing by using the assertion verification method, which can go deep into all the details of the chip reset design, so as to verify the chip reset function more accurately and comprehensively. In addition, the assertion module is also very portable and can be reused in different chip reset verifications by simply adjusting the check signal and check parameters, thereby greatly improving the verification efficiency.

[0038] In one embodiment, describing reset timing relationships using SystemVerilog assertions may include:

[0039] If the rising edge of the power-on reset signal is monitored, the check passes when the global reset value is 1 after a finite clock cycle, otherwise the check is performed and an error is reported;

[0040] If the falling edge of the power-on reset signal is monitored, the check passes when the global reset signal value is 0 after a limited clock cycle, otherwise the check is performed and an error is reported;

[0041] If the rising edge of the global reset signal is monitored, the check is passed if the IP core reset signal value is 1 after a limited clock cycle, otherwise the check is errored;

[0042] If the falling edge of the global reset signal is monitored, the check passes if the IP core reset signal value is 0 after a limited clock cycle, otherwise the check fails.

[0043] If the rising edge of the CPU reset signal is monitored, the power-on reset signal value, the global reset signal value, and the IP core reset signal value are all 1, indicating that the check passes. Otherwise, an error is reported.

[0044] Specifically, using SystemVerilog assertions to describe the reset timing relationship can be as follows:

[0045] (1) Figure 4 As shown, if the rising edge of the power-on reset (i.e., power on reset) is monitored, the global reset value will be collected as 1 (i.e., globla reset == 1) after a limited clock cycle, and the check passes. If the global reset value is not 1, an error is reported. The limited clock cycle can be one clock cycle, two clock cycles, or three or more clock cycles, which can be set according to the verification requirements of different chips.

[0046] (2) Figure 5 As shown in the figure, if the falling edge of the power on reset is monitored, the global reset value will be collected to be 0 after a limited clock cycle, and the check passes. If the global reset value is not 0, a check is performed and an error is reported.

[0047] (3) If the rising edge of the global reset is detected, the IP core resets the IP reset value to 1 after a limited number of clock cycles, and the check passes. If the IP core resets the IP reset value to 0, the check is performed and an error is reported.

[0048] (4) If the falling edge of the global reset is detected, the IP core resets the IPreset value to 0 after a limited number of clock cycles, and the check passes. If the IP core reset value is 1, the check is performed and an error is reported.

[0049] (5) If the rising edge of the CPU reset (i.e., CPU reset) is monitored, the power-on reset value, the global reset value, and the IP core reset value are all 1. If the value of any of the reset signals is 0, a check is performed and an error is reported.

[0050] In one embodiment, describing the reset timing relationship using SystemVerilog assertions may further include:

[0051] When the chip under test runs normally, wait for the reset release of the nth IP core. If a reset request for the nth IP core is detected, the nth IP core enters the reset state after a finite clock cycle and other IP cores are in the reset release state, and then releases the reset after a finite clock cycle.

[0052] If after initiating the reset request of the nth IP core, the nth IP core does not enter the reset state, or other IP cores enter the reset state, then check and report an error;

[0053] If the nth IP core does not enter the reset release state within the limited clock cycle after entering the reset state, then a check error is reported;

[0054] If it is monitored that no reset request is initiated for the nth IP core, then check whether the nth IP core enters the reset release state. If so, continue monitoring. If not, check and report an error.

[0055] Specifically, Figure 6As shown, when the chip is running normally, it waits for the nth IP core ip[n] to be reset and released. If it is monitored that a reset request for the nth IP core ip[n] is initiated (i.e., the local reset enable of ip[n] is monitored), then after a limited clock cycle, the ip[n] enters the reset state (i.e., the reset value of ip[n] is 0) and other IP cores (i.e., ip[other]) are in the reset release state (i.e., the reset value of ip[other] is 1); then the reset will be released after a limited clock cycle (i.e., the reset value of ip[n] is 1). If ip[n] does not enter the reset state after the reset request of ip[n] is initiated, or other ip[other] enters the reset state (i.e., the reset value of ip[other] is 0), then an error is reported. If ip[n] does not enter the reset release state within a limited clock cycle after entering the reset state (i.e., the reset value of ip[n] is 1), then an error is reported. If it is monitored that no reset request is initiated for the nth IP core ip[n], then check whether ip[n] enters the reset release state (that is, check whether the reset value of ip[n] is 1). If so, continue monitoring; if not, check and report an error.

[0056] It should be understood that although Figure 2 The steps in the method are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0057] In one embodiment, Figure 7As shown, a chip reset function verification system 100 based on assertion is provided, which may include an assertion setting module 11, a signal connection module 13 and a reset check module 15. Among them, the assertion setting module 11 is used to describe the reset timing relationship with SystemVerilog assertions according to the reset timing relationship of the chip reset design of the chip to be tested, and update it to the assertion module integrated in the top-level file of the chip verification environment; the RTL code of the chip to be tested is integrated in the top-level file of the chip verification environment. The signal connection module 13 is used to connect the target signal of the RTL code to the assertion module in the top-level file of the chip verification environment; the target signal includes a power-on reset signal, a global reset signal, an IP core reset signal, a CPU reset signal and a clock signal. The reset check module 15 is used to start the test case to perform a reset timing check on the chip to be tested after generating the clock reset signal of the top level of the chip in the chip verification environment.

[0058] The assertion-based chip reset function verification system 100 can verify the chip reset timing by using the assertion verification method, and can go deep into all the details of the chip reset design, so as to verify the chip reset function more accurately and comprehensively. In addition, the assertion module is also very portable and can be reused in different chip reset verifications by simply adjusting the check signal and check parameters, thereby greatly improving the verification efficiency.

[0059] In one embodiment, describing reset timing relationships using SystemVerilog assertions includes:

[0060] If the rising edge of the power-on reset signal is monitored, the check passes when the global reset value is 1 after a finite clock cycle, otherwise the check is performed and an error is reported;

[0061] If the falling edge of the power-on reset signal is monitored, the check passes when the global reset signal value is 0 after a limited clock cycle, otherwise the check is performed and an error is reported;

[0062] If the rising edge of the global reset signal is monitored, the check is passed if the IP core reset signal value is 1 after a limited clock cycle, otherwise the check is errored;

[0063] If the falling edge of the global reset signal is monitored, the check passes if the IP core reset signal value is 0 after a limited clock cycle, otherwise the check fails.

[0064] If the rising edge of the CPU reset signal is monitored, the power-on reset signal value, the global reset signal value, and the IP core reset signal value are all 1, indicating that the check passes. Otherwise, an error is reported.

[0065] In one embodiment, describing the reset timing relationship using SystemVerilog assertions further includes:

[0066] When the chip under test runs normally, wait for the reset release of the nth IP core. If a reset request for the nth IP core is detected, the nth IP core enters the reset state after a finite clock cycle and other IP cores are in the reset release state, and then releases the reset after a finite clock cycle.

[0067] If after initiating the reset request of the nth IP core, the nth IP core does not enter the reset state, or other IP cores enter the reset state, then check and report an error;

[0068] If the nth IP core does not enter the reset release state within the limited clock cycle after entering the reset state, then a check error is reported;

[0069] If it is monitored that no reset request is initiated for the nth IP core, then check whether the nth IP core enters the reset release state. If so, continue monitoring. If not, check and report an error.

[0070] Regarding the specific limitations of the assertion-based chip reset function verification system 100, please refer to the corresponding limitations of the assertion-based chip reset function verification method above, which will not be repeated here. Each module in the above-mentioned assertion-based chip reset function verification system 100 can be fully or partially implemented by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of a device with data processing functions in the form of hardware, or can be stored in the memory of the aforementioned device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. The aforementioned device can be but not limited to various types of verification computer devices already available in the art.

[0071] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following processing steps when executing the computer program: describing the reset timing relationship according to the reset timing relationship of the chip reset design of the chip to be tested with SystemVerilog assertions and updating the assertion module integrated in the top-level file of the chip verification environment; integrating the RTL code of the chip to be tested in the top-level file of the chip verification environment; connecting the target signal of the RTL code to the assertion module in the top-level file of the chip verification environment; the target signal includes a power-on reset signal, a global reset signal, an IP core reset signal, a CPU reset signal and a clock signal; and starting the test case to perform a reset timing check on the chip to be tested after generating the clock reset signal of the chip top level in the chip verification environment.

[0072] In one embodiment, when the processor executes the computer program, the added steps or sub-steps in the above-mentioned assertion-based chip reset function verification method embodiments may also be implemented.

[0073] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following processing steps are implemented: according to the reset timing relationship of the chip reset design of the chip to be tested, the reset timing relationship is described with SystemVerilog assertions and updated to the assertion module integrated in the top-level file of the chip verification environment; the RTL code of the chip to be tested is integrated in the top-level file of the chip verification environment; the target signal of the RTL code is connected to the assertion module in the top-level file of the chip verification environment; the target signal includes a power-on reset signal, a global reset signal, an IP core reset signal, a CPU reset signal and a clock signal; after generating the clock reset signal of the chip top level in the chip verification environment, the test case is started to perform a reset timing check on the chip to be tested.

[0074] In one embodiment, when the computer program is executed by a processor, it can also implement the steps or sub-steps added in the above-mentioned assertion-based chip reset function verification method embodiments.

[0075] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).

[0076] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0077] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A chip reset function verification method based on assertion, characterized in that: Includes steps: According to the reset timing relationship of the chip reset design of the chip to be tested, the reset timing relationship is described by SystemVerilog assertion and updated to the assertion module integrated in the top-level file of the chip verification environment; the RTL code of the chip to be tested is integrated in the top-level file of the chip verification environment; Connecting the target signal of the RTL code to the assertion module in the top-level file of the chip verification environment; the target signal includes a power-on reset signal, a global reset signal, an IP core reset signal, a CPU reset signal and a clock signal; After a clock reset signal of the top layer of the chip is generated in a chip verification environment, a test case is started to perform a reset timing check on the chip under test.

2. The assertion-based chip reset function verification method according to claim 1, characterized in that: Using SystemVerilog assertions to describe reset timing relationships includes: If the rising edge of the power-on reset signal is monitored, the check passes when the global reset value is 1 after a finite clock cycle, otherwise the check is performed and an error is reported; If the falling edge of the power-on reset signal is monitored, the check passes when the global reset signal value is 0 after a limited clock cycle, otherwise the check is performed and an error is reported; If the rising edge of the global reset signal is monitored, the check is passed if the IP core reset signal value is 1 after a limited clock cycle, otherwise the check is errored; If the falling edge of the global reset signal is monitored, the check passes if the IP core reset signal value is 0 after a limited clock cycle, otherwise the check fails. If the rising edge of the CPU reset signal is monitored, the power-on reset signal value, the global reset signal value, and the IP core reset signal value are all 1, indicating that the check passes. Otherwise, an error is reported.

3. The assertion-based chip reset function verification method according to claim 2, characterized in that: Using SystemVerilog assertions to describe reset timing relationships also includes: When the chip under test runs normally, wait for the reset release of the nth IP core. If a reset request for the nth IP core is detected, the nth IP core enters the reset state after a finite clock cycle and other IP cores are in the reset release state, and then releases the reset after a finite clock cycle. If after initiating the reset request of the nth IP core, the nth IP core does not enter the reset state, or other IP cores enter the reset state, then check and report an error; If the nth IP core does not enter the reset release state within the limited clock cycle after entering the reset state, then a check error is reported; If it is monitored that no reset request is initiated for the nth IP core, then check whether the nth IP core enters the reset release state. If so, continue monitoring. If not, check and report an error.

4. A chip reset function verification system based on assertion, characterized in that: include: An assertion setting module, used to describe the reset timing relationship according to the reset timing relationship of the chip reset design of the chip to be tested with SystemVerilog assertions and update the assertion module integrated in the top-level file of the chip verification environment; the RTL code of the chip to be tested is integrated in the top-level file of the chip verification environment; A signal connection module, used to connect the target signal of the RTL code to the assertion module in the top-level file of the chip verification environment; the target signal includes a power-on reset signal, a global reset signal, an IP core reset signal, a CPU reset signal and a clock signal; The reset check module is used to generate a clock reset signal at the top layer of the chip in a chip verification environment and then start a test case to perform a reset timing check on the chip to be tested.

5. The assertion-based chip reset function verification system according to claim 4, characterized in that: Using SystemVerilog assertions to describe reset timing relationships includes: If the rising edge of the power-on reset signal is monitored, the check passes when the global reset value is 1 after a finite clock cycle, otherwise the check is performed and an error is reported; If the falling edge of the power-on reset signal is monitored, the check passes when the global reset signal value is 0 after a limited clock cycle, otherwise the check is performed and an error is reported; If the rising edge of the global reset signal is monitored, the check is passed if the IP core reset signal value is 1 after a limited clock cycle, otherwise the check is errored; If the falling edge of the global reset signal is monitored, the check passes if the IP core reset signal value is 0 after a limited clock cycle, otherwise the check fails. If the rising edge of the CPU reset signal is monitored, the power-on reset signal value, the global reset signal value, and the IP core reset signal value are all 1, indicating that the check passes. Otherwise, an error is reported.

6. The assertion-based chip reset function verification system according to claim 4 or 5, characterized in that: Using SystemVerilog assertions to describe reset timing relationships also includes: When the chip under test runs normally, wait for the reset release of the nth IP core. If a reset request for the nth IP core is detected, the nth IP core enters the reset state after a finite clock cycle and other IP cores are in the reset release state, and then releases the reset after a finite clock cycle. If after initiating the reset request of the nth IP core, the nth IP core does not enter the reset state, or other IP cores enter the reset state, then check and report an error; If the nth IP core does not enter the reset release state within the limited clock cycle after entering the reset state, then a check error is reported; If it is monitored that no reset request is initiated for the nth IP core, then check whether the nth IP core enters the reset release state. If so, continue monitoring. If not, check and report an error.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the assertion-based chip reset function verification method according to any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the assertion-based chip reset function verification method according to any one of claims 1 to 3 are implemented.

Citation Information

Cited By

  • Reset function verification method and device, electronic equipment and storage medium

    CN121920289A