Verification method, device, equipment and medium based on DUT substitution model

By using DUT replacement models in chip development, parallel work of design and verification is realized, which solves the problem that design and verification cannot be parallelized in traditional methods, shortens verification time, and improves chip development efficiency.

CN113673189BActive Publication Date: 2024-10-01YUNHE ZHIWANG (SHANGHAI) TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202111053782.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-09
Publication Date
2024-10-01
Estimated Expiration
2041-09-09

AI Technical Summary

Technical Problem

In the traditional chip verification method, design and verification cannot be carried out in parallel, causing the verification work to wait for the RTL design to be completed, resulting in long verification time and affecting the overall chip development efficiency.

Method used

By establishing a DUT replacement model, verification is allowed when the design is not completed, and the functional association between the DUT replacement model and the completed design is used to achieve parallel work of design and verification.

Benefits of technology

It greatly shortens the overall time of verification work and design work, improves the efficiency of chip development, and avoids the problem of being unable to verify due to incomplete design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113673189B_ABST
    Figure CN113673189B_ABST
Patent Text Reader

Abstract

The present disclosure provides a verification method, device, equipment and medium based on a DUT substitution model, the method comprising: determining whether a first DUT is an unfinished design; in response to the first DUT being an unfinished design, verifying based on a DUT substitution model to obtain a first output signal; and verifying a second DUT based on the first output signal, the second DUT being functionally associated with the first DUT. According to the present disclosure, a parallel working mode of design work and verification work is realized, and verification work can be carried out without waiting for the RTL design to be completed, which greatly shortens the overall time of verification work and design work and effectively improves the efficiency of chip development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of verification, and in particular to a verification method, device and equipment based on a DUT substitution model. Background Art

[0002] Traditional chip verification work usually begins after designers provide mature, stable and self-tested register transfer level circuit RTL (Register Transfer Level) design code. However, this method of performing the two tasks sequentially takes a long time and ultimately affects the overall progress of the entire chip development work. Summary of the invention

[0003] In view of this, the purpose of the present disclosure is to propose a verification method, device, equipment and medium based on a DUT substitution model.

[0004] According to a first aspect of the present disclosure, a verification method based on a DUT substitution model is provided, comprising:

[0005] Determining whether the first DUT is an unfinished design;

[0006] In response to the first DUT being an unfinished design, performing verification based on a DUT replacement model to obtain a first output signal;

[0007] A second DUT is verified based on the first output signal, the second DUT being functionally associated with the first DUT.

[0008] Optionally, the DUT substitute model includes a reference model in a verification environment corresponding to the unfinished design.

[0009] Optionally, performing verification based on a DUT substitute model to obtain a first output signal includes:

[0010] In response to the first DUT being an unfinished design, setting the DUT substitute model to drive an output signal to an interface based on a configuration option;

[0011] Acquire a stimulus, and calculate an output signal of the DUT substitute model based on the stimulus and the DUT substitute model;

[0012] The output signal of the DUT substitute model is driven to the interface as the first output signal.

[0013] Optionally, verifying the second DUT based on the first output signal includes:

[0014] Determining whether the second DUT is an unfinished design;

[0015] In response to the second DUT being a completed design, setting the reference model corresponding to the second DUT based on the configuration options so that the output signal is not driven to the interface;

[0016] Using the first output signal as the input of the second DUT, and calculating a second output signal of the second DUT;

[0017] Calculate a second reference signal output by the second reference model based on the first output signal and the second reference model corresponding to the second DUT;

[0018] The second output signal is compared with the second reference signal to verify the correctness of the second DUT function.

[0019] Optionally, the method further comprises:

[0020] In response to the second DUT being an unfinished design, setting a reference model corresponding to the second DUT to drive an output signal to an interface based on a configuration option;

[0021] Calculate a third output signal based on the first output signal and a DUT substitute model corresponding to the second DUT;

[0022] The third output signal is driven to an interface as an output signal of the second DUT.

[0023] Optionally, the comparison between the second output signal and the second reference signal adopts sequential result comparison or out-of-order result comparison.

