Verification method and verification device for gating circuit, and electronic equipment

By generating the configuration value of the analog bus pair register and random input excitation data for simulation verification, the problem of low verification efficiency when the number of MUXes is large is solved, and the efficiency of the gating circuit is quickly verified.

CN118734764APending Publication Date: 2024-10-01BEIJING TONGFANG MICROELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410932781.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In complex electronic systems with a large number of MUXs, due to the low bus configuration efficiency, it is difficult to quickly implement a fully random traversal of registers, and the verification efficiency of the gating circuit is low.

Method used

By generating the register configuration value of the analog bus pair register and converting it into target configuration data as the selection signal of the strobe circuit, the input excitation data is randomly generated and simulation verification is performed to improve the verification efficiency of the strobe circuit. Specific steps include: defining random variables based on the register field segments of the bus configuration, randomly generating register configuration values ​​and input stimulus data, designing assertions and building logic and timing models, conducting simulation verification and reporting the results.

Benefits of technology

The register configuration and input signals required for the gating circuit are quickly generated, which improves the verification efficiency of the gating circuit based on the register configuration and improves the efficiency of the verification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734764A_ABST
    Figure CN118734764A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of integrated circuits, and discloses a verification method and device for a gating circuit and electronic equipment, and the verification method for the gating circuit comprises the steps: generating a register configuration value of an analog bus to a register; converting the register configuration value into target configuration data, and taking the target configuration data as a selection signal of a gating circuit; generating input excitation data of the gating circuit; and according to the target configuration data and the input excitation data, performing simulation verification on an output signal of the gating circuit, and reporting a verification result. The register configuration value of the analog bus to the register and the input excitation data of the gating circuit are generated, and then the register configuration value is converted into the target configuration data, so that the register configuration and the input signal required by the gating circuit are quickly generated, and the verification efficiency of the gating circuit based on the register configuration is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of integrated circuit technology, for example, to a verification method and verification device and electronic equipment for a gating circuit. Background Art

[0002] Today, in complex electronic systems, gating logic can be very large, requiring the verification process to be able to efficiently handle a large number of configurations and input signal combinations.

[0003] In the related art, when a verification method based on UVM (Universal Verification Methodology) and SV (System Verilog) is used to verify a gating circuit including a large number of MUXs (Multiplexers), it is necessary to configure the selection signal of the gating circuit through a bus configuration register, and at the same time, it is necessary to traverse the input signal.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art: When the number of MUXs is large, it is difficult to quickly implement full random traversal of registers due to the low efficiency of bus configuration, and the verification efficiency of the gating circuit is low.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The embodiments of the present disclosure provide a verification method and a verification device and an electronic device for a gating circuit, so as to improve the verification efficiency of the gating circuit.

[0008] In some embodiments, a verification method for a gating circuit includes: generating a register configuration value for a register of an analog bus pair; converting the register configuration value into target configuration data, and using the target configuration data as a selection signal for the gating circuit; generating input stimulus data for the gating circuit; simulating and verifying the output signal of the gating circuit based on the target configuration data and the input stimulus data, and reporting the verification result.

[0009] Optionally, register configuration values ​​of a simulated bus pair register are generated, including: defining a random variable with the same bit width as the register based on a register domain segment of the bus configuration; and randomly generating a plurality of register configuration values ​​according to the random variable.

[0010] Optionally, generating input stimulus data for the gating circuit includes: randomly generating input stimulus data according to a data bit width of the gating circuit; wherein each bit value of the input stimulus data is a random value of 0 or 1, and each bit has a toggle flip.

[0011] Optionally, the output signal of the gating circuit is simulated and verified according to the target configuration data and the input stimulus data, including: designing assertions according to the specific logic and timing relationship of the gating circuit; constructing the logic model and timing relationship model of the gating circuit according to the assertions; obtaining simulation results of the logic model and the timing relationship model according to the target configuration data and the input stimulus data; and comparing the simulation results with the output signal of the gating circuit to obtain a verification result.

[0012] Optionally, according to the specific logic and timing relationship of the gating circuit, the assertion is designed, including: according to the specific logic and timing relationship of the gating circuit, the assertion is constructed based on the SVA method; wherein the sensitivity list of the assertion includes input stimulus data, target configuration data and the output signal of the gating circuit.

