A UVM-based OTP fast verification method and system

Through the UVM-based OTP rapid verification method, the chip-level OTP verification problem is solved, efficient OTP verification is achieved, simulation resource requirements and verification time are reduced, and cost increases are avoided.

CN118689463BActive Publication Date: 2024-11-08成都星拓微电子科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411156188.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-08
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

The existing technology has long simulation time and high computing resource requirements in chip-level OTP verification, resulting in low verification efficiency and unsuperior cost increase.

Method used

UVM-based OTP fast verification method is adopted, and OTP verification environment is built, OTP writing and reading information is obtained, closing incentive is applied, and test cases are constructed for data comparison to achieve OTP rapid verification.

Benefits of technology

It greatly improves the efficiency of OTP verification, reduces the demand for simulation computing resources, shortens verification time, and does not increase additional costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689463B_ABST
    Figure CN118689463B_ABST
Patent Text Reader

Abstract

The present invention provides a UVM-based OTP fast verification method and system, including: building an OTP verification environment based on UVM, with the top layer of the test being a chip to be tested; obtaining OTP burning, reading register information and OTP mapping logic in the chip to be tested; applying a shutdown stimulus to a high-speed signal in the chip to be tested that is not related to OTP burning and reading; constructing test cases according to different scenarios to apply stimulus to the chip to be tested, and completing the OTP burning and reading logic and mapping logic fast verification through data comparison. The UVM-based OTP fast verification method and system proposed by the present invention can greatly improve the verification efficiency, not increase additional costs, and reduce the verification time without increasing the calculation main frequency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital verification, is applied to the IC industry, and in particular to an OTP fast verification method and system based on UVM (Universal Verification Methodology). Background Art

[0002] One-Time Programmable (OTP) devices are only allowed to be programmed once. Once programmed, the data is permanently valid and cannot be modified. Compared with multi-time programmable devices, the programming process is irreversible and is suitable for applications where the program is fixed. OTP has a small area and does not require additional manufacturing steps, so it is widely used in low-cost chips. OTP is often used to store reliable and reproducible data, such as startup programs, encryption keys, analog device configuration parameters, etc. The use of OTP can improve the yield of chips, reduce chip costs, and improve chip security. The use of OTP can reduce chip power consumption and increase chip controllability. Since OTP can be programmed, it can realize the chip shutting down certain working modules. When we do not need certain modules, we can use OTP programming to limit or shield certain functions, thereby reducing chip power consumption and further increasing chip controllability. In mixed analog and digital chips, analog circuits are greatly affected by errors such as process manufacturing. After chip manufacturing is completed, it is often necessary to calibrate the chip parameters to reduce the impact of errors such as process manufacturing. When the chip leaves the factory, the calibrated chip parameters are burned into the OTP. After the chip is powered on again, the OTP data will be loaded into the chip, and the chip can complete the analog circuit parameter calibration.

[0003] At present, the industry generally purchases OTP IP provided by third-party IP manufacturers and integrates it into its own chips. In order to adapt to OTP IP, an OTP control logic and register mapping logic will be developed. It is particularly important to fully verify this logic, because OTP can only be burned once. If the logic is wrong, it is very likely that the chip will be unavailable. At present, the chip scale is getting larger and larger, the chip-level simulation time is getting longer and longer, the demand for computing resources is getting larger and longer, and the simulation time is getting longer and longer. The time for OTP programming is generally in the order of hundreds of microseconds. As the chip scale increases, it takes dozens of hours or even hundreds of hours to run a use case simulation at the chip level to fully verify OTP. This poses a huge challenge to computing resources, simulation time, and project nodes. The current solution is to increase the main frequency of simulation calculation and improve the ability of simulation calculation to solve this problem. Although this method can improve the efficiency of OTP simulation verification by a small amount, it faces the problem of cost increase and is not the best solution. In addition, as the number of simulation scenarios increases, in order to fully verify the OTP control logic and mapping logic, a large number of random use cases and scenario use cases are required to cover and verify. The existing technology has too high requirements for simulation resources, and OTP simulation verification will consume a lot of simulation computing resources. Summary of the invention

