Triggered network function verification system, method, device and medium based on assertion

Through the assertion-based trigger network function verification system, random configuration and incentive verification are used to use the test case base class and assertion module for random configuration and incentive verification, the problems of complexity and traceability of traditional methods are solved, and efficient and accurate trigger network function verification is achieved.

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

Patent Information

Application Number
CN202411090536.7
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

The traditional method of triggering network function verification requires writing a large number of test cases, which are complex, error-prone, have a long verification cycle, and are difficult to accurately trace the source of errors.

Method used

The assertion-based trigger network function verification system is adopted, including the test case base class, verification use case, trigger network function code module, assertion module and clock generation module. Function verification is carried out through random configuration and incentives, and the source is directly traced to the source of the error.

Benefits of technology

It reduces the development complexity and workload of the verification environment, improves verification efficiency and accuracy, and realizes accurate traceability of the source of errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939554A_ABST
    Figure CN118939554A_ABST
Patent Text Reader

Abstract

The invention relates to an assertion-based trigger network function verification system, method, equipment and medium. The system comprises all test case base classes, verification cases, a network function code triggering module, an assertion module and a clock generation module which are located on a verification top layer. All test case base classes integrate a verification environment top layer; the verification environment top layer comprises a verification environment configuration file, an apbvip module and a trigger excitation generator; the network function code triggering module is respectively connected with the clock generation module, the apbvip module and the trigger excitation generator, and is connected with the assertion module; the verification case inherits all test case base classes and is used for constructing trigger network random configuration and initiating trigger random excitation to a trigger network function code module; and the assertion module is used for performing function verification of the trigger network according to the acquired signal. By adopting the system, the accuracy and verification efficiency of triggering network function verification can be improved, and an error source can be accurately traced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to an assertion-based triggered network function verification system, method, device and medium. Background Art

[0002] With the development of the times, the integration of chips is getting higher and higher. TRIGMUX (trigger network) can solve the problem of mutual cooperation between various IPs inside the chip, and can realize mutual triggering between different IPs. For example, the timer triggers ADC sampling, the peripheral triggers DMAC to move data, etc.

[0003] Traditional verification methods generally construct data of different IPs, develop and configure TRIGMUX configuration modules, reference models, and scoreboards, and check whether the output data of TRIGMUX is correct. However, traditional verification methods have the following disadvantages: a large number of test cases need to be written; reference models and scoreboards are complex to implement; prone to errors; and long verification cycles. Therefore, how to improve the accuracy and efficiency of triggering network function verification and how to accurately trace the source of errors have become urgent issues to be solved. Summary of the invention

[0004] Based on this, it is necessary to provide an assertion-based triggered network function verification system, method, device and medium to address the above technical problems.

[0005] A method for triggering network function verification based on assertion, the system comprising:

[0006] All test case base classes, verification cases, trigger network function code modules, assertion modules, and clock generation modules at the top level of verification;

[0007] All the test case base classes are used for the top layer of the integrated verification environment; the top layer of the verification environment includes a verification environment configuration file, an apb_vip module and a trig_in stimulus generator;

[0008] The trigger network function code module is connected to the clock generation module, the apb_vip module and the trig_in stimulus generator through the clock port, the apb bus port and the trig_in port respectively, and is connected to the assertion module through the trig_in port, the trig_out port, the filter port, the trigger selection port and the clock port;

[0009] The verification case inherits all the test case base classes, and is used to construct a random configuration of the trigger network and initiate a trig_in random stimulus to the trigger network function code module;

[0010] The assertion module is used to perform function verification of the trigger network according to the acquired signal.

[0011] A method for triggering network function verification based on assertion, the method comprising:

[0012] Build the top layer of the verification environment by integrating the verification environment configuration file, apb_vip module and trig_in stimulus generator;

[0013] Build all test case base classes through the top layer of the integrated verification environment;

[0014] Connect the trigger network function code module with the clock generation module, apb_vip module and trig_in stimulus generator through the clock port, apb bus port and trig_in port respectively, and connect the trigger network function code module with the assertion module through the trig_in port, trig_out port, filter port, trigger selection port and clock port;

[0015] By verifying that the test case inherits all the test case base classes, a trigger network random configuration is constructed and a trig_in random stimulus is initiated to the trigger network function code module;

[0016] The assertion module is used to verify the function of the trigger network based on the acquired signal.

[0017] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0018] Build the top layer of the verification environment by integrating the verification environment configuration file, apb_vip module and trig_in stimulus generator;

[0019] Build all test case base classes through the top layer of the integrated verification environment;