[0024] Optionally, the method further includes: in response to the first DUT being a completed design, performing verification based on the first DUT.

[0025] According to a second aspect of the present disclosure, a verification device based on a DUT substitution model is provided, comprising:

[0026] A detection module, used for determining whether the first DUT is an unfinished design;

[0027] The scoreboard is used for, in response to the first DUT being an unfinished design, performing verification based on a DUT substitute model to obtain a first output signal; and verifying a second DUT based on the first output signal, wherein the second DUT is functionally associated with the first DUT.

[0028] According to a third aspect of the present disclosure, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.

[0029] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect.

[0030] From the above, it can be seen that the verification method, device, equipment and medium based on the DUT substitution model provided by the present invention solves the problem that design and verification cannot be carried out in parallel in the traditional verification method by establishing a substitution model of the unfinished design, ensures that the verification work can continue when the entire design is not completed, avoids the inability to carry out verification work due to unfinished design, and realizes the parallel working mode of design work and verification work. Verification work can be carried out without waiting for the RTL design to be completed, which greatly shortens the overall time of verification work and design work and effectively improves the efficiency of chip development. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] Figure 1 A schematic structural diagram of a UVM verification platform;

[0033] Figure 2 is a schematic block diagram of the overall time period according to the embodiment of the present disclosure and the traditional method;

[0034] Figure 3 is a schematic structural diagram of a verification system based on a DUT substitution model according to an embodiment of the present disclosure;

[0035] Figure 4 is a schematic flow chart of a verification method based on a DUT substitution model according to an embodiment of the present disclosure;

[0036] Figure 5 is a schematic diagram of a scoreboard according to an embodiment of the present disclosure;

[0037] Figure 6 Schematic diagram of a verification device based on a DUT substitution model according to an embodiment of the present disclosure;

[0038] Figure 7 A schematic block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0040] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

[0041] UVM (Universal Verification Methodology) verification platform is a verification platform developed based on TLM (transaction-level methodology) communication. Figure 1 As shown, Figure 1 A schematic structural diagram of a UVM verification platform is shown. In order to verify the RTL design, i.e., DUT, the designers of the RTL must provide the RTL design that they think has been completed and that they think has no bugs to the verifier, and the verifier verifies based on the RTL design provided by the designers. Figure 1 The verification platform test in the verification test verifies the RTL design DUT to be verified through the interface interface. The verification personnel will complete the connection between the DUT provided by the designer and the verification environment provided by the verification platform test through the interface interface. Then, the functional characteristics of the corresponding DUT are extracted according to the design document, and the corresponding test cases are written according to the functional characteristics requirements and simulated and verified.

[0042] However, this kind of pipeline sequential chip development method will make the chip development period longer, especially when the development period is short and the verification personnel are limited, which will affect the time for the chip product to be launched on the market, and may even lead to missing the market window and causing economic losses. Therefore, how to shorten the overall time of verification and design work has become a technical problem that needs to be solved urgently.

[0043] In view of this, the embodiments of the present disclosure provide a verification method, apparatus, device and medium based on a DUT substitution model. By realizing a parallel working mode of design work and verification work, verification work can be carried out without waiting for the RTL design to be completed, which greatly shortens the overall time of verification work and design work and effectively improves the efficiency of chip development.