[0004] In view of the problems existing in the prior art, the present invention proposes a UVM-based OTP fast verification method and system, which can greatly improve simulation efficiency (improve efficiency by several times or even dozens of times), greatly reduce the demand for simulation computing resources, and greatly shorten the verification time.

[0005] The first aspect of the present invention proposes a UVM-based OTP fast verification method, comprising:

[0006] Build an OTP verification environment based on UVM, with the top level of the test being the chip under test;

[0007] Obtain OTP programming, read register information, and OTP mapping logic in the chip under test;

[0008] Apply shutdown stimulus to high-speed signals in the chip under test that are not related to OTP programming and reading;

[0009] Construct test cases according to different scenarios to stimulate the chip under test, and complete OTP rapid verification through data comparison.

[0010] As a preferred solution, constructing test cases according to different scenarios to apply stimulus to the chip under test includes:

[0011] Apply fixed scene stimulus to the chip under test and burn the fixed scene data into OTP; or apply random stimulus to the chip under test and burn random data into OTP.

[0012] As a preferred solution, when a fixed scenario stimulus is applied to the chip under test, OTP fast verification includes:

[0013] After burning the fixed scene data into OTP, cancel the shutdown stimulus applied to the high-speed signal and reset the chip under test;

[0014] The chip under test maps the OTP data to registers / memory through mapping logic;

[0015] Determine whether the scenario results corresponding to the OTP data used by the chip under test meet expectations and complete fixed scenario verification.

[0016] As a preferred solution, when random stimulus is applied to the chip under test, OTP fast verification includes:

[0017] Burn random data into OTP;

[0018] Read OTP data through OTP burning address;

[0019] Compare the read OTP data with the programmed random data to complete the OTP programming and reading verification.

[0020] As a preferred solution, when random stimulus is applied to the chip under test, OTP fast verification also includes:

[0021] Burn random data into OTP;

[0022] Reset the chip under test, and the chip under test maps the OTP data to the register / memory through mapping logic;

[0023] Read OTP data according to OTP burning address;

[0024] Compare the OTP data read from the OTP address with the random data programmed. If they are consistent, compare the data mapped to the register / memory by the OTP with the random data programmed according to the mapping logic to complete the OTP programming, reading and mapping logic verification.

[0025] As a preferred solution, applying a shutdown stimulus to high-speed signals in the chip under test that are not related to OTP burning and reading specifically includes:

[0026] According to the signal operating frequency in the chip to be tested, high-speed signals unrelated to OTP are analyzed and obtained;

[0027] A fixed excitation is applied to all determined high-speed signals to replace the original high-frequency signals.

[0028] The second aspect of the present invention proposes a UVM-based OTP fast verification system, including:

[0029] The top layer of the test includes a chip to be tested, a high-speed signal excitation module, and an interface module. The chip to be tested includes an OTP, a register / memory, and a related control module, which is used to receive the excitation applied by the test case layer to burn and read the OTP; the high-speed signal excitation module is used to apply a shutdown excitation to the high-speed signal in the chip to be tested; the interface module is used to realize the interaction between the chip to be tested and the test case layer;

[0030] The test case layer is used to apply different stimuli to the chip under test according to requirements and read the actual data of the chip under test; and complete the verification of OTP based on the actual data and expected data fed back.

[0031] As a preferred solution, the test case layer includes applying fixed scenario stimulus;

[0032] In the top level of the test, after the chip under test burns fixed scene data into OTP, the high-speed signal stimulus module is controlled to cancel the applied shutdown stimulus and reset the chip; the chip under test maps the OTP data to the register / memory through the mapping logic and works normally;

[0033] In the test case layer, read the normal working data of the chip under test, determine whether the scenario results corresponding to the OTP data meet expectations, and complete the fixed scenario verification.

[0034] As a preferred solution, the test case includes applying random excitation;

[0035] In the top test layer, the chip under test writes random data into OTP;

[0036] In the test case layer, the OTP data is read through the OTP burning address, and the read OTP data is compared with the burned random data to complete the OTP burning and reading verification.

[0037] As a preferred solution, the test case includes applying random excitation;

[0038] In the top test layer, the chip under test writes random data to OTP; resets the chip under test, and the chip under test maps the OTP data to registers / memory through mapping logic;

