Verification system and method, storage medium, and verification platform based on UVM and C model
By combining UVM and C model verification system, the problems of poor verification program reusability and low reliability of verification results in traditional chip verification methods are solved, achieving efficient and reliable chip verification, reducing costs and time.
Patent Information
- Application Number
- CN202410425623.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-04-10
AI Technical Summary
In the traditional chip verification method, the C model-based verification program has poor reusability, resulting in a long verification cycle; while the verification based on the UVM platform cannot fully simulate the real CPU behavior, resulting in a decrease in the reliability of the verification results.
A verification system based on UVM and C model is used to generate test excitation signals through C model and UVM to verify the chip design. Combining the advantages of both ensures the accuracy and reliability of the verification results and improves the reliability of the verification system. Reusability and efficiency.
While ensuring the accuracy and reliability of the verification results, the verification cost is reduced, the verification efficiency is improved, the reusability of the verification system is enhanced, and the hidden dangers of later development and testing are reduced.
Smart Images

Figure CN118036525B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip verification, and in particular to a verification system and method based on UVM and C model, a storage medium, and a verification platform. Background Art
[0002] Chip verification is an indispensable step in chip development. Traditional chip verification methods mainly include two methods: generating stimuli based on the C model and generating stimuli through sequences based on the UVM (Universal Verification Methodology) platform. In the process of system verification, if all design verifications are verified only using the stimuli generated by the C model, a large number of test cases need to be developed if a high functional coverage is required due to the poor reusability of the verification program, which leads to a long verification cycle and poor returns. If all design verifications are verified only using the UVM platform to generate stimuli, although the verification program has strong reusability, it cannot completely simulate the real CPU (Central Processing Unit) action behavior, which leads to a decrease in the reliability of the verification results, leaving hidden dangers for later R&D tests. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the first object of the present invention is to propose a verification system based on UVM and C model, by which chip design is verified by C model and / or UVM, while ensuring the accuracy and reliability of the verification result, the reusability of the verification system is ensured, the verification cost is reduced, and the verification efficiency is improved.
[0004] The second object of the present invention is to propose a verification method based on UVM and C model.
[0005] A third object of the present invention is to provide a computer-readable storage medium.
[0006] A fourth objective of the present invention is to provide a verification platform.
[0007] To achieve the above-mentioned purpose, an embodiment of a first aspect of the present invention proposes a verification system based on UVM and C model, wherein the C model includes a first scoreboard and a register sub-model, and the UVM includes a master agent component, a slave agent component, a sequence, a reference model and a second scoreboard, wherein the first scoreboard is connected to the reference model, the register sub-model is connected to the sequence, and the master agent component and the slave agent component are respectively connected to DUV (Design Under Verification), and the DUV includes DUT (Design Under Test), and the UVM is used to: according to different DUTs, use the first test stimulus signal generated by the C model and / or the second test stimulus signal generated by the sequence to test, and then feed back the result of the DUT after the test to the first scoreboard and / or the second scoreboard for comparison with the output result of the reference model to obtain a verification result.
[0008] In the verification system based on UVM and C model in the embodiment of the present invention, both UVM and C model can generate test stimulus signals to verify the DUT, so as to ensure the accuracy and reliability of the verification result while ensuring the reusability of the verification system, reducing the verification cost and improving the verification efficiency.
[0009] In some embodiments of the present invention, the C model further includes a converter, which is disposed between the register sub-model and the sequence and is used to convert the register information of the register sub-model to drive the sequence to generate the first test stimulus signal.
[0010] In some embodiments of the present invention, the master agent component includes a sequence generator, a driver and a first monitor, the sequence generator is connected to the sequence and the driver respectively, the driver and the first monitor are connected to the DUV respectively, the sequence generator feeds back the first test excitation signal and / or the second test excitation signal generated by the sequence to the driver according to the request of the driver, so as to test the DUT through the driver; the first monitor is connected to the DUV, and is used to collect and monitor the results of the DUT after testing and feed them back to the first scoreboard and / or the second scoreboard through the reference model.
[0011] In some embodiments of the present invention, the slave agent component includes a second monitor, which is connected to the DUV and is used to collect and monitor the test results of the DUT and feed them back to the first scoreboard and / or the second scoreboard.
[0012] In some embodiments of the present invention, the UVM also includes an interface, which is respectively connected to the master agent component, the slave agent component and the DUV, so that the DUV can receive the first scoreboard and / or the second scoreboard sent by the master agent component through the interface, and feed back the test results to the master agent component and the slave agent component.
[0013] In some embodiments of the present invention, the architecture of the verification system includes a configuration directory, other directories, a file list and a source directory, and the source directory includes a CPU code, an environment, a model, a scenario, a test top level, a UVM verification component and a virtual sequence secondary subdirectory.
[0014] To achieve the above-mentioned purpose, the second aspect of the present invention proposes a verification method based on UVM and C model, which is applied to the verification system based on UVM and C model in any of the above-mentioned embodiments, and the method includes: starting the sequence, and controlling the DUV to load the hex file corresponding to the C model; determining that the C model generates the first test excitation signal and / or the sequence generates the second test excitation signal according to different DUTs; testing the DUT in the DUV according to the first test excitation signal and / or the second test excitation signal to obtain a test result; comparing the test result with the output result of the reference model through the first scoreboard and / or the second scoreboard to obtain a verification result.
[0015] The verification method based on UVM and C model in the embodiment of the present invention applied to the above embodiment first starts the sequence in UVM and controls DUV to load the corresponding hex file in the C model, then generates a first test excitation signal and / or a second test excitation signal, and then inputs the generated test excitation signal into DUV to test the DUT to obtain a test result, and compares the test result with the output result of the reference model through the first scoreboard and / or the second scoreboard to obtain a verification result, thereby completing the verification work, and being able to ensure the accuracy and reliability of the verification result while ensuring the reusability of the verification system, reducing the verification cost and improving the verification efficiency.
[0016] In some embodiments of the present invention, the method further comprises: synchronizing the UVM and the C model to determine an output order of the verification result corresponding to the first scoreboard and the verification result corresponding to the second scoreboard.
[0017] In some embodiments of the present invention, the method further includes: when it is determined that the DUT has failed verification based on the verification result, locating the fault of the DUT to determine a fault location result; adjusting the DUT based on the fault location result, and re-verifying the adjusted DUT until the DUT passes verification.
[0018] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a computer-readable storage medium on which a verification program based on UVM and C model is stored. When the verification program based on UVM and C model is executed by a processor, the verification method based on UVM and C model described in the above embodiment is implemented.
[0019] The computer-readable storage medium of the embodiment of the present invention can ensure the accuracy and reliability of the verification results while ensuring the reusability of the verification system, reducing the verification cost and improving the verification efficiency through the verification method based on UVM and C model in the above embodiment.
[0020] To achieve the above objectives, a fourth aspect of the present invention provides a verification platform, including the verification system based on UVM and C model described in the above embodiments.
[0021] The verification platform of the embodiment of the present invention can ensure the accuracy and reliability of the verification results while ensuring the reusability of the verification system, reducing the verification cost and improving the verification efficiency through the verification system based on UVM and C model in the above embodiment.
[0022] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of a verification system based on UVM and C model in one embodiment of the present invention;
[0024] Figure 2 It is a schematic diagram of a verification system program architecture based on UVM and C model in one embodiment of the present invention;
[0025] Figure 3 It is a flow chart of a verification method based on UVM and C model in one embodiment of the present invention;
[0026] Figure 4 It is a flow chart of a verification method based on UVM and C model in a specific embodiment of the present invention;
[0027] Figure 5 It is a schematic diagram of the structure of the verification platform in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0029] The following describes a verification system and method based on UVM and C model, a storage medium, and a verification platform according to an embodiment of the present invention with reference to the accompanying drawings.
[0030] The main verification methods of CPU SOC (System on Chip) are based on C language to generate stimulus and based on UVM platform to generate stimulus through sequence. In the C language to generate stimulus, because the CPU uses real RTL (Register Transfer Level) code and gate-level netlist, the CPU can simulate the real working scene to complete the reading and writing operations of instructions, and there is no distortion to cause errors in post-simulation verification. However, the verification system designed in this way has poor reusability. At the same time, due to the poor randomness of the stimulus, in order to achieve a high functional coverage rate, a large number of test cases need to be developed, and there is a problem of incomplete coverage of corner cases, a long verification development cycle, and poor benefits. The method of generating stimulus through the UVM platform has strong reusability of the platform. Due to the use of VIP (Verification Intellectual Property core) testing, the simulation verification of the CPU is far from the real model, and the real CPU action behavior cannot be fully simulated, and the reliability of the verification result is reduced. When the post-simulation needs to insert delay information and test chains, the real CPU gate-level netlist is introduced. The time and manpower costs of debugging and solving problems are huge, leaving hidden dangers for the subsequent R&D tests to be completed on time and with quality.
[0031] Since RISC-V (Reduced Instruction Set Computer-V) architecture is a relatively new processor, in order to improve the reliability and accuracy of verification, reusability, speed and flexibility are taken into account at the same time. The verification system based on UVM and C model proposed in the present invention can combine the two verification methods to generate incentives to complete verification, and give full play to the advantages of both to jointly complete the SOC verification of RISC V processor. The verification system uses a real CPU to replace the VIP model, thereby ensuring the accuracy of verification. By generating incentives through the C model, it is possible to flexibly increase and cut test cases. The coupling degree between different test cases is low, and independent design can be unaffected; by adopting UVM to develop and verify test cases, the reusability of the system is significantly enhanced. The development of SOC chips is based on a large number of IP reuse integrations, so the introduction of the UVM environment can ensure that the verification work is completed in a timely and efficient manner.
[0032] Figure 1 It is a schematic diagram of a verification system based on UVM and C model in one embodiment of the present invention.
[0033] like Figure 1 As shown, the present invention proposes a verification system based on UVM and C model, the C model includes a first scoreboard scoreboard1 and a register sub-model Register Model, the UVM includes a master agent component master agent, a slave agent component slave agent, a sequence sequence, a reference model ref-model and a second scoreboard scoreboard2, wherein the first scoreboard scoreboard1 is connected to the reference model ref-model, the register sub-model Register Model is connected to the sequence sequence, and the master agent component master agent and the slave agent component slave agent are respectively connected to DUV, the DUV includes DUT, and the UVM is used for: testing according to different DUTs using a first test stimulus signal generated by the C model and / or a second test stimulus signal generated by the sequence sequence, and then feeding back the test result of the DUT to the first scoreboard scoreboard1 and / or the second scoreboard scoreboard2 for comparison to obtain a verification result.
[0034] Specifically, the verification system in this embodiment includes a C model and UVM_ENV (UVM Environment), the C model includes a first scoreboard scoreboard1 and a register sub-model Register Model that are connected to each other, and UVM includes a master agent component, a slave agent component, a sequence sequence, a reference model ref-model, and a second scoreboard scoreboard2. The connection relationship between the C model and each model component in the UVM_ENV environment can be seen in Figure 1 As shown specifically. It should be noted that the verification stimulus is developed using C language. Specifically, the C language stimulus is stored in the CPU code directory cpucode, compiled through makefile to generate a hex file, and then the parameters are configured in the ip_case.cfg file. At the same time, the pre-simulation instructions after power-on are written to load the hex file into the corresponding memory through BOOT. After the system is powered on and reset, the CPU can fetch values from the memory to execute the stimulus for simulation. The constrained random stimulus generated by the System Verilog language corresponding to the UVM verification environment is specifically explained by writing test cases with system function test points. The corresponding sequence sequence is developed according to the various functions of different IPs in the scenario directory scen. By declaring and assigning values to the variables therein, a large number of different stimuli can be generated. The sequencer inherits from the uvm_sequencer sequencer and is the component directly connected to the UVM environment among the stimulus-related components. The transaction (incentive) is generated in the sequence, and then transmitted to the driver component driver through the sequencer. The sequencer mounts the corresponding sequence and connects to the driver driver in the master agent component.
[0035] More specifically, in the process of verifying different DUTs, appropriate stimulus can be selected. Not all DUTs require both the first test stimulus signal and the second test stimulus signal. Therefore, the present embodiment can first judge the DUT, and then generate the first test stimulus signal and / or the second test stimulus signal according to the type of the DUT, and then use the generated first test stimulus signal and / or the second test stimulus signal to test the DUT to obtain the test result, and then compare the test result through the first scoreboard scoreboard1 and / or the second scoreboard scoreboard2 to obtain the verification result of the DUT. That is to say, in the process of verifying the DUT, the present embodiment can decide to use the first test stimulus signal or the second test stimulus signal or both stimulus signals at the same time, and in the process of obtaining the test result and verifying it, it can also choose to use the first scoreboard scoreboard1 or the second scoreboard scoreboard2 or both scoreboards at the same time. Optionally, the first test stimulus signal generated by the C model can be a register read and write operation, CPU operating status configuration, interrupt program test and cache function test, etc., wherein the CPU operating status includes normal operating mode, sleep mode and low power consumption operating mode, etc., and the interrupt program test includes interrupt priority and interrupt nesting tests.
[0036] The general verification case in this embodiment includes a DUV component, the DUV includes a DUT and a RISC V processor, and the UVM also includes an interface interface, the interface interface is respectively connected to the master agent component master agent, the slave agent component slave agent and the DUV, so that the DUV can receive the first scoreboard scoreboard1 and / or the second scoreboard scoreboard2 sent by the master agent component master agent through the interface interface, and feedback the test result to the master agent component masteragent and the slave agent component slave agent. The C model generates a first test stimulus signal and completes the comparison of part of the data, and UVM_ENV realizes the interactive link with the DUT and AHB (Advanced High-performance Bus, high-speed bus) / APB (Advanced Peripheral Bus, low-speed bus) through the interface interface Proj_task_if, and the C model also includes an adapter adapter, which is set between the register sub-model Register Model and the sequence sequence, and is used to convert the registered information of the register sub-model Register Model to drive the sequence sequence to generate the first test stimulus signal.
[0037] Specifically, the C model can drive the sequence through the adapter, and the sequencer in UVM_ENV can also directly start the sequence. The sequencer feeds back the transaction-level stimulus generated by the sequence to the driver according to the request of the driver, and the driver implements the DUT signal input through the interface (specifically, the Proj_task_if interface).
[0038] like Figure 1 As shown, in this embodiment, the master agent component master agent includes a sequencer, a driver driver and a first monitor monitor1, the sequencer is connected to the sequence sequence and the driver driver respectively, the driver driver and the first monitor monitor1 are connected to the DUV respectively, the sequencer feeds back the first test excitation signal and / or the second test excitation signal generated by the sequence sequence to the driver driver according to the request of the driver driver, so as to test the DUT through the driver driver; the first monitor monitor1 is connected to the DUV, and is used to collect and monitor the results of the DUT after the test and feed them back to the first scoreboard scoreboard1 and / or the second scoreboard scoreboard2 through the reference model ref-model. The slave agent component slave agent includes a second monitor monitor2, and the second monitor monitor2 is connected to the DUV, and is used to collect and monitor the results of the DUT after the test and feed them back to the first scoreboard scoreboard1 and / or the second scoreboard scoreboard2.
[0039] Specifically, the first monitor monitor1 and the second monitor monitor2 can be used to complete the acquisition and monitoring of interface signals, and at the same time, the pin-level data is packaged into transaction-level data packets and sent to the reference model ref_model and the scoreboard respectively, to complete the inspection of bus timing, DUT internal functions, etc. and the collection of coverage. In addition, for some special verification use cases, such as read and write operations on RAM (Random Access Memory), the scoreboard can obtain memory data by operating the CPU. Compared with the data directly generated by the DUT, this method corresponds to a deeper data link and a more complete verification, so the verification result is more reliable.
[0040] In some embodiments of the present invention, Figure 2As shown, the architecture of the verification system includes the configuration directory cfg, other directories etc, the file list vc and the source directory src. The source directory src includes the central processing unit code cpucode, the environment env, the model model, the scene scen, the test top level tb, the UVM verification component uvc and the virtual sequence vseq secondary subdirectory.
[0041] Specifically, the program architecture of the verification system in this embodiment can be Figure 2 Indicates that the verification system can specifically include the configuration directory cfg, other directories etc, file list vc and source directory src. Among them, the configuration directory cfg defines the verification case name, various configurations used in the verification simulation process, and the list of regression cases for pre-simulation and post-simulation. The configuration includes tools, compilation parameters, simulation parameters, macro definitions, IP names, log keyword filtering, VIP settings and other configuration files. Other directories etc are used to place tool configuration files eda, such as VCS (Verilog Compiled Simulator), verdi rc files, upf files, etc.; the file list vc contains the file list information used by rtl and pri_simulation pre-simulation and post_simulation post-simulation. The source directory src contains the central processing unit code cpucode, environment env, model model, scenario scen, test top level tb, UVM verification component uvc, and virtual sequence vseq secondary subdirectories. Among them, the central processing unit code subdirectory cpucode is used to store source code, header files, various log files, etc. related to the C model; the environment subdirectory env is used to store package, config files, connection codes between dut and interface interface, and definition codes of sequencer and monitor monitor; the model subdirectory model stores external memory model and bfm model; the scenario subdirectory scen is used to store sequence files of all verification cases; the test top level subdirectory tb includes the top level files of the test top level testbench, interface interface files, waveform fsdbdump files, etc.; the UVM verification component subdirectory uvc file list is used to store common codes such as package, agent, sequence item, etc.; the virtual sequence subdirectory vseq is used to store all basic stimulus class libraries and common stimulus codes.
[0042] The architecture of the subdirectory in this embodiment ensures the reusability of the system, wherein the configuration information mainly configures the stimulus parameters, simulation parameters, etc., and is filled in according to the key fields required by the script; the UVM platform includes the testb test top-level ench top-level, dut instantiation, interface file proj_task_if, waveform loading fsdbdump, etc.; the source code directory contains the sv test platform test top-level testbench, C model stimulus and compilation environment cpucode central processing unit code, sequence sequence for generating stimulus and completing assertion transactions, and passing the generated random transaction data to the sequencer sequencer of the driver driver, as well as the component environment environment, UVM verification component uvc, etc.
[0043] Figure 3 It is a flow chart of a verification method based on UVM and C model in one embodiment of the present invention.
[0044] like Figure 3 As shown, the present invention proposes a verification method for the verification system based on UVM and C model in the above embodiment, and the method comprises the following steps:
[0045] S301, start the sequence, and control DUV to load the hex file corresponding to the C model.
[0046] S302, determining a C model to generate a first test stimulus signal and / or a sequence to generate a second test stimulus signal according to different DUTs.
[0047] S303, testing the DUT in the DUV according to the first test excitation signal and / or the second test excitation signal to obtain a test result.
[0048] S304: Compare the test result with the output result of the reference model through the first scoreboard scoreboard1 and / or the second scoreboard scoreboard2 to obtain a verification result.
[0049] Specifically, in this embodiment, the verification test case can be started by a simulation command, and after the simulation is started, UVM will start the sequence sequence, and the RISC V processor will load the hex file generated by the C model through SRAM, and generate a test stimulus signal at the same time, wherein the C model generates a first test stimulus signal, and the sequence sequence generates a second test stimulus signal. After generating the first test stimulus signal and the second test stimulus signal, the test case DUT can be tested using the first test stimulus signal and the second test stimulus signal to obtain the test result, and then the test result is collected and sent to the first scoreboard scoreboard1 and the second scoreboard scoreboard2 through the first monitor monitor1 and the second monitor monitor2, and the test result is compared by the first scoreboard scoreboard1 and the second scoreboard scoreboard2, so as to obtain the verification result. When all single verification test cases pass, regression testing can be carried out and coverage can be further collected, and the final regression list converges, and the coverage meets the verification scheme requirements.
[0050] In this embodiment, the verification method based on UVM and C model further includes: synchronizing the UVM and C model to determine the output order of the verification result corresponding to the first scoreboard scoreboard1 and the verification result corresponding to the second scoreboard scoreboard2.
[0051] Specifically, since UVM and C model involve sequential execution issues, for example, the C model needs to configure the registers first before the simulation will take effect, or the C model performs a comparison check after the simulation prints the comparison data to a file, the UVM and C model need to be synchronized and the synchronization flag is set. When both the C model and UVM are executed, the simulation ends.
[0052] It should be noted that not every test case needs to be verified using two test stimulus signals, and the first test stimulus signal generated by the C model can output the verification result through the first scoreboard scoreboard1, and can also output the verification result through the second scoreboard scoreboard2. Of course, the second test stimulus signal generated by UVM can also output the verification result on the first scoreboard scoreboard1 and / or the second scoreboard scoreboard2.
[0053] Due to the serial characteristics of C language and the parallel characteristics of System Verilog, the debugging methods of the two stimulus methods are different. C language is more convenient to add breakpoints and print information. According to the log, the specific process of the current simulation execution can be quickly located. System Verilog is more convenient to quickly locate timing problems through waveform information. Performing hardware and software collaborative verification of the DUT function by combining UVM and C, and synchronously analyzing logs and simulation waveforms can improve verification efficiency, shorten verification cycles, and provide strong support for timely chip tape-out and mass production.
[0054] In some embodiments of the present invention, the verification method based on UVM and C model also includes: when it is determined that the DUT has not passed the verification according to the verification result, locating the fault of the DUT to determine the fault location result; adjusting the DUT according to the fault location result, and re-verifying the adjusted DUT until the DUT passes the verification.
[0055] Specifically, the verification results can be used to confirm whether the test case has passed the verification. In the early stage of debugging, a large number of C model printing nodes and ucm_info output simulation information can be designed to locate whether the test case has been executed. In the later stage, Verdi can be used to view waveforms to locate timing, data comparison and other errors, so as to determine whether the problem belongs to design or verification, and further modify the corresponding error code until the verification test case passes.
[0056] In a specific embodiment, Figure 4As shown, case in the present embodiment is that the test case name is consistent with the ip_case.cfg definition in the configuration directory cfg, and define defines the macro that the simulation needs to be specially called, and the macro is applied to the debugging stage, and case is fixed to the ip_case.cfg file after passing. After completing the operations such as naming and debugging of the relevant files, the simulation command is started, and UVM can start the sequence sequence afterwards, and the processor can load the hex file generated by the C model, and then generate the corresponding test stimulus signal, that is, the C model generates the first test stimulus signal, and UVM generates the second test stimulus signal. Afterwards, based on the serial characteristics of C language and the parallel characteristics of System Verilog, the component build_phase can be executed in sequence by UVM phase, and then the components main_phase and connect_phase are executed in sequence, and the C model performs the read-write operation and data comparison verification of the register. UVM and C model are then synchronously processed to obtain verification results, and then the simulation of the current test case is terminated. Determine whether the current test case has passed the verification based on the verification results. If it fails, debug based on the log file and fsdb waveform, and then locate whether the problem is in the test case or verification file. Then modify the code of the test case or the code of the verification file based on the location result, and then re-simulate until all verification test cases pass, or the coverage of the verified test cases meets the corresponding requirements. For example, if the coverage of the verified test cases is greater than 90%, it means that the verification is passed.
[0057] In summary, the verification method based on UVM and C model in the embodiment of the present invention verifies the chip design through the C model and / or UVM, which can ensure the accuracy and reliability of the verification result while ensuring the reusability of the verification system, reduce the verification cost, and improve the verification efficiency.
[0058] Furthermore, the present invention also proposes a computer-readable storage medium on which a verification program based on UVM and C model is stored. When the verification program based on UVM and C model is executed by a processor, the verification method based on UVM and C model in any of the above embodiments is implemented.
[0059] The computer-readable storage medium of the embodiment of the present invention can ensure the accuracy and reliability of the verification results while ensuring the reusability of the verification system, reducing the verification cost and improving the verification efficiency through the verification method based on UVM and C model in the above embodiment.
[0060] Figure 5 It is a schematic diagram of the structure of the verification platform in an embodiment of the present invention.
[0061] like Figure 5As shown, the present invention proposes a verification platform 600, which includes the verification system 100 based on UVM and C model in any of the above embodiments.
[0062] The verification platform of the embodiment of the present invention can ensure the accuracy and reliability of the verification results while ensuring the reusability of the verification system, reducing the verification cost and improving the verification efficiency through the verification system based on UVM and C model in the above embodiment.
[0063] In addition, other structures and functions of the verification platform in the embodiment of the present invention are known to those skilled in the art and will not be described herein in detail to reduce redundancy.
[0064] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0065] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0066] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0067] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0068] In addition, the terms "first", "second", etc. used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the present embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of the present invention, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.
[0069] In the present invention, unless otherwise clearly specified or limited in the embodiments, the terms "installed", "connected", "connected" and "fixed" etc. in the embodiments should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integrated connection. It can be understood that it can also be a mechanical connection, an electrical connection, etc.; of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements, or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific implementation situation.
[0070] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0071] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A verification system based on UVM and C model, characterized in that, The C model includes a first scoreboard and a register sub-model, the UVM includes a master agent component, a slave agent component, a sequence, a reference model and a second scoreboard, wherein the first scoreboard is connected to the reference model, the register sub-model is connected to the sequence, and the master agent component and the slave agent component are respectively connected to a DUV, the DUV includes a DUT, and the UVM is used to: Using the first test stimulus signal generated by the C model and / or the second test stimulus signal generated by the sequence to test different DUTs, and then feeding back the test results of the DUT to the first scoreboard and the second scoreboard to compare with the output results of the reference model to obtain a verification result; Wherein, the master agent component includes a sequence generator, a driver and a first monitor, the sequence generator is connected to the sequence and the driver respectively, the driver and the first monitor are connected to the DUV respectively, the sequence generator feeds back the first test excitation signal and / or the second test excitation signal generated by the sequence to the driver according to the request of the driver, so as to test the DUT through the driver; the first monitor is connected to the DUV, and is used to collect and monitor the test results of the DUT and feed them back to the first scoreboard and the second scoreboard through the reference model.
2. The verification system according to claim 1, characterized in that: The C model further includes a converter, which is arranged between the register sub-model and the sequence and is used for converting the registered information of the register sub-model to drive the sequence to generate the first test stimulus signal.
3. The verification system according to claim 1, characterized in that: The slave agent component includes a second monitor, which is connected to the DUV and is used to collect and monitor the test results of the DUT and feed them back to the first scoreboard and the second scoreboard.
4. The verification system according to any one of claims 1 to 3, characterized in that: The UVM also includes an interface, which is connected to the master agent component, the slave agent component and the DUV respectively, so that the DUV can receive the first scoreboard and the second scoreboard sent by the master agent component through the interface, and feed back the test results to the master agent component and the slave agent component.
5. The verification system according to any one of claims 1 to 3, characterized in that: The architecture of the verification system includes a configuration directory, other directories, a file list and a source directory, wherein the source directory includes a CPU code, an environment, a model, a scenario, a test top level, a UVM verification component and a virtual sequence secondary subdirectory.
6. A verification method based on UVM and C model, applied to the verification system based on UVM and C model described in any one of claims 1-5, characterized in that: The method comprises: Start the sequence, and control the DUV to load the hex file corresponding to the C model; Determine, according to different DUTs, that the C model generates the first test stimulus signal and / or the sequence generates the second test stimulus signal; Testing the DUT in the DUV according to the first test excitation signal and / or the second test excitation signal to obtain a test result; The test result is compared with the output result of the reference model through the first scoreboard and the second scoreboard to obtain a verification result.
7. The verification method according to claim 6, characterized in that: The method further comprises: The UVM and the C model are synchronously processed to determine an output order of the verification result corresponding to the first scoreboard and the verification result corresponding to the second scoreboard.
8. The verification method according to claim 6, characterized in that: The method further comprises: When it is determined according to the verification result that the DUT fails the verification, locating the fault of the DUT to determine a fault locating result; The DUT is adjusted according to the fault location result, and the adjusted DUT is re-verified until the DUT passes the verification.
9. A computer-readable storage medium, characterized in that: A verification program based on UVM and C model is stored thereon. When the verification program based on UVM and C model is executed by a processor, the verification method based on UVM and C model according to any one of claims 6-8 is implemented.
10. A verification platform, characterized in that: A verification system based on UVM and C model comprising any one of claims 1-5.