[0044] The present disclosure creatively discovered that the main reason why design work and verification work cannot be carried out in parallel in actual applications is that the huge design work cannot be completed by one person, and multiple designers are responsible for different parts. Then, the completion progress of each person is different, and the design of one part of the DUT will be completed while the design work of another part of the DUT will not be completed; and these unfinished DUTs may be functionally associated with the completed DUTs. For example, the verification of the completed DUT may require the output signal of the unfinished DUT as input, etc. Therefore, this makes it impossible to verify the connectivity of the completed DUT, which hinders the parallelization of the design work and the verification work. In other words, the completed DUT and the unfinished DUT are not independent of each other in function. Even for the completed DUT, the functional interaction verification on the traffic path cannot be performed. Therefore, the embodiments of the present disclosure creatively propose to replace these unfinished DUTs by establishing a DUT replacement model, and assist the verification personnel to achieve functional correlation with the completed DUT based on the DUT replacement model, so that the completed DUT can be verified before the entire design work is completed, thereby achieving parallel design and verification work. This can save a lot of time for the overall verification and design work, and improve the efficiency of the verification work. Furthermore, in the subsequent process, the designer will continuously provide the completed DUT to the verification personnel for verification. According to the verification method based on the DUT replacement model of the embodiments of the present disclosure, the previously used DUT replacement model can be continuously replaced with the completed DUT until all the design work is completed, and then the verification process is completed accordingly. It can be seen that the entire verification process and the design work can be completed almost synchronously, such as Figure 2 As shown, compared with the time period T2 of completing the design work and verification work sequentially in the traditional way, the time period T1 of the design work and verification work according to the embodiment of the present disclosure, T1<T2, greatly shortens the overall time period of the design work and verification work, which is beneficial to improving the efficiency of chip development.

[0045] See also Figure 3 , Figure 3 A schematic structural diagram of a verification system based on a DUT substitution model according to an embodiment of the present disclosure is shown. Figure 3 The verification system 300 in FIG. 3 can be used to implement the verification method based on the DUT substitution model according to the embodiment of the present disclosure. Figure 3 As shown, the verification system 300 includes: a verification platform 310, an interface 320, and the designs to be verified DUT330, 340, and 350. The verification platform 310 may include a scoreboard 311, and the scoreboard 311 includes a comparator 3111 and a reference model 3112. The functions of DUT330, 340, and 350 are related. The output signal DATA1 of DUT330 is used as the input of DUT340. After being processed by DUT340, DATA1 outputs a signal DATA2, and DATA2 is used as the input of DUT350. Among them, DUT330 and DUT350 are completed designs, and DUT340 is an unfinished design. If a traditional verification method is used, since DUT340 is not yet completed, DUT330, 340, and 350 cannot be jointly verified at this time.

[0046] According to an embodiment of the present disclosure, a verification method based on a DUT substitution model is provided. Figure 4 , Figure 4 A schematic flowchart of a verification method based on a DUT substitution model according to an embodiment of the present disclosure is shown. Figure 4 In the present invention, the verification method 400 based on the DUT substitute model includes:

[0047] Step S410, determining whether the first DUT is an unfinished design;

[0048] Step S420, in response to the first DUT being an unfinished design, performing verification based on a DUT replacement model to obtain a first output signal;

[0049] Step S430: verifying a second DUT based on the first output signal, where the second DUT is functionally associated with the first DUT.

[0050] Among them, for the unfinished first DUT, a DUT replacement model can be used to replace the first DUT for verification work, and a corresponding output result can be obtained, so as to use the output result to assist the verification work of the second DUT functionally associated with the unfinished first DUT, thereby ensuring that the verification work can be continued when the entire design is not completed, avoiding the inability to perform verification work due to unfinished design, and realizing the parallel working mode of design work and verification work. Verification work can be carried out without waiting for the RTL design to be completed, which greatly shortens the overall time of verification work and design work, and effectively improves the efficiency of chip development.

[0051] According to an embodiment of the present disclosure, in step S410, it is determined whether the first DUT is an unfinished design.

[0052] Among them, unfinished design means that the designer has not yet provided a design that he believes is correct and can be delivered to the verifier for verification. Specifically, Figure 3 As shown, it is possible to determine whether the DUT is an unfinished design by determining whether the interface 320 is connected to a DUT. If the DUT is a completed design, it should be connected to the verification platform 310 through the interface. If the DUT is an unfinished design, it does not need to be connected to the verification platform 310 through the interface, because for an unfinished design, its interface signal is controlled by the internal logic of the verification platform 310. For example, Figure 3 DUT330 and DUT350 in the figure are completed designs, so it can be seen that DUT330 and DUT350 need to be connected to the verification platform 310 through interface 320, while DUT340 is an unfinished design, so it will be replaced by the reference model 3112 corresponding to DUT340. At this time, it does not need to be connected to the verification platform 310 through interface 320 because the reference model 3112 is included in the verification platform 310.