[0039] In the test case layer, the OTP data is read through the OTP burning address, and the read OTP data is compared with the burned random data. If they are consistent, the data mapped to the register / memory by the OTP is read and then compared with the burned random data to complete the OTP burning reading and mapping logic verification.

[0040] Compared with the prior art, the beneficial effects of adopting the above technical solution are:

[0041] 1. During the OTP programming and reading process, applying a shutdown stimulus (normally 0 or 1) to the high-speed chip can greatly reduce the simulation time and improve the simulation efficiency;

[0042] 2. After the OTP burning and reading is completed, the high-speed signal is turned off and the stimulus is cancelled, and the original signal stimulus is restored. At this time, the chip works completely normally, and the OTP fixed scene can be verified, which greatly reduces the OTP burning time. It can also verify the chip fixed scene functions including OTP burning and chip reading OTP data, effectively improving the simulation efficiency.

[0043] 3. During the random test of OTP, a fixed stimulus is applied to the high-speed signal. After the OTP burning is completed, the OTP data is directly read for data comparison, which can quickly verify whether the OTP burning and reading logic is correct.

[0044] 4. Use random stimulus to verify the OTP mapping logic and generate a large number of random use cases to fully verify the mapping logic between OTP and chip registers or memory.

[0045] 5. The OTP verification environment built using UVM can quickly write use cases based on different scenarios, greatly improving the work efficiency of verification personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 The present invention is a flow chart of the UVM-based OTP rapid verification method.

[0047] Figure 2 The figure is a schematic diagram of a specific OTP verification process based on UVM in one embodiment of the present invention.

[0048] Figure 3 The figure is a schematic diagram of an OTP verification system built based on UVM in one embodiment of the present invention. DETAILED DESCRIPTION

[0049] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar modules or modules with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be construed as limitations on the present application. On the contrary, the embodiments of the present application include all changes, modifications and equivalents that fall within the spirit and connotation of the appended claims.

[0050] Example 1

[0051] As the chip scale becomes larger and larger, OTP one-time programmable devices are used more and more widely. The verification of OTP control logic and mapping logic at the chip level faces the problem of longer and longer simulation time and the problem of increasing demand for simulation computing resources. To solve this problem, the present embodiment provides a UVM-based OTP fast verification method, which can greatly improve simulation efficiency (improve efficiency by dozens or even hundreds of times), reduce the demand for simulation computing resources, and shorten verification time.

[0052] UVM (Universal Verification Methodology) is a verification platform development framework based on SystemVerilog class library. Verification engineers can use its reusable components to quickly build a verification environment, greatly improving the efficiency of verification personnel. The present invention is based on UVM implementation, and can effectively improve verification efficiency without increasing the calculation frequency, without adding additional costs.

[0053] Please refer to Figure 1 , the UVM-based OTP fast verification method includes:

[0054] Step 1: Build an OTP verification environment based on UVM, and test the top layer as the chip to be tested.

[0055] In this embodiment, an OTP verification environment is built based on UVM, and the chip to be tested is used as the top-level test object, which can facilitate the verification personnel to quickly write stimuli for multiple different scenarios and quickly cover the OTP verification scenarios, which can greatly improve the simulation efficiency and achieve the goal of rapid verification.

[0056] In the OTP verification environment, it mainly includes two parts: the top test layer and the test case layer. Among them, the top test layer includes the chip to be tested, which is the chip code written by the designer, including the OTP module and related control modules, which can simulate the actual work; at the same time, the top test layer also includes a high-speed signal excitation module, which is mainly used to apply excitation to the chip to be tested to shield the high-speed signal. The top test layer also includes an interface module, which serves as a communication interface between the top test layer and the test case layer and is responsible for the interaction of the test case applying excitation to the chip. The test case layer provides a test environment, which can provide test excitation for the top test layer according to different scenarios, and compare the data returned by the top test layer with the expected data to complete the verification of the test case.

[0057] Step 2: Obtain OTP programming, read register information, and map OTP logic in the chip under test.