[0020] Connect the trigger network function code module with the clock generation module, apb_vip module and trig_in stimulus generator through the clock port, apb bus port and trig_in port respectively, and connect the trigger network function code module with the assertion module through the trig_in port, trig_out port, filter port, trigger selection port and clock port;

[0021] By verifying that the test case inherits all the test case base classes, a trigger network random configuration is constructed and a trig_in random stimulus is initiated to the trigger network function code module;

[0022] The assertion module is used to verify the function of the trigger network based on the acquired signal.

[0023] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0024] Build the top layer of the verification environment by integrating the verification environment configuration file, apb_vip module and trig_in stimulus generator;

[0025] Build all test case base classes through the top layer of the integrated verification environment;

[0026] Connect the trigger network function code module with the clock generation module, apb_vip module and trig_in stimulus generator through the clock port, apb bus port and trig_in port respectively, and connect the trigger network function code module with the assertion module through the trig_in port, trig_out port, filter port, trigger selection port and clock port;

[0027] By verifying that the test case inherits all the test case base classes, a trigger network random configuration is constructed and a trig_in random stimulus is initiated to the trigger network function code module;

[0028] The assertion module is used to verify the function of the trigger network based on the acquired signal.

[0029] The above-mentioned assertion-based trigger network function verification system, method, device and medium inherit all test case base classes through verification cases, construct a random configuration of the trigger network and initiate trig_in random stimulation to the trigger network function code module. Then, the assertion module performs chip TRIGMUX function verification according to the acquired signal, which can save the development of reference models and scoreboards, effectively reduce the development complexity and workload of the verification environment, and also reduce the time consumed in locating reference model and scoreboard problems. Therefore, verification convergence and accurate verification can be achieved more efficiently. And by verifying the output signals of each port of the trigger network function code module, it can be directly traced back to the source of the error, and accurate traceability can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a structural block diagram of an assertion-based triggered network function verification system in one embodiment;

[0031] Figure 2 A typical TRIGMUX network diagram in one embodiment;

[0032] Figure 3 is a schematic diagram of a first assertion check timing sequence in one embodiment;

[0033] Figure 4 is a schematic diagram of the second assertion check timing in one embodiment;

[0034] Figure 5 is a schematic diagram of a third assertion check timing sequence in one embodiment;

[0035] Figure 6 A flowchart of a method for triggering network function verification based on assertions in one embodiment;

[0036] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.

[0038] In one embodiment, Figure 1 As shown, a system for triggering network function verification based on assertion is provided, comprising:

[0039] All test case base classes, verification cases, trigger network function code modules, assertion modules, and clock generation modules at the top level of verification;

[0040] All the test case base classes are used for the top layer of the integrated verification environment; the top layer of the verification environment includes a verification environment configuration file, an apb_vip module and a trig_in stimulus generator;

[0041] The trigger network function code module is connected to the clock generation module, the apb_vip module and the trig_in stimulus generator through the clock port, the apb bus port and the trig_in port respectively, and is connected to the assertion module through the trig_in port, the trig_out port, the filter port, the trigger selection port and the clock port;

[0042] The verification case inherits all the test case base classes, and is used to construct a random configuration of the trigger network and initiate a trig_in random stimulus to the trigger network function code module;

[0043] The assertion module is used to perform function verification of the trigger network according to the acquired signal.

[0044] like Figure 1As shown, in the TRIGMUX verification block diagram designed by the present invention, it is necessary to develop testbench (verification top layer), base_test (base class for all test cases), env (verification environment top layer), env_cfg (verification environment configuration file), apb_vip (apb interface verification IP), trig_gen (trig_in stimulus generator of trigmux module), testcase (verification case), clock generation module and assertion module, wherein testbench is used to integrate environment components and rtl (trigger network function code module), and the rtl function code of the trigger network is mainly used to implement the trigger logic in the sequential logic circuit.

[0045] Connect the trig_in (trigger input) port, trig_out (trigger output) port, filter port, trigger selection (trig_sel) port, and clock (clk) port of the trigger network function code module to the assertion module port. The assertion module is developed in the systemverilog language and is used to implement the trigmux module check. Start the verification case to verify the function of the trigger network. It can be understood that in addition to initiating trig_in random stimulus, the verification case can also initiate specific stimulus.

[0046] Each module in the above assertion-based triggered network function verification system can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0047] In the above assertion-based trigger network function verification system, the verification case inherits all the test case base classes, constructs the random configuration of the trigger network and initiates the trig_in random stimulus to the trigger network function code module. Then, the assertion module verifies the chip TRIGMUX function according to the acquired signal, which can save the development of reference models and scoreboards, effectively reduce the development complexity and workload of the verification environment, and also reduce the time spent in locating reference model and scoreboard problems. Therefore, verification convergence and accurate verification can be achieved more efficiently. And by verifying the output signals of each port of the trigger network function code module, it can be directly traced back to the source of the error and achieve accurate traceability.