[0053] In some embodiments, method 400 may further include:

[0054] In response to the first DUT being a completed design, verification is performed based on the first DUT.

[0055] Among them, for the completed design, verification can be performed directly based on the completed design. Specifically, Figure 3 If DUT330 and DUT350 in the design are completed, verification can be performed directly through DUT330 and DUT350 themselves.

[0056] According to an embodiment of the present disclosure, in step S420, in response to the first DUT being an unfinished design, verification is performed based on a DUT replacement model to obtain a first output signal.

[0057] In some embodiments, the DUT substitute model comprises a reference model in a verification environment corresponding to the unfinished design.

[0058] Among them, since the reference models corresponding to each DUT have been written in the verification environment, this type of reference model is used to check the calculation results. The reference model is used as a DUT replacement model to replace the unfinished DUT in the early stage to build a verification environment. It can avoid establishing a separate module to simulate the DUT. In this way, there will be a module and a reference model to simulate the DUT, which requires two codes, thereby reducing the efficiency of verification.

[0059] In some embodiments, performing verification based on a DUT substitute model to obtain a first output signal includes:

[0060] In response to the first DUT being an unfinished design, setting the DUT substitute model to drive an output signal to an interface based on a configuration option;

[0061] Acquire a stimulus, and calculate an output signal of the DUT substitute model based on the stimulus and the DUT substitute model;

[0062] The output signal of the DUT substitute model is driven to the interface as the first output signal.

[0063] The main difference between the reference model and the DUT is that the reference model does not drive the result of its operation to the interface, while the DUT drives the result of its operation to the interface. Therefore, the DUT can be replaced by obtaining the handle of the interface in the reference model and then driving the operation result to the interface.

[0064] In some embodiments, method 400 may further include:

[0065] In response to the first DUT being a completed design, the DUT substitute model is set to output a signal not driven to an interface based on a configuration option.

[0066] The disclosed embodiment switches whether to drive the operation result of the DUT substitute model to the interface through configuration options. In the disclosed embodiment, the reference model is switched between the reference model and the DUT substitute model through configuration options, thereby achieving dual functions of one code, realizing code reuse, and improving development efficiency.

[0067] According to the embodiment of the present disclosure, Figure 5 As shown, Figure 5 A schematic principle diagram of a scoreboard according to an embodiment of the present disclosure is shown. Figure 5 The scoreboard in may include: a reference model and a comparator. In the process of verifying the design to be verified, in order to check the correctness of the function of the design to be verified, the same stimulus can be sent to the design to be verified and the reference model respectively, and then the output of the reference model is used as a reference to determine whether the output of the design to be verified is consistent with the output of the reference model. If the outputs are consistent, it means that the function of the design to be verified is correct. If the outputs are inconsistent, it means that there may be problems with the function of the design to be verified. According to the embodiment of the present disclosure, the reference model and the scoreboard are implemented in the verification component scoreboard in a concise manner, which simplifies the connection of the ports in the verification platform component, that is, simplifies the communication between components, thereby achieving further improvement of development efficiency in module-level verification work. Combined with Figure 3According to the disclosed embodiment, a fusion reference model controlled by configuration options, a DUT replacement model, and a component structure with a scoreboard checking mechanism are added, thereby simplifying the work of verification personnel, thereby further improving the verification work efficiency and accelerating the progress of the project.

[0068] Specifically, if Figure 3 As shown, for the completed design DUT330, the reference model 3112 is set to output signals not driven to the interface based on the configuration options. At this time, the reference model 3112 serves as the reference model of the DUT330. A stimulus is sent to the DUT330 and the reference model 3112. The DUT330 calculates and outputs a calculation result A based on the stimulus, and the reference model 3112 calculates and outputs a reference result B based on the stimulus. The correctness of the result A is judged based on the reference result B. If A is consistent with B, the result A is correct and the function of the DUT330 is correct; if A is inconsistent with B, the result A is incorrect and the function of the DUT330 is incorrect, and troubleshooting is required.