[0058] Before testing, it is necessary to read the OTP burning and reading register information in the chip to be tested, and obtain the configuration information on how to burn OTP and read OTP, such as the burning OTP address, etc. At the same time, it is also necessary to obtain the mapping logic of OTP in the chip, such as the mapping table or mapping relationship of the data in OTP to the register or memory in the chip. The mapping logic can be used to verify the correctness of reading data from OTP to the internal register or memory of the chip after the chip to be tested is powered on.

[0059] Step 3: Apply shutdown stimulus to high-speed signals in the chip under test that are not related to OTP programming and reading.

[0060] Generally, the time for OTP programming and reading is hundreds of microseconds or even milliseconds. In the simulation stage, if the chip is large, the simulation time will be very long, consuming a lot of simulation resources and time. OTP programming and reading are only related to the OTP control logic of the chip. It only needs to meet the relevant interface requirements of the OTP control logic. The inoperative logic of other signals does not affect OTP programming and reading. In order to reduce the simulation time and improve the efficiency, in this embodiment, the signal operating frequency is analyzed to obtain high-speed signals unrelated to OTP, such as the high-speed oscillator inside the chip and the high-speed interface signal in the simulation model. If these signals are unrelated to OTP, a high-speed signal list is extracted.

[0061] According to the obtained high-speed signal list, applying shutdown excitation to related high-speed signals can effectively improve simulation efficiency and reduce simulation time. In one embodiment, the shutdown excitation applied is a fixed excitation, for example, replacing the original high-frequency signal with a constant 0 or a constant 1.

[0062] Step 4: Construct test cases according to different scenarios to stimulate the chip under test, and complete OTP fast verification through data comparison.

[0063] Please refer to Figure 2 This embodiment mainly provides OTP verification of two types of test stimuli, including fixed scenario stimuli and random stimuli. Among them, fixed scenario stimuli refer to the register configuration stimuli that need to be applied to the chip in a specific working mode, such as the register configuration stimuli that the clock chip needs to work and output a 100MHZ clock; random stimuli refer to the data values ​​written to the OTP that are completely random. Different random seeds can produce different random values. As a supplement to the fixed scenario stimuli applied to fixed scenarios, the correctness of the OTP burning and reading logic and the OTP mapping logic can be fully verified. In actual applications, other test stimuli can be configured at the test case layer as needed to complete additional verification.

[0064] The verification process of fixed scene incentives and random incentives is explained below one by one.

[0065] 1. For fixed scene incentives

[0066] Step 401: Apply fixed scene stimulus to the chip under test and burn fixed scene data into OTP.

[0067] Step 402, cancel the shutdown stimulus applied to the high-speed signal and reset the chip under test. After the fixed scenario OTP burning is completed, a reset is required to simulate the chip power-on process, so it is necessary to cancel the shutdown stimulus applied to the high-speed signal and restore the original high-speed signal to ensure that the chip can work completely normally.

[0068] Step 403: The chip under test maps the OTP data to the register or memory through the mapping logic. When resetting, the chip under test will first read the OTP data and map the OTP data to the register or memory of the chip. After the reset is completed, the chip under test will use the data read back from the OTP to work.

[0069] Step 404: confirm the chip function and detection point results according to the expected chip results corresponding to the fixed scene of the chip under test, that is, determine whether the scene results corresponding to the OTP data of the chip under test meet expectations, and complete the fixed scene verification.

[0070] In the fixed scene verification process, after the OTP burning and reading is completed, the high-speed signal shutdown stimulus is canceled and restored to the original signal stimulus. At this time, the chip works completely normally to verify the OTP fixed scene. This method can greatly reduce the OTP burning time, and can also verify the chip fixed scene functions including OTP burning and chip reading OTP data, effectively improving the simulation efficiency.

[0071] 2. For random excitation

[0072] When random excitation is applied to the chip under test, it will be determined whether to reset the chip after programming is completed according to the scenario. Chip reset and non-reset mainly involve two different coverage scenarios: the chip customer needs to read the OTP data immediately after programming the OTP, and the chip is not reset in this process; after the chip customer completes programming the OTP data, the OTP data is read again after powering on and off, and the chip is reset in this process.

[0073] For scenarios where reset is not required, the OTP verification process is as follows:

[0074] Step 411: Apply random stimulus to the chip under test and burn random data into the OTP.