[0013] Optionally, the simulation result is compared with the output signal of the gating circuit to obtain a verification result, including: comparing the signal value of the output signal of the gating circuit with the simulation signal value output by the logic model to obtain a first comparison result; comparing the timing of the output signal of the gating circuit with the simulation timing output by the timing relationship model to obtain a second comparison result; if both the first comparison result and the second comparison result are passed, it is determined that the simulation verification is passed, otherwise it is determined that the simulation verification has failed.

[0014] Optionally, the verification method for the gating circuit further includes: in case of a simulation verification failure, recording target configuration data and input stimulus data of the current simulation process to determine the cause of the failure.

[0015] In some embodiments, a verification device for a gating circuit includes: a first component, including a register configuration generator and a stimulus generator; the register configuration generator is configured to generate register configuration values ​​for a simulated bus pair register; the stimulus generator is configured to generate input stimulus data for the gating circuit; a second component, including a checker and a reporter; the checker is configured to perform simulation verification on the output signal of the gating circuit according to the target configuration data and the input stimulus data; the reporter is configured to report the verification result; a third component, including a decoding circuit and a gating circuit; the decoding circuit is configured to convert the register configuration value into target configuration data, and input the target configuration data as a selection signal of the gating circuit.

[0016] In some embodiments, a verification device for a gating circuit includes a processor and a memory storing program instructions, and the processor is configured to execute the verification method for a gating circuit as described above when running the program instructions.

[0017] In some embodiments, the electronic device includes: an electronic device body; and a verification device for gating a circuit as described above, which is installed in the electronic device product body.

[0018] The verification method, verification device, and electronic device for a gate circuit provided by the embodiments of the present disclosure can achieve the following technical effects: In the disclosed embodiment, by generating register configuration values ​​of analog buses for registers and input stimulus data of a gating circuit, and then converting the register configuration values ​​into target configuration data, it is possible to quickly generate the register configuration and input signals required for the gating circuit, thereby improving the verification efficiency of the gating circuit based on the register configuration.

[0019] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 is a schematic diagram of a verification device for a gating circuit provided by an embodiment of the present disclosure; Figure 2 is a schematic diagram of a verification method for a gating circuit provided by an embodiment of the present disclosure; Figure 3 is a schematic diagram of a decoding circuit in a verification device for a gating circuit provided by an embodiment of the present disclosure; Figure 4is a schematic diagram of a gating circuit in a verification device for a gating circuit provided by an embodiment of the present disclosure; Figure 5 is a schematic diagram of a checker in a verification device for a gating circuit provided by an embodiment of the present disclosure; Figure 6 It is a schematic diagram of another verification device for a gating circuit provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0021] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0022] The terms "first", "second", etc. in the technical solutions described in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the disclosed embodiments described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0023] Unless otherwise stated, the term "plurality" means two or more.

[0024] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0025] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0026] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0027] Combination Figure 1As shown, the embodiment of the present disclosure provides a verification device for a gating circuit, including a first component 10, a second component 20 and a third component 30. The first component 10 includes a register configuration generator 11 and an excitation generator 12. The register configuration generator 11 is configured to generate a register configuration value of a simulated bus pair register. The excitation generator 12 is configured to generate input excitation data for a gating circuit 32. The second component 20 includes a checker 21 and a reporter 22. The checker 21 is configured to perform simulation verification on an output signal of the gating circuit 32 according to target configuration data and input excitation data. The reporter 22 is configured to report the verification result. The third component 30 includes a decoding circuit 31 and a gating circuit 32. The decoding circuit 31 is configured to convert the register configuration value into target configuration data, and input the target configuration data as a selection signal of the gating circuit 32.

[0028] In the disclosed embodiment, the register configuration generator 11 directly acts on the register domain segment of the bus configuration, cancels the process of configuring the register through the bus, and improves the register configuration efficiency. The register configuration value of the analog bus to the register is randomly generated by the register configuration generator 11, and the input excitation data of the gating circuit 32 is generated by the excitation generator 12. The register configuration value is converted into the target configuration data by the decoding circuit 31, and the target configuration data and the input excitation data are used as the input signal of the gating circuit 32 to obtain the output signal of the gating circuit 32. The output signal of the gating circuit 32 is simulated and verified by the checker 21, and the verification result is obtained and reported by the reporter 22. Through the register configuration generator 11 and the excitation generator 12, the register configuration and input signal required by the gating circuit 32 can be quickly generated, thereby improving the verification efficiency of the gating circuit 32 based on the register configuration.

[0029] Optionally, the gating circuit 32 includes a plurality of MUXs. The MUX is used to select one of a plurality of input signals as an output signal.

[0030] Optionally, the register configuration generator 11 and the stimulus generator 12 are implemented by encapsulating the Class structure of SV.