[0069] For the unfinished design DUT340, the reference model 3112 is set to drive the output signal to the interface based on the configuration option. At this time, the reference model 3112 serves as the DUT substitute model of DUT340. The output signal DATA1 of DUT330 is used as the stimulus, and the DUT substitute model is input to calculate and output a calculation result DATA2, which serves as the output signal of the unfinished design DUT340. At this time, although the verification work of DUT340 cannot be completed, the problem of being unable to verify the associated DUT350 due to the unfinished DUT340 is avoided, and the verification work of the completed design can be continued, and the parallel processing of the two tasks of verification and design is realized, which improves the verification efficiency of the overall chip development. It can realize the purpose of simulating and running part of the RTL and the substitute model of the RTL together as needed, which greatly shortens the construction period and is conducive to the advancement of the project.

[0070] According to an embodiment of the present disclosure, in step S430, verifying the second DUT based on the first output signal includes:

[0071] Determining whether the second DUT is an unfinished design;

[0072] In response to the second DUT being a completed design, setting the reference model corresponding to the second DUT based on the configuration options so that the output signal is not driven to the interface;

[0073] Using the first output signal as the input of the second DUT, and calculating a second output signal of the second DUT;

[0074] Calculate a second reference signal output by the second reference model based on the first output signal and the second reference model corresponding to the second DUT;

[0075] The second output signal is compared with the second reference signal to verify the correctness of the second DUT function.

[0076] Specifically, similar to DUT330, for the completed design DUT350, the reference model 3112 is set to drive the output signal to the interface based on the configuration option, and the output signal DATA2 of DUT340 is used as the stimulus. At this time, the reference model 3112 serves as the reference model of DUT350. The stimulus DATA2 is sent to the DUT350 and the reference model 3112, and the DUT350 calculates and outputs a calculation result C based on the stimulus DATA2, and the reference model 3112 calculates and outputs a reference result D based on the stimulus DATA2. The correctness of the result C is judged based on the reference result D. If C is consistent with D, the result C is correct and the function of DUT350 is correct; if C is inconsistent with D, the result C is incorrect, the function of DUT350 is incorrect, and troubleshooting is required.

[0077] From this we can see that Figure 3 In the embodiment, among DUT330, DUT340, and DUT350 that are functionally related, DUT340 is an unfinished design. In the traditional verification method, verification can only be started after the design of DUT340 is completed. However, according to the embodiment of the present disclosure, by establishing an alternative model of the unfinished design, the problem that design and verification cannot be carried out in parallel in the traditional verification method is solved, and it is ensured that the verification work can be continued when the entire design is not completed, avoiding the inability to carry out verification work due to unfinished design, and realizing a parallel working mode of design work and verification work. Verification work can be carried out without waiting for the RTL design to be completed, which greatly shortens the overall time of verification work and design work, and effectively improves the efficiency of chip development.

[0078] In some embodiments, method 400 may further include:

[0079] In response to the second DUT being an unfinished design, setting a reference model corresponding to the second DUT to drive an output signal to an interface based on a configuration option;

[0080] Calculate a third output signal based on the first output signal and a DUT substitute model corresponding to the second DUT;

[0081] The third output signal is driven to an interface as an output signal of the second DUT.

[0082] Wherein, similar to the case where the first DUT is an unfinished design, when the second DUT is also an unfinished design, the output signal of the first DUT is used as input and the output signal of the second DUT is calculated based on the corresponding DUT replacement model.

[0083] In some embodiments, the comparison between the second output signal and the second reference signal adopts sequential result comparison or out-of-order result comparison. Further, in some embodiments, the sequential result comparison or out-of-order result comparison can be performed by a comparator in a scoreboard, such as Figure 3 Of the 3111.

[0084] In some embodiments, the comparator in the scoreboard uses a sequential result comparison, and the method 400 may further specifically include:

[0085] Step 1: declare the uvm_blocking_get_port ports req_port and rslt_port to receive the input stimulus transaction_req and dut operation result transaction_rslt from the monitor on the input and output interface respectively. Note that fifo needs to be used in the verification environment to complete the TLM communication connection between the monitor and the scoreboard.

[0086] Step 2: Get the configuration object cfg from the uvm_config_db configuration database, and choose whether to continue to get the interface of the output driver according to the configuration option add_rtl_model.

[0087] Step 3: Write and call the predictor method to calculate the expected result and write it into the expected queue.

[0088] Step 4: Determine whether to drive the expected result obtained by the operation to the output interface based on the configuration options, so as to quickly establish a replacement model of the DUT.

[0089] Step 5: Compare the expected result of the operation with the actual output of dut according to the configuration options.

[0090] Step 6: Finally check that the expected queue should be empty. If it is not empty, an error is reported.

[0091] Specifically, the example code of the method 400 using sequential result comparison may include:

[0092]

[0093]

[0094] In some embodiments, the comparator in the scoreboard uses out-of-order result comparison, and the method 400 may further specifically include:

[0095] Step 1: declare the uvm_blocking_get_port ports req_port and rslt_port to receive the input stimulus transaction_req and dut operation result transaction_rslt from the monitor on the input and output interface respectively. Note that fifo needs to be used in the verification environment to complete the TLM communication connection between the monitor and the scoreboard.

[0096] Step 2: Get the configuration object cfg from the uvm_config_db configuration database, and choose whether to continue to get the interface of the output driver according to the configuration option add_rtl_model.

[0097] Step 3: Write and call the predictor method to calculate the expected result, and then use the calculated ID information to find out whether there is a corresponding transaction in the act_q queue of the actual operation result of dut. If it exists, compare it according to the configuration options. If it does not exist, write the expected result into the exp_q expected queue.

[0098] Step 4: Determine whether to drive the expected result obtained by the operation to the output interface based on the configuration options, so as to quickly establish a replacement model of the DUT.

[0099] Step 5: Compare the expected result of the operation with the actual output result of dut according to the configuration options. This is similar to the third step above. Check whether there is a corresponding transaction in the expected queue exp_q according to the id. If it exists, compare it according to the configuration options. If not, write the actual result of dut into the actual result queue act_q.

[0100] Step 6: Finally check whether the above two queues are empty. If not, an error is reported.

[0101] Specifically, the example code of the method 400 using out-of-order result comparison may include:

[0102]

[0103]

[0104] Therefore, according to the embodiments of the present disclosure, according to the embodiments of the present disclosure, a replacement model of the DUT can be quickly established, and the standardized method of the scoreboard can be applied to conveniently meet the comparison of sequential results and out-of-order results, thereby greatly improving the verification efficiency and shortening the chip project schedule.

[0105] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0106] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0107] According to an embodiment of the present disclosure, corresponding to any of the above-mentioned embodiments and methods, the present disclosure further provides a verification device based on a DUT replacement model. Figure 7 , the verification device based on the DUT substitution model comprises:

[0108] A detection module, used for determining whether the first DUT is an unfinished design;

[0109] The scoreboard is used for, in response to the first DUT being an unfinished design, performing verification based on a DUT substitute model to obtain a first output signal; and verifying a second DUT based on the first output signal, wherein the second DUT is functionally associated with the first DUT.

[0110] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0111] The device of the above embodiment is used to implement the corresponding verification method based on the DUT substitution model in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0112] According to an embodiment of the present disclosure, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the verification method based on the DUT substitution model described in any of the above embodiments is implemented.

[0113] Figure 7 A schematic block diagram of an electronic device according to an embodiment of the present disclosure is shown. The device may include: a processor 710, a memory 720, an input / output interface 730, a communication interface 740, and a bus 750. The processor 710, the memory 720, the input / output interface 730, and the communication interface 740 are connected to each other in communication within the device through the bus 750.

[0114] The processor 710 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0115] The memory 720 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 720 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 720 and are called and executed by the processor 710.