[0075] Step 412, read the OTP data through the OTP burning address. Since there is no need to reset the chip, the burning data can be directly read from the OTP through the interface module. Among them, the OTP burning address is included in the OTP burning and reading register information obtained in step 2.

[0076] Step 413, compare the data read in step 412 with the random data burned in step 411, so as to complete the verification of the burning and reading logic of the OTP. If they are consistent, it means that the test case has passed.

[0077] For scenarios that require reset, the OTP verification process is as follows:

[0078] Step 421: Apply random stimulus to the chip under test and burn random data into the OTP.

[0079] Step 422, reset the chip to be tested and read the data in the register or memory. During the power-on process of the simulated chip, the chip will map the data in the OTP to the chip register or memory through the mapping logic. Unlike the verification under fixed scene stimulation, there is no need to cancel the shutdown stimulation applied to the high-speed signal in this step. The purpose is to quickly verify the random data burned by OTP. Since OTP burning and reading and writing will consume a lot of time, if the high-speed stimulation is canceled, OTP will read data very slowly and the simulation efficiency will be very low.

[0080] Step 423, read the OTP data according to the OTP burning address. Similar to step 412, in this step, the data in the OTP is directly read through the interface module.

[0081] Step 424, complete the OTP verification according to the data read from the OTP and the data read from the register or memory. Specifically, first, compare the data directly read from the OTP with the random data burned in step 421. If they are consistent, it means that the burning and reading logic verification is completed, and further compare the data read from the register or memory with the burned random data. During the comparison, because the OTP has a corresponding mapping logic in the chip, the mapping logic needs to be added to the comparison process, and the verification of the mapping logic can be completed through this process.

[0082] In the random excitation test proposed in this embodiment, by applying a fixed excitation to the high-speed signal, the OTP data is read for data comparison after the OTP burning is completed, and whether the OTP burning and reading logic is correct can be quickly verified. At the same time, in this process, the OTP mapping logic verification can also be performed by resetting the chip, and the verification of the mapping logic can be completed when using random excitation. The UVM-based verification method can generate a large number of random test cases through different random seeds to improve the verification efficiency. At the same time, random excitation as a supplement to fixed scene excitation can effectively improve the test coverage of OTP, and fully verify the OTP burning and reading logic and the mapping logic between OTP and chip registers or memory.

[0083] The UVM-based OTP fast verification method proposed in this embodiment can greatly improve the verification efficiency without increasing the computing main frequency, without increasing additional costs, and reduce the verification time.

[0084] Example 2

[0085] This embodiment proposes a UVM-based OTP fast verification system, please refer to Figure 3 , which mainly includes two parts: the test top layer and the test case layer. Among them, the test top layer includes the chip to be tested, which is the chip code written by the designer, including the OTP module and related control modules, which can simulate actual work. The test case layer provides a test environment, which can provide test stimuli for the test top layer according to different scenarios, and compare the data returned by the test top layer with the expected data to complete the verification of the test case.

[0086] Please continue to refer to Figure 3 In this embodiment, the test top layer includes a chip to be tested, a high-speed signal excitation module and an interface module, wherein the interface module is a communication interface between the test top layer and the test case layer, and is responsible for the interaction of the test case applying excitation to the chip. The high-speed signal excitation module is used to obtain high-speed signals that are not related to OTP in the chip to be tested, and to apply a closed excitation to them. The setting of this module can reduce the simulation of high-speed signals that are not related to OTP, and greatly improve the simulation efficiency. The chip to be tested includes OTP and related control modules. In this embodiment, the related control modules mainly include a chip interface module, an OTP control logic, an OTP mapping logic, a register / memory, and other chip logics. The other chip logics are not the focus of the present invention, and can be implemented using a general solution, which will not be described here. The chip interface module is mainly used to provide communication between the chip and the external interface module. The chip interface module can directly burn and read the OTP through the OTP control logic; at the same time, it can also directly read and write the register or memory. The OTP control logic is mainly responsible for the communication with the chip interface module and the burning and reading of the OTP. The OTP mapping logic is mainly used to map the data in the OTP to the register or memory.