[0031] In the register configuration generator 11 and the stimulus generator 12, through the Class definition and the random variables of the same bit width as the register, the random functions of SV, such as $urandom and $urandom_range, are used to realize the random generation of registers within the valid range, and the constraint mechanism is used to realize the constraint of random stimulus.

[0032] Optionally, the third component 30 is implemented based on an SVA module (System Verilog Assertion module), and the gating circuit 32 and the second component 20 are instantiated in the same module to achieve binding integration of the gating circuit 32 and the checker 21, thereby enabling the checker 21 in the second component 20 to drive and sample the input and output signals of the gating circuit 32.

[0033] Optionally, the port signals of the third component 30 and the gating circuit 32 module are bound by a bind method.

[0034] Optionally, the first component 10 and the third component 30 are connected via an interface. The stimulus generator 12 in the first component 10 can send the generated input stimulus data to the checker 21 in the second component 20 via a driver.

[0035] Optionally, the first component 10 is packaged in the form of a UVM agent.

[0036] Applied to the above-mentioned verification device for gating circuit, the embodiment of the present disclosure provides a verification method for gating circuit, combined with Figure 2 As shown, the method includes: S001, the verification device generates a register configuration value for a simulated bus pair register.

[0037] S002, the verification device converts the register configuration value into target configuration data, and uses the target configuration data as a selection signal for the gating circuit.

[0038] S003, the verification device generates input stimulus data for the gating circuit.

[0039] S004, the verification device performs simulation verification on the output signal of the gating circuit according to the target configuration data and the input stimulus data, and reports the verification result.

[0040] In combination with the above-mentioned verification device for the gating circuit, in the embodiment disclosed in the present invention, the register configuration generator directly acts on the register domain segment of the bus configuration, eliminating the process of configuring the register through the bus, and improving the register configuration efficiency. The register configuration value of the analog bus to the register is randomly generated by the register configuration generator, and the input excitation data of the gating circuit is generated by the excitation generator. The register configuration value is converted into the target configuration data by the decoding circuit, and the target configuration data and the input excitation data are used as the input signal of the gating circuit to obtain the output signal of the gating circuit. The output signal of the gating circuit is simulated and verified by the checker to obtain the verification result, and reported by the reporter. Through the register configuration generator and the excitation generator, the register configuration and input signal required for the gating circuit can be quickly generated, thereby improving the verification efficiency of the gating circuit based on the register configuration.

[0041] Optionally, register configuration values ​​of a simulated bus pair register are generated, including: defining a random variable with the same bit width as the register based on a register domain segment of the bus configuration; and randomly generating a plurality of register configuration values ​​according to the random variable.

[0042] In this embodiment, the register configuration generator can randomly generate various configuration combinations of the analog bus to the register to directly stimulate the register. Figure 3 As shown, the register configuration value generated by the register configuration generator is used as the configuration data reg0, reg1, ..., regm of the decoding circuit. After the decoding circuit, the register configuration value is converted into the target configuration data of MUXmn_sel, MUXmn-1_sel, ..., MUXm0_sel. Among them, m is the register index, and n is the domain segment index of the register MUX. m and n are designed according to the actual circuit. Within the defined range and constraints, the target configuration data can be accumulated and traversed. After passing through the decoding circuit, the register configuration value is converted into the target configuration data and input into the gating circuit as the selection signal of the gating circuit.

[0043] In an optional embodiment, taking the register width as 32 bits and each mux_sel control signal as 4 bits as an example, one register corresponds to 8 mux_sel signals (mux0_sel~mux7_sel). If the register configuration value is 32'h0x87654321, after the decoding circuit, mux0_sel=1, mux1_sel=2, mux3_sel=3, mux4_sel=4, mux5_sel=5, mux6_sel=6, mux7_sel=7 are obtained. Combined Figure 4As shown, mux_sel0~mux_sel7 outputted by the decoding circuit are inputted into the gating circuit as the control signal of the gating circuit. When mux00_sel is decoded to 1, D0_in[1] in the gating circuit input signal is selected and outputted as the output signal D_out_0.

[0044] Optionally, generating input stimulus data for the gating circuit includes: randomly generating input stimulus data according to a data bit width of the gating circuit; wherein each bit value of the input stimulus data is a random value of 0 or 1, and each bit has a toggle flip.