[0116] The input / output interface 730 is used to connect the input / output module to realize information input and output. The input / output module can be configured as a component in the device (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0117] The communication interface 740 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0118] The bus 750 comprises a pathway that transmits information between the various components of the device (eg, the processor 710 , the memory 720 , the input / output interface 730 , and the communication interface 740 ).

[0119] It should be noted that, although the above device only shows the processor 710, the memory 720, the input / output interface 730, the communication interface 740 and the bus 750, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0120] The electronic device of the above embodiment is used to implement the corresponding verification method based on the DUT substitution model in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0121] According to an embodiment of the present disclosure, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the verification method based on the DUT substitution model as described in any of the above embodiments.

[0122] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0123] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the verification method based on the DUT substitution model as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0124] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.

[0125] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0126] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0127] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A verification method based on a DUT substitute model, comprising: Determining whether the first DUT is an unfinished design; In response to the first DUT being an unfinished design, performing verification based on a DUT replacement model to obtain a first output signal; verifying a second DUT based on the first output signal, the second DUT being functionally associated with the first DUT; Verification is performed based on the DUT substitute model to obtain the first output signal, including: In response to the first DUT being an unfinished design, setting the DUT substitute model to drive an output signal to an interface based on a configuration option; Acquire a stimulus, and calculate an output signal of the DUT substitute model based on the stimulus and the DUT substitute model; driving the output signal of the DUT substitute model to the interface as the first output signal; Verifying the second DUT based on the first output signal includes: Determining whether the second DUT is an unfinished design; In response to the second DUT being a completed design, setting the reference model corresponding to the second DUT based on the configuration options so that the output signal is not driven to the interface; Using the first output signal as the input of the second DUT, and calculating a second output signal of the second DUT; Calculate a second reference signal output by the second reference model based on the first output signal and the second reference model corresponding to the second DUT; Comparing the second output signal with the second reference signal to verify the correctness of the second DUT function; Comparing the second output signal with the second reference signal using sequential result comparison or out-of-order result comparison; In response to the second DUT being an unfinished design, setting a reference model corresponding to the second DUT to drive an output signal to an interface based on a configuration option; Calculate a third output signal based on the first output signal and a DUT substitute model corresponding to the second DUT; driving the third output signal to an interface as an output signal of the second DUT; Sequential result comparison methods include: Declare the uvm_blocking_get_port ports req_port and rslt_port to receive the input stimulus transaction_req and the DUT operation result transaction_rslt from the monitor on the input and output interface respectively. Note that fifo needs to be used in the verification environment to complete the TLM communication connection between the monitor and the scoreboard; Get the configuration object cfg from the uvm_config_db configuration database, and choose whether to continue to obtain the interface of the output driver according to the configuration option add_rtl_model; Write and call the predictor method to calculate the expected result and write it into the expected queue; Determine whether to drive the expected result of the operation to the output interface based on the configuration options, so as to quickly establish a substitute model of the DUT; Compare the expected results of the operation with the actual output results of the DUT according to the configuration options; Finally, check whether the expected queue is empty, and report an error if it is not empty; The out-of-order result comparison methods include: Declare the uvm_blocking_get_port ports req_port and rslt_port to receive the input stimulus transaction_req and the DUT operation result transaction_rslt from the monitor on the input and output interface respectively. Note that fifo needs to be used in the verification environment to complete the TLM communication connection between the monitor and the scoreboard; Get the configuration object cfg from the uvm_config_db configuration database, and choose whether to continue to obtain the interface of the output driver according to the configuration option add_rtl_model; Write and call the predictor method to calculate the expected result, and then find out whether there is a corresponding transaction in the act_q queue of the actual operation result of the DUT based on the calculated id information. If it exists, compare it according to the configuration options. If it does not exist, write the expected result into the exp_q expected queue. Determine whether to drive the expected result of the operation to the output interface based on the configuration options, so as to quickly establish a substitute model of the DUT; Compare the expected result of the operation with the actual output result of the DUT according to the configuration options, and check whether there is a corresponding transaction in the expected queue exp_q according to the id. If it exists, compare it according to the configuration options. If not, write the actual result of the DUT into the actual result queue act_q; Finally, check whether the above act_q queue and exp_q queue are empty. If not, an error is reported.