[0087] Please continue to refer to Figure 3, this embodiment provides a method of test case layer. The test case layer includes a test environment, and the test environment includes a driver, a monitor, a stimulus sequence, a queue, a reference model, an actual data queue, an expected data queue and a scoreboard. In the test case layer, the test stimulus can be applied to the stimulus sequence according to different scenarios. The driver drives the interface module to send the stimulus to the chip under test; while the driver sends the stimulus to the interface module, it also sends it to the monitor. The monitor sends the received stimulus to the reference model through the queue. The reference model calculates the expected data based on this stimulus, and then sends it to the scoreboard through the expected data queue; at the same time, the chip under test returns the relevant response to the driver through the interface module, and the driver sends the data to the reference model through the queue. At this time, the reference model will calculate the actual data, and then send it to the scoreboard through the actual data queue. The scoreboard compares the received actual data and the expected data to determine whether the case is passed.

[0088] Through the UVM-based OTP fast verification system proposed in this embodiment, use cases can be quickly written according to different scenarios, greatly improving the work efficiency of verification personnel and achieving the goal of fast verification.

[0089] This embodiment further provides the working process of the OTP fast verification system applying fixed scenario excitation and random excitation at the test case layer.

[0090] Fixed scenario excitation is provided at the test case layer and applied to the top test layer through the driver. In the top test layer, the chip under test is stimulated by the fixed scenario, and the control chip interface module and the OTP control logic burn the fixed scenario data into the OTP. During the burning process, the high-speed signal excitation module applies the shutdown excitation. After the burning is completed, the control chip is reset, and the OTP data is mapped to the register or memory through the OTP mapping logic. The chip works normally and feeds back the working data. In the test case layer, the monitor sends the fixed scenario excitation and the data fed back by the chip under test to the reference module respectively. The reference model calculates the expected data and the actual data, and compares them on the scoreboard to verify whether the scenario results corresponding to the OTP data meet expectations.

[0091] Provide random excitation at the test case layer and apply it to the top test layer through the driver. In the top test layer, the chip under test controls the chip interface module and the OTP control logic to burn random data into the OTP according to the random excitation. During the burning process, the high-speed signal excitation module applies the shutdown excitation. After the burning is completed, the data in the OTP is directly read through the chip interface module and fed back to the test case layer. In the test case layer, the monitor sends the random excitation sent to the chip under test and the OTP data fed back by the chip under test to the reference module respectively. The reference model calculates the expected data and the actual data, and compares them on the scoreboard to verify whether the OTP data burning and reading logic is correct.

[0092] Furthermore, when applying random excitation, it also includes a verification process of resetting the chip to be tested. Specifically, random excitation is provided in the test case layer and applied to the test top layer through a driver. In the test top layer, the chip to be tested controls the chip interface module and the OTP control logic to burn random data into the OTP according to the random excitation. During the burning process, the high-speed signal excitation module applies a shutdown excitation. After the burning is completed, the control chip is reset, and the chip to be tested maps the data in the OTP to the register or memory through the OTP mapping logic. The chip interface module reads the data in the OTP and the data in the register or memory, and feeds back to the test case layer. In the test case layer, the monitor sends the random excitation sent to the chip to be tested, the OTP data fed back by the chip to be tested, and the data in the register or memory to the reference module respectively. The expected data and the actual data are calculated by the reference model, and compared on the scoreboard to verify whether the OTP burning and reading logic and the OTP mapping logic are correct.

[0093] Specifically, the read OTP data is first compared with the burned random data to complete the burning and reading logic verification. After the verification is passed, the data in the register or memory is compared with the burned random data to complete the OTP mapping logic verification.

[0094] In practical applications, the UVM-based OTP fast verification system proposed by the present invention can meet different verification requirements by configuring different stimuli in the test case layer. By adopting random stimulus testing, the OTP data is read for data comparison after the OTP burning is completed, and whether the OTP burning and reading logic is correct can be quickly verified. A large number of random use cases are generated, and the verification efficiency is greatly improved by applying fixed stimuli to high-speed signals, and the verification time is reduced, and the mapping logic of OTP and chip registers or memory can be fully verified. By adopting fixed scene stimuli, the OTP burning time is greatly reduced, and the chip fixed scene functions including OTP burning and chip reading OTP data can be verified, which effectively improves the simulation efficiency.