[0048] In one embodiment, the verification environment configuration file is used to randomize the configuration information related to the trigger network; the verification environment top layer is used to send the configuration information in the verification environment configuration file to apb_vip and trig_in stimulus generator respectively; the apb_vip is used to initiate the configuration information that complies with the apb bus protocol to the trigger network function code module to perform the relevant configuration of the trigger network; the trig_in stimulus generator is used to generate trig_in random stimulus to the trigger network function code module. In this embodiment, the verification environment configuration file is used to randomize the trigmux related configuration information, including the trigmux mapping relationship, filter coefficients, trig_in combination form and apb_vip configuration parameters, etc. The configuration information output by apb_vip to the trigger network function code module includes the trigmux mapping relationship and filter coefficients, etc.

[0049] In one embodiment, the base class of all test cases is used to randomize the verification environment configuration file and initialize the trigger network.

[0050] In one embodiment, the verification top layer is used to integrate the environment components and the trigger network function code module, and connect the interaction signals between the environment components and the trigger network function code module.

[0051] like Figure 2 As shown in Figure 1, a typical TRIGMUX network diagram is provided. Figure 2 Take the TRIGMUX network as an example to explain: Figure 2 The TRIGMUX network in has 3 trig_in and 3 trig_out. Each trig_in will pass through its own filter, and the filter will filter out unnecessary trig_in signals based on the threshold. The available filter_out[2:0] signal is output to the selector (mux[2:0]) corresponding to trig_out[2:0]. Trig_out[0], trig_out[1], trig_out[2] can select output filter_out[0], filter_out[1] or filter_out[2] by controlling trig_sel0, trig_sel1, trig_sel2. Reference Figure 2 In a typical TRIGMUX network, the assertion module designed in this system can execute the first assertion check timing, the second assertion check timing and the third assertion check timing, and the above assertion check timings can be performed independently.

[0052] In one embodiment, the functional verification of the trigger network based on the acquired signal includes: monitoring the trig_in signal, if the rising edge of the trig_in signal is detected, recording the current timestamp to obtain the first timestamp, and when the rising edge of the trig_in signal is detected again, recording the current timestamp as the second timestamp; obtaining the difference between the first timestamp and the second timestamp, when the difference is greater than the filtering threshold of the filter and the filter output signal is 0, reporting an error; when the difference is less than the filtering threshold of the filter and the filter output signal is 1, reporting an error.

[0053] In this embodiment, if Figure 3 The first assertion check timing diagram shown in the figure, if the rising edge of trig_in[n] is detected, the current time t0 is recorded. Continue to detect the rising edge of trig_in[n] and record the current time t1. Calculate the difference between t1-t0. If the difference is greater than the filter threshold, filter_out outputs 0 and an error is reported. If the difference is less than the filter threshold, filter_out outputs 1 and an error is reported.

[0054] In one embodiment, the functional verification of the trigger network based on the acquired signal also includes: monitoring the filter output signal, if a rising edge of the filter output signal is detected, checking whether the trigger selection signal at this time selects the filter output signal, if selected, and the trig_out signal is 0, an error is reported; if not selected, and the trig_out signal is 1, an error is reported.

[0055] In this embodiment, if Figure 4 In the second assertion check timing diagram shown in the figure, if the rising edge of filter_out[n] is detected, continue to check whether trig_sel[k] is equal to n. If it is equal to n, trig_out[k] outputs 0, and an error is reported. If it is equal to 0, trig_out[k] is equal to 1, and an error is reported.

[0056] In one embodiment, the functional verification of the trigger network based on the acquired signal also includes: monitoring the trig_out signal, and reporting an error if the trig_out signal is not 0 and the trig_in signal is 0; and reporting an error if the trig_out signal is 0 and the filter output signal is not 0.

[0057] In this embodiment, if Figure 5 The third assertion check timing diagram shown in the figure shows that if trig_out is not equal to 0, and if trig_in is checked to be equal to 0, an error is reported. If trig_out is equal to 0, and if filter_out is not equal to 0, an error is reported.

[0058] This system only needs to initiate random trig_in stimulus and random configuration related to the trigmux module in the use case to complete the trigmux module function verification. It is easy to develop and reuse, and the development and maintenance cost is low.

[0059] In one embodiment, Figure 6 As shown, a method for triggering network function verification based on assertion is provided, comprising the following steps:

[0060] Step 602, construct the top layer of the verification environment by integrating the verification environment configuration file, the apb_vip module and the trig_in stimulus generator.

[0061] Step 604, construct all test case base classes through the top level of the integrated verification environment.