[0045] Combination Figure 4 As shown, the stimulus generator can generate input stimulus data D_in (D0_in[0]~D0_in[n]) of the gating circuit as the input signal of multiple MUXs (nMUX1_0~nMUX1_n) in the gating circuit. The bit width of the input stimulus data is defined according to the actual data bit width of the gating circuit. The target configuration data (MUX00_sel~MUXn0_sel) output by the decoding circuit is used as the control signal of each MUX to control the output signal D_out (D_out_0~D_out_n) of the gating circuit.

[0046] Optionally, the output signal of the gating circuit is simulated and verified according to the target configuration data and the input stimulus data, including: designing assertions according to the specific logic and timing relationship of the gating circuit; constructing the logic model and timing relationship model of the gating circuit according to the assertions; obtaining simulation results of the logic model and the timing relationship model according to the target configuration data and the input stimulus data; and comparing the simulation results with the output signal of the gating circuit to obtain a verification result.

[0047] In this embodiment, the checker is designed in an assertion manner, and the target configuration data, input stimulus data, and the output signal of the gate circuit are used as the input of the checker to obtain the simulation verification result. Figure 5 As shown, in the checker, an assertion group (property0~propertyn) is set. Under the trigger of the input stimulus data output by the stimulus generator, the output signal (D_out_0~D_out_n) of the selection circuit is verified according to the input stimulus data (D0_in[0]~D0_in[n]) and the target configuration data (MUX00_sel~MUXn0_sel).

[0048] Optionally, according to the specific logic and timing relationship of the gating circuit, the assertion is designed, including: according to the specific logic and timing relationship of the gating circuit, the assertion is constructed based on the SVA method; wherein the sensitivity list of the assertion includes input stimulus data, target configuration data and the output signal of the gating circuit.

[0049] The checker is designed in the form of assertions to verify whether the output signal of the gating circuit meets expectations under various operating conditions. The sensitivity list of the assertion defines the signals that the assertion check depends on. The input stimulus data, target configuration data, and the output signal of the gating circuit are used as the sensitivity list of the assertion, thereby defining the data checked by the checker. In the process of designing assertions using SVA code, it is necessary to first define the attributes of the assertion, which may include attributes such as address, write enable, write data, constant address, MUX input signal, MUX output signal, and index. Then analyze the timing logic of the gating circuit so that the assertion can accurately reflect the logical connection and timing constraints in the gating circuit, and define the data bit width of the assertion. Finally, multiple assertions can be instantiated through generate and for loops.

[0050] Optionally, the simulation result is compared with the output signal of the gating circuit to obtain a verification result, including: comparing the signal value of the output signal of the gating circuit with the simulation signal value output by the logic model to obtain a first comparison result; comparing the timing of the output signal of the gating circuit with the simulation timing output by the timing relationship model to obtain a second comparison result; if both the first comparison result and the second comparison result are passed, it is determined that the simulation verification is passed, otherwise it is determined that the simulation verification has failed.

[0051] Under the stimulation of the target configuration data and input stimulus data, the checker will output the simulation result of the output signal of the gating circuit. By comparing the simulation result with the real output signal of the gating circuit, the simulation verification of the gating circuit can be realized. The verification process includes the verification of the output signal value and the timing relationship. When both verifications pass, it means that the simulation verification passes, and the reporter will report the verification result. If the output signal of the gating circuit has an incorrect signal value or timing error with the simulation result, the reporter will report the verification failure result.

[0052] Optionally, the verification method for the gating circuit further includes: in case of a simulation verification failure, recording target configuration data and input stimulus data of the current simulation process to determine the cause of the failure.

[0053] In this embodiment, in the case of simulation verification failure, the reporter will report the result of verification failure and also report the target configuration data and input stimulus data of this simulation at the same time, so as to determine the cause of the simulation failure.

[0054] By adopting the verification method and verification device for the gating circuit provided by the embodiment of the present disclosure, the register configuration value of the analog bus to the register can be randomly generated by the register configuration generator, and the register can be directly stimulated. At the same time, the stimulus generator is designed to construct the stimulus for the input signal in a completely random and constrained manner to obtain the input stimulus data. The checker is designed in an assertion manner to check whether the logical function and timing relationship of the gating circuit are correct under the action of the register configuration generator and the stimulus generator, and obtain the inspection result. Since the register configuration generator directly acts on the register domain segment of the bus configuration, the process of configuring the register through the bus is eliminated, which improves the register configuration efficiency and the simulation verification efficiency of the gating circuit.