2. The method according to claim 1, wherein: The DUT substitute model includes a reference model in a verification environment corresponding to the unfinished design.

3. The method according to claim 1, further comprising: In response to the first DUT being a completed design, verification is performed based on the first DUT.

4. A verification device based on a DUT substitute model, comprising: A detection module, used for determining whether the first DUT is an unfinished design; A scoreboard, configured to, in response to the first DUT being an unfinished design, perform verification based on a DUT substitute model to obtain a first output signal; and verifying a second DUT based on the first output signal, the second DUT being functionally associated with the first DUT; Verification is performed based on the DUT substitute model to obtain the first output signal, including: In response to the first DUT being an unfinished design, setting the DUT substitute model to drive an output signal to an interface based on a configuration option; Acquire a stimulus, and calculate an output signal of the DUT substitute model based on the stimulus and the DUT substitute model; driving the output signal of the DUT substitute model to the interface as the first output signal; Verifying the second DUT based on the first output signal includes: Determining whether the second DUT is an unfinished design; In response to the second DUT being a completed design, setting the reference model corresponding to the second DUT based on the configuration options so that the output signal is not driven to the interface; Using the first output signal as the input of the second DUT, and calculating a second output signal of the second DUT; Calculate a second reference signal output by the second reference model based on the first output signal and the second reference model corresponding to the second DUT; Comparing the second output signal with the second reference signal to verify the correctness of the second DUT function; Comparing the second output signal with the second reference signal using sequential result comparison or out-of-order result comparison; In response to the second DUT being an unfinished design, setting a reference model corresponding to the second DUT to drive an output signal to an interface based on a configuration option; Calculate a third output signal based on the first output signal and a DUT substitute model corresponding to the second DUT; driving the third output signal to an interface as an output signal of the second DUT; Scoreboard, also used for sequential result comparison, methods include: Declare the uvm_blocking_get_port ports req_port and rslt_port to receive the input stimulus transaction_req and the DUT operation result transaction_rslt from the monitor on the input and output interface respectively. Note that fifo needs to be used in the verification environment to complete the TLM communication connection between the monitor and the scoreboard; Get the configuration object cfg from the uvm_config_db configuration database, and choose whether to continue to obtain the interface of the output driver according to the configuration option add_rtl_model; Write and call the predictor method to calculate the expected result and write it into the expected queue; Determine whether to drive the expected result of the operation to the output interface based on the configuration options, so as to quickly establish a substitute model of the DUT; Compare the expected results of the operation with the actual output results of the DUT according to the configuration options; Finally, check whether the expected queue is empty, and report an error if it is not empty; The scoreboard is also used for out-of-order result comparison. The methods include: Declare the uvm_blocking_get_port ports req_port and rslt_port to receive the input stimulus transaction_req and the DUT operation result transaction_rslt from the monitor on the input and output interface respectively. Note that fifo needs to be used in the verification environment to complete the TLM communication connection between the monitor and the scoreboard; Get the configuration object cfg from the uvm_config_db configuration database, and choose whether to continue to obtain the interface of the output driver according to the configuration option add_rtl_model; Write and call the predictor method to calculate the expected result, and then find out whether there is a corresponding transaction in the act_q queue of the actual operation result of the DUT based on the calculated id information. If it exists, compare it according to the configuration options. If it does not exist, write the expected result into the exp_q expected queue. Determine whether to drive the expected result of the operation to the output interface based on the configuration options, so as to quickly establish a substitute model of the DUT; Compare the expected result of the operation with the actual output result of the DUT according to the configuration options, and check whether there is a corresponding transaction in the expected queue exp_q according to the id. If it exists, compare it according to the configuration options. If not, write the actual result of the DUT into the actual result queue act_q; Finally, check whether the above act_q queue and exp_q queue are empty. If not, an error is reported.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 3 when executing the program. 6 . A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to claim 1 .

Citation Information

Cited By

  • Seamless universal verification methodology

    US12724070B1