[0062] Step 606, respectively connect the trigger network function code module with the clock generation module, apb_vip module and trig_in stimulus generator through the clock port, apb bus port and trig_in port, and connect the trigger network function code module with the assertion module through the trig_in port, trig_out port, filter port, trigger selection port and clock port.

[0063] Step 608, by verifying that the test case inherits all the test case base classes, a trigger network random configuration is constructed and a trig_in random stimulus is initiated to the trigger network function code module.

[0064] Step 610: Performing a function verification of the trigger network according to the acquired signal through the assertion module.

[0065] It should be understood that although Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these 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 these steps, and these steps can be executed in other orders. Moreover, Figure 6 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 sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0066] For specific limitations on the assertion-based triggered network function verification method, please refer to the above limitations on the assertion-based triggered network function verification system, which will not be repeated here.

[0067] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an assertion-based trigger network function verification method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0068] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0069] 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 steps of the method in the above embodiment when executing the computer program.

[0070] 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 steps of the method in the above embodiment are implemented.

[0071] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and 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 (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0072] 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.

[0073] The above-mentioned embodiments only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.

Claims

1. An assertion-based triggered network function verification system, characterized in that: The system includes all test case base classes, verification cases, trigger network function code modules, assertion modules and clock generation modules at the top level of verification; All the test case base classes are used for the top layer of the integrated verification environment; the top layer of the verification environment includes a verification environment configuration file, an apb_vip module and a trig_in stimulus generator; The trigger network function code module is connected to the clock generation module, the apb_vip module and the trig_in stimulus generator through the clock port, the apb bus port and the trig_in port respectively, and is connected to the assertion module through the trig_in port, the trig_out port, the filter port, the trigger selection port and the clock port; The verification case inherits all the test case base classes, and is used to construct a random configuration of the trigger network and initiate a trig_in random stimulus to the trigger network function code module; The assertion module is used to perform function verification of the trigger network according to the acquired signal.

2. The system according to claim 1, characterized in that The function verification of triggering the network according to the acquired signal includes: Monitor the trig_in signal. If a rising edge of the trig_in signal is detected, record the current timestamp to obtain a first timestamp. When a rising edge of the trig_in signal is detected again, record the current timestamp as a second timestamp. Obtain the difference between the first timestamp and the second timestamp, and report an error when the difference is greater than the filter threshold of the filter and the filter output signal is 0; When the difference is smaller than the filter threshold of the filter and the filter output signal is 1, an error is reported.

3. The system according to claim 1, characterized in that The function verification of triggering the network according to the acquired signal also includes: Monitor the filter output signal. If a rising edge of the filter output signal is detected, check whether the trigger selection signal at this time selects the filter output signal. If it is selected and the trig_out signal is 0, report an error. If not selected and the trig_out signal is 1, an error is reported.

4. The system according to claim 1, characterized in that The function verification of triggering the network according to the acquired signal also includes: Monitor the trig_out signal. If the trig_out signal is not 0 and the trig_in signal is 0, an error is reported. If the trig_out signal is detected to be 0 and the filter output signal is not 0, an error is reported.

5. The system according to claim 1, characterized in that The verification environment configuration file is used to randomly trigger network-related configuration information; The verification environment top layer is used to send the configuration information in the verification environment configuration file to the apb_vip and trig_in stimulus generators respectively; The apb_vip is used to initiate configuration information that complies with the apb bus protocol to the trigger network function code module to perform related configuration of the trigger network; The trig_in stimulus generator is used to generate trig_in random stimulus to trigger the network function code module.

6. The system according to claim 5, characterized in that The base class of all test cases is used to randomize the verification environment configuration file and initialize the trigger network.

7. The system according to claim 1, characterized in that The verification top layer is used to integrate the environment components and the trigger network function code module, and connect the interaction signals between the environment components and the trigger network function code module.

8. A method for triggering network function verification based on assertion implemented in the system as claimed in claim 1, characterized in that: The method comprises: Build the top layer of the verification environment by integrating the verification environment configuration file, apb_vip module and trig_in stimulus generator; Build all test case base classes through the top layer of the integrated verification environment; Connect the trigger network function code module with the clock generation module, apb_vip module and trig_in stimulus generator through the clock port, apb bus port and trig_in port respectively, and connect the trigger network function code module with the assertion module through the trig_in port, trig_out port, filter port, trigger selection port and clock port; By verifying that the test case inherits all the test case base classes, a trigger network random configuration is constructed and a trig_in random stimulus is initiated to the trigger network function code module; The assertion module is used to verify the function of the trigger network based on the acquired signal.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method described in claim 8 are implemented.

10. 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 method described in claim 8 are implemented.