[0055] Combination Figure 6 As shown, the embodiment of the present disclosure provides another verification device 300 for a gating circuit, including a processor 200 and a memory 201. Optionally, the verification device may also include a communication interface 202 and a bus 203. The processor 200, the communication interface 202, and the memory 201 may communicate with each other through the bus 203. The communication interface 202 may be used for information transmission. The processor 200 may call the logic instructions in the memory 201 to execute the verification method for the gating circuit of the above embodiment.

[0056] In addition, the logic instructions in the memory 201 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0057] The memory 201 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 200 executes the function application and data processing by running the program instructions / modules stored in the memory 201, that is, the verification method for the gating circuit in the above embodiment is implemented.

[0058] The memory 201 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 201 may include a high-speed random access memory and may also include a non-volatile memory.

[0059] The embodiments of the present disclosure provide an electronic device, comprising: an electronic device body, and the above-mentioned verification device for gating the circuit. The verification device for gating the circuit is installed in the electronic device body. The installation relationship described here is not limited to placement inside the electronic device, but also includes installation connections with other components of the electronic device, including but not limited to physical connections, electrical connections or signal transmission connections, etc. It can be understood by those skilled in the art that the verification device for gating the circuit can be adapted to a feasible electronic device body, thereby realizing other feasible embodiments.

[0060] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned verification method for a gating circuit.

[0061] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0062] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the technical solutions recorded in this application. As used in the technical solutions recorded in this application, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0063] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0064] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0065] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A verification method for a gating circuit, characterized in that: include: Generate register configuration values ​​for analog bus pair registers; Converting the register configuration value into target configuration data, and using the target configuration data as a selection signal for a gating circuit; generating input stimulus data for a gating circuit; According to the target configuration data and input stimulus data, the output signal of the gating circuit is simulated and verified, and the verification result is reported.

2. The verification method according to claim 1, characterized in that: Generates register configuration values ​​for analog bus pair registers, including: Based on the register domain segment configured by the bus, a random variable with the same bit width as the register is defined; Randomly generate multiple register configuration values ​​based on random variables.

3. The verification method according to claim 1, characterized in that: Generate input stimulus data for gating circuits, including: Randomly generate input stimulus data according to the data bit width of the gating circuit; Each bit value of the input stimulus data is a random value of 0 or 1, and each bit has a toggle flip.

4. The verification method according to claim 1, characterized in that: According to the target configuration data and input stimulus data, the output signal of the gating circuit is simulated and verified, including: Design assertions based on the specific logic and timing relationships of the gating circuit; Construct the logic model and timing relationship model of the gating circuit based on the assertion; According to the target configuration data and input stimulus data, the simulation results of the logic model and the timing relationship model are obtained; The simulation results are compared with the output signal of the gating circuit to obtain the verification result.

5. The verification method according to claim 4, characterized in that: Design assertions based on the specific logic and timing relationships of the gating circuit, including: According to the specific logic and timing relationship of the gating circuit, the assertion is constructed based on the SVA method; The assertion sensitivity list includes input stimulus data, target configuration data, and output signals of the gating circuit.

6. The verification method according to claim 4, characterized in that: Compare the simulation results with the output signal of the gating circuit to obtain verification results, including: Comparing the signal value of the output signal of the gating circuit with the simulation signal value output by the logic model to obtain a first comparison result; Compare the timing of the output signal of the gating circuit with the simulation timing output by the timing relationship model to obtain a second comparison result; If both the first comparison result and the second comparison result pass, it is determined that the simulation verification passes; otherwise, it is determined that the simulation verification fails.

7. The verification method according to any one of claims 1 to 6, characterized in that: Also includes: In the event of a simulation verification failure, the target configuration data and input stimulus data of the current simulation process are recorded to determine the cause of the failure.

8. A verification device for a gating circuit, characterized in that: include: A first component includes a register configuration generator and a stimulus generator; The register configuration generator is configured to generate register configuration values ​​for the analog bus pair registers; The stimulus generator is configured to generate input stimulus data for the gating circuit; The second component includes a checker and a reporter; the checker is configured to perform simulation verification on the output signal of the gating circuit according to the target configuration data and the input stimulus data; The reporter is configured to report the verification result; The third component includes a decoding circuit and a gating circuit; the decoding circuit is configured to convert the register configuration value into target configuration data, and input the target configuration data as a selection signal of the gating circuit.

9. A verification device for a gating circuit, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the verification method for a gating circuit according to any one of claims 1 to 7 when running the program instructions.

10. An electronic device, characterized in that: include: Electronic device body; The verification device for a gating circuit as claimed in claim 8 or 9 is installed in the body of an electronic equipment product.