[0095] For those skilled in the art, the specific meanings of the above terms in the present invention can be understood in specific situations; the drawings in the embodiments are used to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0096] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A UVM-based OTP fast verification method, characterized in that, include: Build an OTP verification environment based on UVM, with the top level of the test being the chip under test; Obtain OTP programming, read register information, and OTP mapping logic in the chip under test; Apply shutdown stimulus to high-speed signals in the chip under test that are not related to OTP programming and reading; Apply fixed scene stimulus to the chip under test, burn the fixed scene data into OTP, and complete OTP fast verification through data comparison; or apply random stimulus to the chip under test, burn random data into OTP, and complete OTP fast verification through data comparison.

2. The OTP fast verification method based on UVM according to claim 1, characterized in that, When applying fixed scenario stimulus to the chip under test, OTP fast verification includes: After burning the fixed scene data into OTP, cancel the shutdown stimulus applied to the high-speed signal and reset the chip under test; The chip under test maps the OTP data to registers / memory through mapping logic; Determine whether the scenario results corresponding to the OTP data used by the chip under test meet expectations and complete fixed scenario verification.

3. The OTP fast verification method based on UVM according to claim 1, characterized in that, When applying random stimulus to the chip under test, OTP fast verification includes: Burn random data into OTP; Read OTP data through OTP burning address; Compare the read OTP data with the programmed random data to complete the OTP programming and reading verification.

4. The OTP fast verification method based on UVM according to claim 1, characterized in that, When applying random stimulus to the chip under test, OTP fast verification also includes: Burn random data into OTP; Reset the chip under test, and the chip under test maps the OTP data to the register / memory through the mapping logic; Read OTP data according to OTP burning address; Compare the OTP data read from the OTP address with the random data programmed. If they are consistent, compare the data in the OTP mapping register / memory with the random data programmed according to the mapping logic to complete the OTP programming reading and mapping logic verification.

5. The OTP fast verification method based on UVM according to claim 1, characterized in that, The step of applying a shutdown stimulus to a high-speed signal in the chip under test that is not related to OTP programming and reading specifically includes: According to the signal operating frequency in the chip to be tested, high-speed signals unrelated to OTP are analyzed and obtained; A fixed excitation is applied to all determined high-speed signals to replace the original high-frequency signals.

6. A UVM-based OTP fast verification system, characterized in that: include: The top layer of the test includes a chip to be tested, a high-speed signal excitation module, and an interface module. The chip to be tested includes an OTP, a register / memory, and a related control module, which is used to receive the excitation applied by the test case layer to burn and read the OTP; the high-speed signal excitation module is used to apply a shutdown excitation to the high-speed signal in the chip to be tested; The interface module is used to realize the interaction between the chip under test and the test case layer; The test case layer is used to apply fixed scenario stimulus or random stimulus to the chip under test and read the actual data of the chip under test; And complete the verification of OTP based on the actual data and expected data fed back.

7. The OTP fast verification system based on UVM according to claim 6, characterized in that, The test case layer applies fixed scenario incentives specifically including: In the top level of the test, after the chip under test burns fixed scene data into OTP, the high-speed signal stimulus module is controlled to cancel the applied shutdown stimulus and reset the chip; the chip under test maps the OTP data to the register / memory through the mapping logic and works normally; In the test case layer, read the normal working data of the chip under test, determine whether the scenario results corresponding to the OTP data meet expectations, and complete the fixed scenario verification.

8. The UVM-based OTP fast verification system according to claim 6, characterized in that, The random stimulus applied at the test case layer specifically includes: In the top test layer, the chip under test writes random data into OTP; In the test case layer, the OTP data is read through the OTP burning address, and the read OTP data is compared with the burned random data to complete the OTP burning and reading verification.

9. The UVM-based OTP fast verification system according to claim 6, characterized in that, The test case layer applying random stimulus also includes: In the top test layer, the chip under test writes random data to OTP; resets the chip under test, and the chip under test maps the OTP data to registers / memory through mapping logic; In the test case layer, the OTP data is read through the OTP burning address, and the read OTP data is compared with the burned random data. If they are consistent, the data mapped to the register / memory by the OTP is read and then compared with the burned random data to complete the OTP burning reading and mapping logic verification.