Method and device for generating verification environment, verification method, electronic equipment and medium
By constructing a verification environment based on topological relationships and using parent class pointers to point to subclass objects, the problem of poor scalability of the verification environment in the existing technology is solved, rapid construction and iteration is achieved, and development costs and manpower investment are reduced.
Patent Information
- Application Number
- CN202411107456.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-09-27
AI Technical Summary
Existing verification environment construction methods have poor scalability when faced with complex chip designs, consume a lot of manpower, and are difficult to meet the cross-validation needs of large-scale integrated circuits and SOC levels. Moreover, traditional methods are difficult to achieve rapid construction and iteration.
By obtaining the functional modules and interfaces in the object to be tested, a verification environment is constructed based on the topological relationship, the first class is obtained by using the parent class pointer to point to the subclass object, and the functional modules and interface verification components are instantiated to achieve rapid construction and iteration of the environment. .
It achieves rapid construction and iteration of the verification environment, has good scalability and reusability, and reduces development costs and manpower investment.
Smart Images

Figure CN118709643A
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to a method and device for generating a verification environment, a verification method and system, an electronic device, and a medium. Background Art
[0002] With the continuous improvement of semiconductor technology and application computing power requirements, the scale and complexity of chip design are increasing. Verification work needs to match the design. In order to cope with increasingly complex designs, the verification environment has also changed from a simple environment to an increasingly complex verification environment. The time and difficulty required to build a complete verification environment are also increasing. For example, as the application scenarios of System-on-a-chip (SOC) continue to enrich, the complexity of chip logic design is increasing. Chip verification, as an important means to ensure that the chip is free of vulnerabilities before chip tape-out, runs through the entire chip development process. Verification personnel will build a verification environment based on the overall function of the chip, design block diagrams, data flow and other characteristics. In order to fully ensure the completeness of chip verification, the verification environment needs to cover all interface modules in the chip. For internal modules, selective verification is performed according to chip requirements and module characteristics, which brings about various problems such as poor scalability and high labor consumption. Summary of the invention
[0003] At least one embodiment of the present disclosure provides a method for generating a verification environment, comprising: obtaining an object to be tested, wherein the object to be tested includes: a functional module to be tested for implementing at least one function of a chip and an interface connected to the functional module obtained based on the functional module; obtaining a first category based on the object to be tested, wherein the first category is configured to form a topological relationship for the functional module and the interface; and obtaining the verification environment based on the first category.
[0004] For example, in a method for generating a verification environment provided by at least one embodiment of the present disclosure, obtaining a first class based on the object to be tested includes: based on the object to be tested, obtaining the first class by pointing a parent class pointer to a child class object.
[0005] For example, in a method for generating a verification environment provided by at least one embodiment of the present disclosure, based on the object to be tested, a first class is obtained by pointing a parent class pointer to a child class object, including: based on the object to be tested, obtaining a second base class corresponding to the functional module and a third base class corresponding to the interface; obtaining a second subclass inherited from the second base class and obtaining a third subclass inherited from the third base class; obtaining the first class based on the second subclass and the third subclass.
[0006] For example, in a method for generating a verification environment provided by at least one embodiment of the present disclosure, the functional module includes at least one IP module.
[0007] For example, in a method for generating a verification environment provided by at least one embodiment of the present disclosure, obtaining the first class based on the second subclass and the third subclass includes: instantiating the second subclass and the third subclass, and obtaining a matching relationship between the instantiated functional modules and corresponding interfaces to obtain the first class, wherein the first class is configured to encapsulate information and functions corresponding to the functional modules and interfaces required by the object to be tested.
[0008] For example, in a method for generating a verification environment provided by at least one embodiment of the present disclosure, the verification environment is obtained based on the first class, including: instantiating the first class in the environment layer, obtaining information about the functional modules and the interfaces by calling functions in the first class, so as to batch instantiate interface verification components required by the instantiated functional modules; and configuring the first class in the test case layer to obtain the verification environment.
[0009] For example, in a method for generating a verification environment provided by at least one embodiment of the present disclosure, configuring the first class in the test case layer includes: configuring the number of the functional modules and / or configuring the number of interfaces corresponding to the functional modules.
[0010] At least one embodiment of the present disclosure provides a device for generating a verification environment, which is configured to be connected to an object to be tested, wherein the object to be tested includes: a functional module to be tested for implementing at least one function of a chip and an interface connected to the functional module obtained based on the functional module, and the device includes: a first category of modules, including a first category, wherein the first category is configured to be obtained based on the object to be tested, and the first category is configured to form a topological relationship for the functional module and the interface; and an environment acquisition module, which is configured to acquire the verification environment based on the first category.
[0011] For example, in an apparatus for generating a verification environment provided by at least one embodiment of the present disclosure, the first class is configured to be obtained based on the object to be tested and by pointing to the child class object through a parent class pointer.
[0012] For example, a device for generating a verification environment provided by at least one embodiment of the present disclosure also includes: a second base class module, including a second base class corresponding to the functional module; and a third base class module, including a third base class corresponding to the interface, wherein the second base class and the third base class are respectively configured to be acquired based on the object to be tested, the first class is configured to be acquired based on a second subclass and a third subclass, the second subclass is a subclass inherited from the second base class and the third subclass is a subclass inherited from the third base class.
[0013] For example, in an apparatus for generating a verification environment provided by at least one embodiment of the present disclosure, the functional module includes at least one IP module.
[0014] For example, in a device for generating a verification environment provided by at least one embodiment of the present disclosure, the environment acquisition module includes: an environment layer, configured to instantiate the first class, so that the information of the functional module and the interface is obtained by calling the function in the first class, so as to batch instantiate the interface verification components required by the instantiated functional modules; and a test case layer, configured to configure the first class to obtain the verification environment.
[0015] At least one embodiment of the present disclosure provides a verification method, including the method for generating a verification environment as described in any one of the above, wherein the chip verification method further includes: performing simulation operation based on the verification environment to implement the verification method.
[0016] At least one embodiment of the present disclosure provides a verification system, including an object to be tested and a device as described in any one of the above items, wherein the device is connected to the object to be tested.
[0017] At least one embodiment of the present disclosure provides an electronic device, including: a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method for generating a verification environment as described in any one of the above items is implemented.
[0018] At least one embodiment of the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method for generating a verification environment as described in any of the above examples is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of a framework built for a verification environment;
[0021] Figure 2 A flowchart of a method for generating a verification environment provided for some embodiments of the present disclosure;
[0022] Figure 3 is a flowchart of an execution process of step S2a in some embodiments of the present disclosure;
[0023] Figure 4 A schematic diagram of an architecture of a verification environment provided for some embodiments of the present disclosure;
[0024] Figure 5 A specific example diagram of a verification environment provided for some embodiments of the present disclosure;
[0025] Figure 6 For the present disclosure Figure 5 A specific example diagram of the object to be tested in the example;
[0026] Figure 7 A schematic diagram of a device for generating a verification environment provided in some embodiments of the present disclosure;
[0027] Figure 8 A schematic diagram of the structure of an electronic device provided for some embodiments of the present disclosure. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0029] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present disclosure have the same meanings as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless the embodiments of the present disclosure explicitly define such meanings.
[0030] The words "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. Words such as "one", "an" or "the" and similar words do not indicate a quantity limitation, but indicate the existence of at least one. Similarly, words such as "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. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Flowcharts are used in the embodiments of the present disclosure to illustrate the steps of the method according to the embodiments of the present disclosure. It should be understood that the previous or subsequent steps are not necessarily carried out in order. On the contrary, various steps can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or one or more steps can be removed from these processes.
[0031] At present, the adoption of verification methodology is one of the trends in chip verification, and Universal Verification Methodology (UVM) is a typical representative. UVM is a universal verification methodology based on SystemVerilog classes. Using its reusable components, a functional verification environment with standardized hierarchical structures and interfaces can be constructed, namely the UVM verification environment. The UVM verification environment specifies the basic classes (i.e., reusable components) in UVM, such as sequencers (also called sequencers), monitors (Monitor), drivers (also called drivers), and communication interfaces and functional coverage components. In UVM, verification components (UVM Verification Component, UVC) generally include components such as drivers (Driver), monitors (Monitor), agents (Agents), and scoreboards (Scoreboards) that encapsulate a certain function.
[0032] In some of the current mainstream UVM verification platforms, sequences are used to generate transaction packets in the UVM verification platform and pass them to the exciter through the sequence generator in a certain order; for example, the exciter is used to convert the excitation transaction packet into an interface signal and output it to the design under test (DUT, also known as the module under test) in the UVM verification platform. For example, the monitor may include a master monitor (as shown below) Figure 1 Monitor 1 shown in the figure) and the responder monitor (Slave Monitor, as shown in the figure) Figure 1Monitor 2 shown). Verifiers can expand the classes they need based on the basic classes, and then use UVM standard communication statements to connect the communication interfaces of each class. In UVM verification, one or more agents (Agent, which is a container class in UVM that encapsulates the verification components used to drive and monitor the DUT interface) plus the scoreboard constitute the verification environment (Env, which is an environment (Env) layer used to bring together all verification components around a certain DUT (module level or system level). For example, the environment layer combines interrelated verification components and encapsulates all verification components for the DUT, that is, the environment layer is used to instantiate specific verification components). The test case (Test, used to generate verification cases) layer is the top-level component in the UVM test platform, which is responsible for executing tests and associating sequences to the sequence generator.
[0033] The inventor of the present disclosure has found that, usually, to build a verification environment based on UVM, it is necessary to implement the agent (Agent) according to the IP (Intellectual Property, intellectual property) module, the interface (PORT, for example, it is a chip port for data and information exchange) and the multiple clients (Client, which is the end that requests data from the server) mounted thereon, and finally integrate it into the environment (Env) layer for verification. This method of building a verification environment can meet the test requirements of small-scale verification, but the applicability of cross-verification at the subsystem level and SOC level is obviously insufficient.
[0034] The inventors of the present disclosure also found that large-scale integrated circuits contain complex interfaces and are mounted with different numbers of clients to meet different application scenarios. In the process of building the environment, the design module to be tested will often be changed, such as increasing or decreasing the number of interfaces or clients, which also poses a challenge to the scalability of the verification environment. The traditional method of building a verification environment requires a large number of changes to all components associated with the Agent in Env, such as the scoreboard, the monitor of the corresponding interface, etc., which has poor scalability and consumes a lot of manpower. When verifying a chip, it is necessary to construct an IP verification environment, a Subsystem verification environment, and a SOC verification environment. In each verification environment, multiple sets of sub-verification environments need to be constructed according to design requirements. For example, in SOC verification, there are different hierarchical structures (View) according to layout and wiring requirements. For example, there is usually a logical view structure (LogicView) and a tiled view structure (Tile View) that is convenient for layout and wiring. The hierarchical structures of the DUT under different Views are different, so the verification environment needs to be built separately. When multi-level cross-verification is implemented from the subsystem level and the SOC level, the verification environment needs to be reused, and the traditional method of building a verification environment (for example Figure 1In addition, if the solution is implemented in the traditional way, each verification environment needs to be developed independently, which will consume a lot of labor costs and time costs.
[0035] For example, Figure 1 As shown, the existing verification environment is built based on UVM verification methodology, creating Env and creating new Agents according to different modules or functions (such as Figure 1 Agent 1 and agent 2 shown in the figure), create interfaces for different interfaces (such as Figure 1 Interface 1 and interface 2 shown in the figure are then integrated into Env. In this regard, the inventors of the present disclosure found that the solution has the following problems: first, it does not fully support design scenarios; second, it has poor scalability. For example, once the interface is changed, it is necessary to manually update all places again, which consumes a lot of manpower and affects the project progress.
[0036] In this regard, at least one embodiment of the present disclosure provides a method for generating a verification environment, comprising: obtaining an object to be tested, wherein the object to be tested includes: a functional module (functional module to be tested) for implementing at least one function of a chip and an interface connected to the functional module obtained based on the functional module; obtaining a first category based on the object to be tested, wherein the first category is configured to form a topological relationship for the functional module and the interface; and obtaining a verification environment based on the first category.
[0037] The method for generating a verification environment in the embodiment of the present disclosure builds a verification environment based on a multi-level topology diagram, which can achieve rapid construction and rapid iteration of the verification environment and has good scalability and reusability.
[0038] At least one embodiment of the present disclosure further provides a device corresponding to the method for generating a verification environment. At least one embodiment of the present disclosure further provides a verification method including the method for generating a verification environment.
[0039] In some embodiments of the present disclosure, the definitions of terms related to buses or standards are as follows:
[0040] PCIE: Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard;
[0041] SATA: Serial ATA, a serial bus;
[0042] USB: Universal Serial Bus, a serial bus standard;
[0043] I2C: Inter-Integrated Circuit, a low-speed bidirectional two-wire synchronous serial bus;
[0044] UART: A universal asynchronous serial data bus;
[0045] SPI: Serial Peripheral Interface, a synchronous communication bus;
[0046] APB: Advanced Peripheral Bus, a bus protocol;
[0047] AXI: Advanced eXtensible Interface, a high-performance expansion bus interface, a bus protocol.
[0048] The embodiments and examples of the present disclosure are described in detail below with reference to the accompanying drawings.
[0049] Figure 2 A flowchart of a method for generating a verification environment is provided for some embodiments of the present disclosure.
[0050] For example, Figure 2 As shown, the method for generating a verification environment provided by at least one embodiment of the present disclosure includes steps S1 to S3.
[0051] Step S1, obtaining an object to be tested, wherein the object to be tested includes: a function module to be tested for realizing at least one function of a chip and an interface connected to the function module obtained based on the function module.
[0052] For example, in step S1, the functional module to be tested (used to implement at least one function of the chip) is a module in the module to be tested. The module to be tested (also called the design under test, Design Under Test, DUT) in the embodiments of the present disclosure is a testability design, which can be the object that a verification engineer is mainly responsible for verifying. Figure 6 As shown. For example, the DUT is implemented by the corresponding design code. Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure. It can be any circuit module or system depending on the chip verification requirements, and will not be exhaustively listed or repeated here.
[0053] For example, in step S1, the functional module includes at least one IP module (herein, the IP module may also be referred to as IP for short). In the embodiments of the present disclosure, the functional module refers to a functional module in the field of integrated circuit design that can meet certain requirements and can be reused in the design, for example, not limited to the IP module level or the subsystem level, etc., which can be adjusted according to actual needs, and will not be repeated here.
[0054] It should be noted that for the sake of clarity and conciseness of this article, the following text is mainly explained using the functional module of the module to be tested as an IP module as an example, but the embodiments of the present disclosure do not limit the object of the functional module. As long as the circuit design can be applied to the multi-level construction of the verification environment based on the topology diagram in the embodiments of the present disclosure, the embodiments of the present disclosure will not be exhaustive or elaborated here.
[0055] For example, in step S1, the embodiment of the present disclosure determines the corresponding interface based on the IP module to be tested in the module to be tested DUT (such as each IP module is provided with a corresponding interface PORT), and the IP module to be tested and the corresponding interface are regarded as the object to be tested (i.e., the object to be tested). For example, when the module to be tested DUT includes a PCIE IP module, a SATAIP module, and a register configuration IP module, the corresponding interfaces determined include: a PCIE interface (PCIE_interface) corresponding to the PCIE IP module, a SATA interface (SATA _interface) corresponding to the SATA IP module, and also includes an AXI interface (AXI_interface) and an APB interface (APB_interface) corresponding to the register configuration IP module. It can be seen from the following Figure 6 As shown. Therefore, the embodiment of the present disclosure uses the PCIE IP module, SATA IP module and register configuration IP module and their corresponding interfaces as the objects to be tested. Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure.
[0056] It should be noted that, although the embodiments of the present disclosure divide the module to be tested DUT and the object to be tested into specific modules based on functional modules, it is clear to those skilled in the art that the processing performed by each step or each module of the embodiments of the present disclosure can also be implemented without such division. For example, the embodiments of the present disclosure can also regard the functional module to be tested and its corresponding interface as DUT, and the DUT is the object to be tested in step S1, and the protection scope of the embodiments of the present disclosure is not limited to this.
[0057] Step S2: acquiring a first category based on the object to be tested, wherein the first category is configured to form a topological relationship for functional modules and interfaces.
[0058] For example, in step S2, the functional module can be an IP module, and the interface can be recorded as PORT. Therefore, the first class can be recorded as IP_PORT_TOP class. Figure 4For example, in step S2, the first class may be an IP_PORT_TOP class of the uvm_object type, and the IP_PORT_TOP encapsulates information and functions of all PORTs and IPs in the verification environment.
[0059] For example, in step S2, the above-mentioned topological relationship between functional modules and interfaces may include: a topological relationship formed between one or more functional modules and one or more interfaces, which includes but is not limited to at least one of the following: the number of each functional module, the number of each interface, the correspondence between the functional modules and the interfaces, and the connection relationship between each other, etc.
[0060] For example, step S2 may be the following step S2a: based on the object to be tested, the first class is obtained by pointing the parent class pointer to the child class object.
[0061] For example, in step S2a, the content related to the parent class pointer pointing to the child class object also includes the following: inheritance is a basic mechanism of object-oriented programming, which allows the creation of a new class (which can be called a child class) to inherit properties and behaviors from an existing class (which can be called a parent class or base class), that is, the child class can inherit the properties and behaviors of the parent class, and can also add its own unique properties and methods. For example, the way the parent class pointer points to the child class object in the embodiment of the present disclosure can be understood as: the pointer of the parent type points to the instance of its child class, and the member function in the child class can be called through the parent class pointer, and the parent class can be extended to multiple types of subclasses, which can improve the reusability and extensibility of the code.
[0062] Step S3: Obtain a verification environment based on the first category.
[0063] As described above, the method for building a verification environment in the embodiment of the present disclosure is to abstract the verification object into the topological relationship of IP / PORT, so that the verification environment of the present disclosure is built based on the topological relationship of IP / PORT. At least one embodiment of the present disclosure provides a method for building a verification environment at multiple levels based on a topological diagram, which can realize centralized management of environmental IP information, realize rapid construction and rapid iteration of the verification environment, and has good scalability and reusability.
[0064] Figure 3 The figure is a flowchart of an execution process of step S2a in some embodiments of the present disclosure. Figure 4 A schematic diagram of the architecture of a verification environment provided for some embodiments of the present disclosure.
[0065] For example, Figure 3 As shown, an example of step S2a includes at least steps S21 to S23.
[0066] Step S21: Based on the object to be tested, obtain a second base class corresponding to the functional module and a third base class corresponding to the interface.
[0067] For example, in step S21, the second base class corresponds to the IP module, the second base class can be recorded as IP_base class, and the second base class can be an IP_base class of uvm_object type, as shown below Figure 4 As shown. In UVM verification methodology, uvm_object can be understood as the base class of all UVM data and hierarchical structures.
[0068] For example, the second base class encapsulates IP common information and functions, including but not limited to: IP name (name), client number (client num), instantiation name (inst_name), register and other related parameters (i.e., customized parameters used in the environment), and register operation related functions, etc. Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure. For example, IP_base class can customize and encapsulate IP common information according to project requirements, which will not be repeated here.
[0069] The class of the embodiment of the present disclosure is a basic unit used to represent an object. The class can be understood as an abstraction of an object, and the object is an instantiation of the class. In addition, the class of the embodiment of the present disclosure can be understood as follows: when the class is stored in a file, the file can be regarded as a module (also called a library).
[0070] For example, in step S21, the third base class may be recorded as PORT_base class, and the third base class may be a PORT_base class of uvm_object type, such as Figure 4 shown.
[0071] For example, the third base class encapsulates PORT port general information and functions, including but not limited to: PORT name (name), number of clients (client num), instantiation name (inst_name), data bit width, master-slave port information configuration (master / slave), tile information (for example, the tile is related to the meaning of Tile View described above, that is, the meaning of the tile information can refer to the meaning of the tile in Tile View), DPI interface (Direct Programming Interface, which is the interactive interface between Systemverilog language and C / C++ language) and other related information, as well as related parameter randomization functions, etc. Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure. For example, PORT_base class can customize the encapsulation of PORT general information according to project requirements, which will not be repeated here.
[0072] In some embodiments of the present disclosure, IP_base class and PORT_base class respectively encapsulate parameters Params, functions Functions, tasks Tasks, etc.
[0073] Step S22: Acquire the second subclass inherited from the second base class and acquire the third subclass inherited from the third base class.
[0074] For example, in step S22, in the embodiment of the present disclosure, each IP module actually used in the project inherits from the second base class (which can be recorded as IP_base class, such as Figure 4 As shown in FIG. 1 , for example, the second subclass includes various IP classes such as PCIE_IP class, SATA_IP class, USB_IP class, I2C_IP class, UART_IP class and / or SPI_IP class. Of course, this is merely exemplary and is not intended to limit the embodiments of the present disclosure.
[0075] For example, in some examples, each IP class inherited from IP_base class can be recorded as IP_A class, IP_B class, and so on to IP_N class, where N is a positive integer.
[0076] In one example, when the function modules to be tested include two high-speed IP modules, PCIE and SATA, and a register configuration (REG_CFG) IP, the subclasses generated by extending and inheriting the IP_base class include PCIE_IP class, SATA_IP class, and REG_CFG_IP class. Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure.
[0077] In some examples, the class of each IP is generated by inheriting from the IP base class, and additional information and functions specific to each IP are encapsulated, including but not limited to: configuration and parameter information of the IP, and callable functions and tasks, etc. For example, the IP of the embodiment of the present disclosure may generally refer to various IP modules, which can customize the IP according to the actual project requirements, and customize the information encapsulated inside the IP, and the embodiment of the present disclosure does not limit this. For example, taking the PCIE IP as an example, the encapsulated information includes but is not limited to the number of interfaces (PORT num), the number of cables (Lane num), the initialization link configuration, the maximum configuration supported by the link, registers, tile information (for example, the tile is related to the meaning of the Tile View described above, that is, the meaning of the tile information can refer to the meaning of the tile in the Tile View) and related interface verification components (Interface uvc), etc. Of course, this is merely exemplary and is not a limitation of the embodiments of the present disclosure.
[0078] For example, in step S22, in the embodiment of the present disclosure, each PORT actually used by the project inherits from the third base class (which can be recorded as PORT_base class, such as Figure 4 As shown), for example, the third subclass includes various PORT classes such as PCIE_PORT and / or SATA_PORT.
[0079] For example, in some examples, each PORT class inherited from the PORT_base class can be recorded as PORT_A class, PORT_B class, and so on to PORT_N class, where N is a positive integer.
[0080] In some examples, the class of each PORT is generated by inheriting from the PORT_base class, and additionally encapsulates the information and functions specific to each PORT, including but not limited to the configuration and parameter information of the PORT and the callable functions and tasks. For example, the PORT in the embodiment of the present disclosure refers to various types of PORTs, such as traditional PORTs or custom PORTs, which customize the information encapsulated inside each PORT according to the actual project requirements. For example, taking the PCIE PORT as an example, the encapsulated information includes but is not limited to the number of interfaces (PORT num), supported rates, device types, registers, transmission data types, setting parameters and obtaining status functions, parameter randomization functions, etc. Of course, this is merely exemplary and is not a limitation of the embodiments of the present disclosure.
[0081] The various classes involved in the above embodiments of the present disclosure may customize information according to actual project requirements, which is not limited herein. It should be noted that if a person skilled in the art uncreatively adds other elements or functions to the above classes, it is also within the protection scope of the present disclosure, and will not be exhaustively listed or elaborated herein.
[0082] Step S23: Acquire the first category based on the second subcategory and the third subcategory.
[0083] For example, in step S23, the first class is configured to encapsulate information and functions corresponding to functional modules and interfaces required by the object to be tested. For example, the first class IP_PORT_TOP class encapsulates information and functions of all PORTs and IPs in the verification environment.
[0084] The embodiments of the present disclosure can realize the rapid construction of various verification environments, and can also flexibly replace and update IP and PORT information according to different needs, thereby reducing the development cost of the verification environment.
[0085] In some examples, obtaining the first class based on the second subclass and the third subclass in an embodiment of the present disclosure includes the following process or steps: instantiating the second subclass and the third subclass, and obtaining a matching relationship between the instantiated functional modules and the corresponding interfaces to obtain the first class.
[0086] In some examples, the instantiation of the second subclass mentioned above refers to: instantiating each IP corresponding to the second subclass, for example, Figure 4 As shown, the embodiment of the present disclosure instantiates all IPs required to be used in the verification environment in the IP_PORT_TOP class (such as Figure 4 Corresponding IP_A, IP_B to IP_N), and complete the configuration of each IP, encapsulation configuration, and functions for obtaining IP parameters and status information.
[0087] In some examples, for the instantiation of the third subclass mentioned above, it means: instantiating each PORT corresponding to the third subclass, for example, Figure 4 As shown, the embodiment of the present disclosure instantiates all PORTs that need to be used in the verification environment in the IP_PORT_TOP class (such as Figure 4 Corresponding PORT_A, PORT_B to PORT_N), and complete the configuration of each PORT, encapsulation configuration, and functions for obtaining PORT parameters and status information.
[0088] In some examples, for the above-mentioned acquisition of the matching relationship between the instantiated functional module and the corresponding interface, this means that the IP_PORT_TOP class encapsulates the correspondence between IP and PORT (for example, the quantitative correspondence between IP and PORT), such as supporting one-to-one, one-to-zero, one-to-many or many-to-one and other corresponding relationships, which can be customized and extended according to project requirements, and there is no restriction here. For example, one or more groups of PCIE IP (instantiated PCIE IP) can correspond to one or more groups of PCIE PORT. For another example, the IP at the system function level can correspond to multiple groups of different PORTs. Of course, this is merely exemplary and is not a limitation of the embodiments of the present disclosure.
[0089] Therefore, the first type IP_PORT_TOP class finally obtained in the embodiment of the present disclosure includes relevant information corresponding to each instantiated IP and each instantiated PORT.
[0090] It should be noted that the information encapsulated by the IP_PORT_TOP class in the embodiment of the present disclosure is not limited to the above description, and can also be determined according to actual needs, which is not limited or elaborated here.
[0091] The embodiments of the present disclosure are based on the IP module and interface of the object to be tested, adopt a solution in which a parent class pointer points to a child class object, abstract the verification object into a topological relationship of IP / PORT, and uniformly encapsulate and manage IP and PORT, thereby realizing a method for building a verification environment at multiple levels based on a topological graph, which has good scalability and reusability.
[0092] In some examples, obtaining a verification environment based on the first class in an embodiment of the present disclosure also includes the following processes or steps: instantiating the first class in the environment layer (Env), obtaining information about functional modules and interfaces by calling functions in the first class, so as to batch instantiate interface verification components required for the above-instantiated functional modules (such as IP modules); and configuring the first class (such as each IP module and PORT in the first class) in the test case layer (Test) to obtain a verification environment.
[0093] For example, Figure 4 As shown, the embodiment of the present disclosure can instantiate the IP_PORT_TOP class in Env, call the function in the IP_PORT_TOP class to obtain the relevant information of each IP and PORT, so that there is no need to instantiate the Agent of each IP, but the interface verification component (Interface uvc) required by each IP can be directly instantiated in batches, and the interface verification component can be operated. For example, the interface verification component refers to a specific verification component obtained by instantiating the interface in Env.
[0094] For example, in Figure 4 In the example, the batch instantiated interface verification components include: Interface_uvc_A, Interface_uvc_B to Interface_uvc_N, which are the verification components required for N PORTs corresponding to the instantiated N IP modules. Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure.
[0095] In the first category of the embodiments disclosed in the present invention, the information of the interface and IP module is encapsulated in the form of a topological structure. Based on the topological diagram, a verification environment can be quickly generated, and the Interface uvc at each level can be pulled to the top-level Env for batch instantiation and connection. The switching between the logical view and the tiled view can be flexibly implemented to achieve verification environment reuse and reduce the verification environment development cost.
[0096] For example, in the embodiment of the present disclosure, the configuration of the first class in Test refers to the configuration of the basic information required by the IP_PORT_TOP class in Test, which may include configuring the number of each functional module (such as the instantiated IP module) and / or configuring the number of interfaces corresponding to each functional module (such as the instantiated interface corresponding to the instantiated IP module). For example, setting the number of PCIE_IP, SATA_IP in the IP_PORT_TOP class and / or setting the number of AXI_PORT, APB_PORT (see below). Figure 5 example).
[0097] In some embodiments of the present disclosure, the information and functions of PORT and IP encapsulated in IP_PORT_TOP class can realize IP information interaction of the full verification platform through the parameter transfer mechanism (config_db mechanism). Figure 4As shown in the figure, configure the basic information required by the IP_PORT_TOP class in Test, and then set it to the entire verification environment through config_db. All components (components) and the most basic classes (objects) in the verification environment can obtain detailed information about IP and PORT. For example, in Figure 4 In the figure, the Other component (eg. Test) shown in the figure refers to Figure 4 The example needs to be configured accordingly according to user needs, such as configuring or using parameters (useparam), extending functions or tasks (use function, use task). Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure.
[0098] The IP_PORT_TOP class of the embodiment of the present disclosure realizes the centralized management of IP and PORT information in the environment, greatly improving the maintainability of the system. Through the flexible expansion of the IP_PORT_TOP class, the rapid construction and rapid iteration of the verification environment can be realized.
[0099] Figure 5 A specific example diagram of a verification environment provided for some embodiments of the present disclosure. Figure 6 For the present disclosure Figure 5 A specific example diagram of the object to be tested in the example.
[0100] For example, in Figure 5-Figure 6 In the example, the functional modules to be tested are two high-speed IPs, PCIE and SATA, and a register configuration (REG_CFG) IP. Therefore, the interface included in the object to be tested has a PCIE interface and a SATA interface corresponding to the two IPs, PCIE and SATA, and also has a register configuration interface (i.e., an AXI interface and an APB interface) corresponding to the register configuration IP. For example, the PCIE interface supports an x4lane 8G rate, and the SATA interface supports an x1 lane 6G rate. Of course, this is only exemplary, so that those skilled in the art can understand the technical solution of the embodiments of the present disclosure, and it is not a limitation of the embodiments of the present disclosure.
[0101] The following mainly focuses on Figure 5 The following example describes the specific implementation of the verification environment, which explains how to build a verification environment based on the topology diagram.
[0102] (1) Create the IP_base class, which encapsulates the common information of the high-speed interface IP (such as the IP name, rate, registers, etc.).
[0103] (2) Inherit IP_base class to generate PCIE_IP class and SATA_IP class, respectively encapsulating PCIE_IP and SATA_IP detailed information and functions (such as rate, bandwidth, device type, and other unique and customized information and functions of this type of bus IP). For example, in this step (2), the PCIE_IP class and SATA_IP class inherited from IP_base class correspond to the two IPs PCIE and SATA in the above-mentioned object to be tested.
[0104] (3) Inherit IP_base class to generate REG_CFG_IP class, encapsulating REG_CFG_IP detailed information and functions (such as the included configuration bus types (AXI, APB), the number of each type of bus, bandwidth, internal encapsulated register model, and other IP-specific and customized information and functions).
[0105] (4) Create the PORT_base class, which encapsulates the general information of the high-speed interface PORT.
[0106] (5) Inheriting PORT_base class to generate PCIE_PORT class, SATA_PORT class, AXI_PORT class and APB_PORT class, respectively encapsulating detailed information and functions about PCIE_PORT, SATA_PORT, AXI_PORT and APB_PORT (such as the number of interfaces, the number of cables, master / slave devices, data bit width and other unique and customized information and functions of this type of bus port). For example, in this step (5), the PCIE_PORTclass, SATA_PORT class, AXI_PORT class and APB_PORT class inherited from PORT_base class correspond to the PCIE interface, SATA interface, AXI interface and APB interface in the above-mentioned object to be tested.
[0107] (6) Create IP_PORT_TOP class, encapsulate PCIE_IP, SATA_IP, REG_CFG_IP, PCIE_PORT, SATA_PORT, AXI PORT, APB_PORT, as well as functions for configuring and obtaining parameters (such as obtaining the number of interfaces, setting the speed, etc.).
[0108] (a) For the instantiation of PCIE_IP class, SATA_IP class and REG_CFG_IP class, obtain the instantiated PCIE_IP, SATA_IP and REG_CFG_IP, and set the capabilities of PCIE_IP, SATA_IP and REG_CFG_IP, such as the supported rate, bandwidth, device type, etc. (for example, PCIE supports a rate of 8G, which is an endpoint type, etc.; SATA supports a rate of 6G, which is an endpoint type, etc.; the top-level pointer of the register model inside REG_CFG_IP, the register configuration bus parameters, and the mapping relationship between the configuration bus and the register model, etc.).
[0109] (b) For the instantiation of PCIE_PORT class, SATA_PORT class, AXI_PORT class and APB_PORT class, obtain the instantiated PCIE_PORT, SATA_PORT, AXI_PORT and APB_PORT, set the interface characteristics of PCIE_PORT and SATA_PORT (such as supported speed, number of cables (PCIEx4 and SATAx1)), and set the interface characteristics of AXI_PORT and APB_PORT (such as master-slave interface, data bit width, etc.).
[0110] (c) Determine the correspondence between each IP and PORT. For example, in this example, the instantiated PCIE_IP corresponds to 1 group of PCIE_PORT, the instantiated SATA_IP corresponds to 1 group of SATA_PORT, and the instantiated REG_CFG_IP corresponds to two groups of PORT (the two groups of PORT are AXI_PORT and APB_PORT respectively). Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure. It can be flexibly expanded to 1 to many or many to 1 according to project needs, and will not be repeated here.
[0111] (7) Instantiate IP_PORT_TOP class in Env, call the function in IP_PORT_TOP class to obtain the relevant information of PCIE_IP, SATA_IP, REG_CFG_IP and PCIE_PORT, SATA_PORT, AXI_PORT, APB_PORT, and complete the instantiation, setting and connection of interfaces in batches. For example, in step (7), the batch instantiation of interfaces here refers to the batch instantiation of the interface verification components required by the IP module (such as Figure 5PCIE_uvc_[N], SATA_uvc_[N], AXI_uvc_[N] and APB_uvc_[N] shown), the completion settings and connections here can refer to: the number and parameters instantiated in Env, etc., and the other components in Env to be connected.
[0112] (8) Configure PCIE_IP, SATA_IP, REG_CFG_IP and PCIE_PORT, SATA_PORT, AXI_PORT, APB_PORT in IP_PORT_TOP class in Test (for example, Figure 5 set PCIE param, set SATA param, set AXI param, set APB param as shown in ), for example:
[0113] (a) Set the number of each IP; for example, in this example, the number of PCIE_IP and SATA_IP is 1. Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure. It can be flexibly expanded according to project needs.
[0114] (b) Set the number of PORTs corresponding to the IP. For example, in this example, the number of AXI_PORT and APB_PORT is 1. Of course, this is only exemplary and is not a limitation of the embodiments of the present disclosure. It can be flexibly expanded according to project needs.
[0115] Based on this, the embodiments of the present disclosure can realize rapid iteration of the verification environment (for example, the number of AXI buses can be increased, the data bit width can be adjusted, the number of IPs can be increased, the correspondence between the number of IPs and PORTs can be adjusted, the number of cables can be adjusted, etc.), which can all be quickly generated by modifying the IP_PORT_TOP class.
[0116] Figure 7 A schematic diagram of a device for generating a verification environment provided in some embodiments of the present disclosure.
[0117] For example, Figure 7 As shown, the apparatus 700 for generating a verification environment according to an embodiment of the present disclosure includes a first type module 710 and an environment acquisition module 720. The apparatus 700 is configured to be connected to an object to be tested, wherein the object to be tested includes: a function module to be tested for implementing at least one function of a chip and an interface connected to the function module acquired based on the function module. For example, the function module includes at least one IP module.
[0118] For example, Figure 7 As shown, the first type module 710 includes a first type 711 , and the first type 711 is configured to be acquired based on the object to be tested.
[0119] For example, the first class 711 is configured to be obtained based on the object to be tested and by a parent class pointer pointing to a child class object, which means that the embodiment of the present disclosure obtains the first class by a parent class pointer pointing to a child class object. In addition, the first class 711 is configured to form a topological relationship for functional modules and interfaces.
[0120] For example, Figure 7 As shown, the environment acquisition module 720 is configured to acquire the verification environment based on the first category 711 .
[0121] The device of the embodiment of the present disclosure abstracts the verification object into the topological relationship of IP / PORT, so that the verification environment of the present disclosure is built based on the topological relationship of IP / PORT, realizing the rapid construction and rapid iteration of the verification environment, and has good scalability and reusability.
[0122] For example, Figure 7 As shown, the apparatus 700 in some embodiments of the present disclosure further includes a second base class module 730 and a third base class module 740. The second base class module 730 includes a second base class 731 corresponding to the functional module. The third base class module 740 includes a third base class 741 corresponding to the interface, the second base class 731 and the third base class 741 are respectively configured to be acquired based on the object to be tested, and the first class 711 is configured to be acquired based on the second subclass and the third subclass, wherein the second subclass is a subclass inherited from the second base class 731 and the third subclass is a subclass inherited from the third base class 741.
[0123] The embodiments of the present disclosure can realize the rapid construction of various verification environments, and can also flexibly replace and update IP and PORT information according to different needs, thereby reducing the development cost of the verification environment.
[0124] In some examples, the first class 711 is configured to be obtained by instantiating the second subclass and the third subclass, and obtaining a matching relationship between the instantiated functional modules and the corresponding interfaces to obtain the first class 711.
[0125] For example, Figure 7 As shown, the environment acquisition module 720 in some embodiments of the present disclosure includes an environment layer 721 and a test case layer 722 .
[0126] The environment layer 721 is configured to instantiate the first class 711, so that the information of the functional modules and interfaces is obtained by calling the functions in the first class 711, so as to instantiate the interface verification components required by the instantiated functional modules in batches. This can be understood as: the embodiment of the present disclosure can instantiate the first class 711 in the environment layer Env, and obtain the information of the functional modules and interfaces by calling the functions in the first class 711, so as to instantiate the interface verification components required by the functional modules in batches.
[0127] The test case layer 722 is configured to configure the first class to obtain a verification environment. This can be understood as: the embodiment of the present disclosure can configure the first class 711 (such as each IP module and PORT in the first class) in the test case layer Test to obtain a verification environment.
[0128] The embodiments of the present disclosure are based on a topology graph architecture, can implement batch processing of the same type of interface verification components, can quickly generate a verification environment, and can flexibly implement switching between a logical view and a slice and tile view, thereby realizing verification environment reuse and reducing verification environment development costs.
[0129] It should be noted that in the embodiments of the present disclosure, the apparatus for generating a verification environment may include more or fewer modules, and the connection relationship between the modules is not limited and can be determined according to actual needs. The specific configuration of each module is not limited.
[0130] Each module in the above embodiment can be configured as software, hardware, firmware or any combination of the above items to perform specific functions. For example, these modules can correspond to a dedicated integrated circuit, can also correspond to pure software code, and can also correspond to a module combining software and hardware.
[0131] It should be noted that although the apparatus for generating a verification environment is divided into modules for respectively performing corresponding processing when describing the apparatus for generating a verification environment above, it is clear to those skilled in the art that the processing performed by each module can also be performed without any specific module division in the apparatus for generating a verification environment or without clear demarcation between the modules.
[0132] In the embodiments of the present disclosure, the specific implementation and technical effects of the apparatus for generating a verification environment may also refer to the method for generating a verification environment provided in the above embodiments of the present disclosure.
[0133] At least one embodiment of the present disclosure also provides a verification method, which may include the method for generating a verification environment described in any of the above embodiments, and the verification method also includes performing simulation operation based on the verification environment to implement the verification method. The specific implementation and technical effects of the verification method can also refer to the method for generating a verification environment provided in the above embodiments of the present disclosure. It should be noted that in the embodiments of the present disclosure, the focus is on explaining the method for generating a verification environment, and other processes or steps in the chip verification method can refer to the relevant prior art, and for the clarity and conciseness of the description herein, it will not be repeated here.
[0134] At least one embodiment of the present disclosure further provides a verification system, including an object to be tested and the device described in any of the above embodiments, and the device is connected to the object to be tested. The specific implementation and technical effects of the verification system can also refer to the method and device for generating a verification environment provided in the above embodiments of the present disclosure. It should be noted that in the embodiments of the present disclosure, the focus is on explaining the method and device for generating a verification environment. Regarding other parts of the chip verification system, it can refer to the relevant prior art. For the clarity and conciseness of the description in this article, it will not be repeated here.
[0135] Figure 8 A schematic diagram of the structure of an electronic device provided in at least one embodiment of the present disclosure.
[0136] For example, Figure 8 As shown, the electronic device 800 provided by at least one embodiment of the present disclosure includes a processor 810 and a memory 820, wherein the memory 820 stores a computer program, and when the computer program is executed by the processor 810, the method of generating a verification environment of at least some embodiments of the present disclosure is implemented.
[0137] The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as laptop computers, tablet computers, etc. and fixed terminals such as desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0138] For example, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. When the computer program is executed by a processor, the method for generating a verification environment of an embodiment of the present disclosure is executed.
[0139] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In an embodiment of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0140] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0141] It should be noted that, in the embodiment of the present disclosure, the specific functions and technical effects of the electronic device 800 can refer to the above description of the method for generating a verification environment, which will not be repeated here.
[0142] There are a few points to note:
[0143] (1) The drawings of the embodiments of the present disclosure only relate to the structures involved in the embodiments of the present disclosure. Other structures may refer to the general design.
[0144] (2) In the absence of conflict, the embodiments of the present disclosure and the features therein may be combined with each other to obtain new embodiments.
[0145] The above are only specific implementations of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and the protection scope of the present disclosure shall be based on the protection scope of the claims.
Claims
1. A method for generating a verification environment, comprising: Acquire an object to be tested, wherein the object to be tested includes: a function module to be tested for implementing at least one function of a chip and an interface connected to the function module acquired based on the function module; Acquire a first category based on the object to be tested, wherein the first category is configured to form a topological relationship between the functional module and the interface; and The verification environment is obtained based on the first category.
2. The method of claim 1, wherein: Acquiring a first category based on the object to be tested includes: Based on the object to be tested, the first class is obtained by pointing a parent class pointer to a child class object.
3. The method of claim 2, wherein: Based on the object to be tested, obtaining the first class by pointing the parent class pointer to the child class object includes: Based on the object to be tested, obtaining a second base class corresponding to the functional module and a third base class corresponding to the interface; Obtain a second subclass inherited from the second base class and obtain a third subclass inherited from the third base class; The first category is obtained based on the second subcategory and the third subcategory.
4. The method of claim 1, wherein: The functional module includes at least one IP module.
5. The method according to claim 3 or 4, wherein: Acquiring the first category based on the second subcategory and the third subcategory includes: Instantiate the second subclass and the third subclass, and obtain a matching relationship between the instantiated functional modules and corresponding interfaces to obtain the first class, wherein the first class is configured to encapsulate information and functions corresponding to the functional modules and interfaces required by the object under test.
6. The method of claim 5, wherein: Acquiring the verification environment based on the first category includes: Instantiating the first class in the environment layer, acquiring information of the functional modules and the interfaces by calling a function in the first class, so as to batch instantiate interface verification components required by the instantiated functional modules; and The first class is configured in the test case layer to obtain the verification environment.
7. The method of claim 6, wherein: The first category is configured in the test case layer, including: Configure the number of the functional modules and / or configure the number of interfaces corresponding to the functional modules.
8. A device for generating a verification environment, configured to be connected to an object to be tested, wherein: The object to be tested includes: a function module to be tested for realizing at least one function of a chip and an interface connected to the function module obtained based on the function module, and the device includes: The first type of module comprises a first type, wherein the first type is configured to be acquired based on the object to be tested, and the first type is configured to form a topological relationship for the functional module and the interface; and The environment acquisition module is configured to acquire the verification environment based on the first category.
9. The device of claim 8, wherein: The first class is configured to be acquired based on the object to be tested and by a parent class pointer pointing to a child class object.
10. The apparatus of claim 9, further comprising: A second base class module, comprising a second base class corresponding to the functional module; as well as A third base class module includes a third base class corresponding to the interface, wherein the second base class and the third base class are respectively configured to be acquired based on the object to be tested, the first class is configured to be acquired based on a second subclass and a third subclass, the second subclass is a subclass inherited from the second base class and the third subclass is a subclass inherited from the third base class.
11. The device of claim 10, wherein: The functional module includes at least one IP module.
12. The device of claim 10, wherein: The environment acquisition module includes: an environment layer, configured to instantiate the first class, so as to obtain information of the functional modules and the interfaces by calling functions in the first class, so as to instantiate interface verification components required by the instantiated functional modules in batches; and The test case layer is configured to configure the first class to obtain the verification environment.
13. A verification method, comprising the method according to any one of claims 1 to 7, wherein: The chip verification method further includes: performing simulation operation based on the verification environment to implement the verification method.
14. A verification system, comprising an object to be tested and the device according to any one of claims 8 to 12, wherein the device is connected to the object to be tested.
15. An electronic device, comprising: processor and memory, Wherein, a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is implemented.
16. A computer-readable storage medium, wherein: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
