Establishment method and device of test verification environment, test method and device, electronic equipment, storage medium and computer program product

By generating and burning configuration files on the software and hardware verification platform, simulation and testing of analog circuits are realized, which solves the problem that traditional FPGA verification platforms cannot effectively test analog circuits, and improves development efficiency and verification completeness.

CN118862818APending Publication Date: 2024-10-29SPREADTRUM TECH (HANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the development process of very large-scale integrated circuits, traditional FPGA verification platforms cannot effectively test the analog circuit part, resulting in insufficient verification, extended development cycles, and increased costs.

Method used

By obtaining the hardware design files of the system to be tested, using the software and hardware verification platform to generate configuration files, and burning them into the hardware accelerator, the simulation and testing of the analog circuits can be realized, improving the completeness of the verification.

Benefits of technology

It shortens the development cycle, reduces costs, improves the completeness of test verification, and ensures the function and performance verification of analog circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862818A_ABST
    Figure CN118862818A_ABST
Patent Text Reader

Abstract

The invention relates to a test verification environment building method and device, a test method and device, electronic equipment, a storage medium and a computer program product. The method for building the test verification environment comprises the following steps: acquiring a hardware design file of a to-be-tested system; the to-be-tested system comprises host equipment and slave equipment; the host device is in communication connection with the slave device, the host device comprises a first analog circuit, the slave device comprises a second analog circuit, and the first analog circuit and the second analog circuit are described by adopting a comprehensive model; inputting the hardware design file into a software and hardware verification platform, wherein the software and hardware verification platform generates a configuration file of hardware in the to-be-tested system based on the hardware design file; and burning the configuration file into a hardware accelerator of the software and hardware verification platform to complete establishment of the test verification environment. According to the technical scheme, the analog circuit part of the interface can be tested, the completeness of test verification is improved, the development period can be shortened, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of integrated circuit testing technology, and in particular to a method for building a test verification environment, a test method, a device, an electronic device, a storage medium and a computer program product. Background Art

[0002] In the related technologies, with the development of very large-scale integrated circuits, the scale of SOC (System On Chip) is getting larger and larger. The simulation and verification of very large chips, very large systems and complex algorithms is very time-consuming, which seriously affects the progress of the project. At the same time, the insufficient verification caused by the serious time consumption will further increase the risk of chip revision. The traditional FPGA (Field Programmable Gate Array) verification platform has a series of problems such as scale, speed, verification methods, and high peripheral hardware requirements. Therefore, major manufacturers have launched various Emulator (emulator) hardware acceleration verification platforms. The Emulator hardware acceleration verification platform has an extremely fast hardware running speed and can easily simulate the real hardware and software environment to perform collaborative simulation of hardware and software. In addition, it has the following advantages:

[0003] 1) Large capacity, capable of simulating designs with billions to tens of billions of gates;

[0004] 2) Use a full set of defined process tools with a high degree of automation, short version iteration cycle, and support for netlist-level simulation, power consumption analysis and other functions that FPGAs do not have;

[0005] 3) Rich debugging methods can provide complete waveforms to facilitate analysis of circuit behavior;

[0006] 4) Major manufacturers provide a variety of mature simulation transformer libraries, VIP (Verification Intellectual Property, referred to as verification IP), etc.

[0007] In the related technology, the test platform based on FPGA chip can easily compile RTL (register-transfer level) code into hardware behavior model and execute it on FPGA to achieve rapid verification and prototype verification. At the same time, because various mature kits can be provided, many large systems and IP verifications can be done on the platform, including UFS (Universal Flash Storage) system verification. Summary of the invention

[0008] The purpose of this application is to provide a method for building a test verification environment, a test method, an apparatus, an electronic device, a storage medium and a computer program product, which can test the analog circuit portion of the interface, improve the completeness of the test verification, thereby shortening the development cycle and reducing costs.

[0009] According to a first aspect of an embodiment of the present application, a method for building a test verification environment is provided, comprising:

[0010] Obtaining a hardware design file of a system to be tested; the system to be tested includes a host device and a slave device; the host device is communicatively connected with the slave device, the host device includes a first analog circuit, the slave device includes a second analog circuit, and the first analog circuit and the second analog circuit are described using a synthesizable model;

[0011] Inputting the hardware design file into a software and hardware verification platform, wherein the software and hardware verification platform generates a configuration file for the hardware in the system to be tested based on the hardware design file;

[0012] Burn the configuration file into the hardware accelerator of the software and hardware verification platform to complete the construction of the test verification environment.

[0013] In one embodiment, the host device includes a first interface, the slave device includes a second interface, the first interface is communicatively connected to the second interface, the first interface includes the first analog circuit, and the second interface includes the second analog circuit.

[0014] In one embodiment, the master device includes an instantiated first analog circuit, and the slave device includes an instantiated second analog circuit.

[0015] In one embodiment, the method for building a test verification environment further includes:

[0016] During the process of the hardware and software verification platform generating a configuration file for the hardware in the system to be tested based on the hardware design file, the first clock module of the host device and the second clock module of the slave device are null processed, and the first clock simulation module of the hardware and software verification platform is used to replace the first clock module, and the second clock simulation module of the hardware and software verification platform is used to replace the second clock module.

[0017] In one embodiment, the first clock simulation module includes a first clock source simulation module and a first clock multiplexer, and the second clock simulation module includes a second clock source simulation module and a second clock multiplexer;

[0018] The first clock source simulation module is used to provide a first clock source, and the first clock multiplexer is used to generate a corresponding first clock signal according to the first clock source and a first clock control signal from the host device;

[0019] The second clock source simulation module is used to provide a second clock source, and the second clock multiplexer is used to generate a corresponding second clock signal according to the second clock source and a second clock control signal from the slave device.

[0020] In one implementation, the first interface further includes a first digital circuit, the second interface further includes a second digital circuit, and the first digital circuit and the second digital circuit are described using a register transfer level (RTL) language.

[0021] In one embodiment, the slave device is a Universal Flash Storage (UFS) device.

[0022] In one implementation, the first analog circuit is an analog circuit in a physical layer (PHY) of the UFS device, and the second analog circuit is an analog circuit in the physical layer of the UFS device.

[0023] In one implementation, the hardware accelerator is a FPGA chip.

[0024] According to a second aspect of an embodiment of the present application, a test verification environment construction device is provided, including:

[0025] an acquisition module configured to acquire a hardware design file of a system to be tested; the system to be tested includes a host device and a slave device; the host device is communicatively connected with the slave device, the host device includes a first analog circuit, the slave device includes a second analog circuit, and the first analog circuit and the second analog circuit are described by a synthesizable model;

[0026] A generation module is configured to input the hardware design file into a software and hardware verification platform, and the software and hardware verification platform generates a configuration file for the hardware in the system to be tested based on the hardware design file;

[0027] The burning module is configured to burn the configuration file into the hardware accelerator of the software and hardware verification platform to complete the construction of the test verification environment.

[0028] According to a third aspect of an embodiment of the present application, a testing method is provided, including:

[0029] In the test verification environment built using the above method,

[0030] Receive test operations;

[0031] The test verification environment is run based on the test operation to test any one of the host device and the slave device to obtain a test result.

[0032] In one embodiment, when the host device includes a first interface, the slave device includes a second interface, and the first interface is communicatively connected with the second interface, the test operation is a read-write operation;

[0033] The running of the test verification environment based on the test operation to test any one of the host device and the slave device includes:

[0034] The test verification environment is run based on the read and write operations to test any one of the first interface and the second interface.

[0035] According to a fourth aspect of an embodiment of the present application, a testing device is provided, including:

[0036] A receiving module is configured to receive a test operation in a test verification environment constructed using the above method;

[0037] The test module is configured to run the test verification environment based on the test operation, test any one of the host device and the slave device, and obtain a test result.

[0038] According to a fifth aspect of an embodiment of the present application, there is provided an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program executable by the processor; the processor is used to execute the computer program in the memory to implement the above method.

[0039] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the executable computer program in the storage medium is executed by a processor, the above method can be implemented.

[0040] According to a seventh aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, which implements the above method when executed by a processor.

[0041] Compared with the prior art, the beneficial effect of the present application is that: by obtaining the hardware design file of the system to be tested, wherein the system to be tested includes a host device and a slave device, the host device and the slave device are in communication connection, the host device includes a first analog circuit, the slave device includes a second analog circuit, the first analog circuit and the second analog circuit are described by a synthesizable model, then the hardware design file is input into the software and hardware verification platform, the software and hardware verification platform generates a configuration file of the hardware in the system to be tested based on the hardware design file, then the configuration file is burned into the hardware accelerator of the software and hardware verification platform, and the test verification environment is completed. Since the first analog circuit and the second analog circuit are described by a synthesizable model, the description of the first analog circuit and the second analog circuit can be converted into the actual hardware circuit in the hardware accelerator, and then the simulation of the first analog circuit and the second analog circuit can be realized, and any one of the first analog circuit and the second analog circuit can be tested and verified. Therefore, the technical solution of the present application can also test the analog circuit part in the device, improve the completeness of the test verification, and thus shorten the development cycle and reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A method for testing a UFS device according to the related art is shown.

[0043] Figure 2 The present invention is a flowchart of a method for building a test verification environment according to an exemplary embodiment.

[0044] Figure 3 The present invention is a flowchart of another method for building a test verification environment according to an exemplary embodiment.

[0045] Figure 4 A solution for testing a UFS interface device is shown according to an exemplary embodiment.

[0046] Figure 5 The present invention is a flowchart of another method for building a test verification environment according to an exemplary embodiment.

[0047] Figure 6 Another solution for testing a UFS interface device is shown according to an exemplary embodiment.

[0048] Figure 7 The figure is a flow chart of a testing method according to an exemplary embodiment.

[0049] Figure 8 The invention is a block diagram of a device for building a test verification environment according to an exemplary embodiment.

[0050] Fig. 9It is a block diagram of a testing device according to an exemplary embodiment.

[0051] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0052] Unless otherwise defined, the technical terms or scientific terms used in this specification and claims shall have the usual meanings understood by persons with ordinary skills in the technical field to which the invention belongs. The specific embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be noted that in the specific description of these embodiments, in order to provide a concise description, it is impossible for this specification to provide a detailed description of all the features of the actual embodiments. Without departing from the spirit and scope of the present invention, those skilled in the art may modify and replace the embodiments of the present invention, and the resulting embodiments are also within the scope of protection of the present invention.

[0053] In the related art, when a software and hardware acceleration verification platform is used to verify UFS (Universal Flash Storage) IP (Intellectual Property), due to the limitations of the software and hardware acceleration verification platform, the analog circuit part cannot be called for synthesis. Therefore, the PHY (Physical Layer) part is ignored during the verification, and the necessary function and performance verification of this part is not actually performed. Figure 1 It is a solution for testing UFS devices.

[0054] like Figure 1 As shown, the system to be tested includes a UFS host device 11 and a UFS slave device 12, the UFS host device 11 includes a first storage interface (not shown), the UFS slave device 12 includes a second storage interface (not shown), and the first storage interface is communicatively connected with the second storage interface. The UFS host device 11 and the UFS slave device 12 are connected via a first transmission control signal line 13, a first transmission data signal line 14, a first reception control signal line 15, and a first reception data signal line 16.

[0055] The UFS host device 11 includes a UFS host 111 and a physical layer 112 , and the UFS host 111 and the physical layer 112 are connected via a control signal line 113 and a data signal line 114 . The physical layer 112 includes an analog part 1121 and a digital part 1122 .

[0056] The UFS slave device 12 includes a UFS slave device transaction processor (UFSDevice Transactor) 121 and a first universal protocol model (Unipro Model1) 122 connected to each other. The UFS slave device transaction processor 121 and the first universal protocol model 122 are connected via a first differential signal line 124. The UFS slave device transaction processor 121 is a software component, and can use the platform's own memory to create or instantiate a virtual storage device, and the first universal protocol model 122 is a UFS host Controller.

[0057] like Figure 1 As shown, a solution to the above problem is that the PHY part is implemented by replacing the Transactor (transaction processor): physical layer channel model (MPHY RMMI Lane Model) 123. The first general protocol model 122 is connected to the physical layer channel model 123 through the second transmission control signal line 125, the second transmission data signal line 126, the second reception control signal line 127 and the second reception data signal line 128.

[0058] Among them, MPHY is a multi-function PHY defined by MIPI (Mobile Industry Processor Interface).

[0059] RMMI is Reference M-PHY Model Interface, which generally refers to a simulation interface or model that represents the MPHY physical layer specification defined by MIPI.

[0060] MPHY provides a physical layer that supports multiple lanes, each with different speeds to suit various applications and performance requirements. It is designed to handle high-speed serial communications while maintaining low power consumption, which is critical for mobile devices.

[0061] Although the function of the transactor is close to perfect, there is still a big gap between the actual module function, so there is actually a huge difference between the verification platform and the actual chip in the pre-silicon (PreSilicon) and post-silicon (PostSilicon) stages. This will lead to: (1) The full set of software development and debugging cannot be completed in the PreSilicon stage, especially for high-speed interface modules. Because of the compatibility issues between different test platform devices, it will lead to huge debug time loss after the return of the chip, delaying the product launch time. (2) Due to the incompleteness of verification, other platforms are urgently needed to make up for the test defects. This will cause strong demand for self-developed PHY boards in the peripheral hardware of other platforms, increasing the development cycle and labor costs; purchasing third-party test PHY boards is costly, and there are software and hardware compatibility issues, which also increases the product development cycle.

[0062] In order to solve the above technical problems, the present application proposes a method for building a test and verification environment, a test method, an apparatus, an electronic device, a storage medium and a computer program product, which can test the analog circuit part of the interface, improve the completeness of the test and verification, thereby shortening the development cycle and reducing costs.

[0063] An embodiment of the present application provides a method for building a test verification environment. The method for building a test verification environment can be applied to a computer or cloud service equipped with a software and hardware verification platform. Figure 2 The method for building the test verification environment may include the following steps 201 to 203:

[0064] Step 201, obtain the hardware design file of the system to be tested; the system to be tested includes a host device and a slave device; the host device and the slave device are communicatively connected, the host device includes a first analog circuit, the slave device includes a second analog circuit, and the first analog circuit and the second analog circuit are described using a synthesizable model.

[0065] Step 202: input the hardware design file into the software and hardware verification platform, and the software and hardware verification platform generates a configuration file of the hardware in the system to be tested based on the hardware design file.

[0066] Step 203, burning the configuration file into the hardware accelerator of the software and hardware verification platform to complete the construction of the test verification environment.

[0067] In this embodiment, the hardware design file of the system to be tested can be obtained and imported into the software and hardware verification platform, wherein the system to be tested may include a host device and a slave device. The working mode of the device (host device, slave device) can be configured in advance by enabling a selection signal. Either the host device or the slave device can be used as the device to be tested, or both can be used as the device to be tested.

[0068] In this embodiment, the host device may include a first analog circuit, and the slave device may include a second analog circuit, wherein the first analog circuit and the second analog circuit may be described by a synthesizable model.

[0069] In this embodiment, since the first analog circuit and the second analog circuit are described by a synthesizable model, the description of the first analog circuit and the second analog circuit can be converted into an actual hardware circuit in the hardware accelerator, thereby realizing the simulation of the first analog circuit and the second analog circuit, and testing and verifying any one of the first analog circuit and the second analog circuit. Therefore, the technical solution of the present application can test the analog circuit part of the device, improve the completeness of the test verification, thereby shortening the development cycle and reducing costs.

[0070] In this embodiment, burning the configuration file into the hardware accelerator of the software and hardware verification platform can also be expressed as: downloading the configuration file into the hardware accelerator of the software and hardware verification platform, or burning the hardware accelerator of the software and hardware verification platform based on the configuration file.

[0071] The above briefly introduces the method for building a test verification environment in the present application. The following is a detailed introduction to the method for building a test verification environment in the present application.

[0072] An embodiment of the present application provides a method for building a test verification environment. The method for building a test verification environment is applied to a computer equipped with a software and hardware verification platform. Figure 3 The method for building the test verification environment may include the following steps 301 to 303:

[0073] Step 301, obtain the hardware design file of the system to be tested; the system to be tested includes a host device and a slave device; the host device and the slave device are communicatively connected, the host device includes an instantiated first analog circuit, the slave device includes an instantiated second analog circuit, and the first analog circuit and the second analog circuit are described using a synthesizable model.

[0074] Hardware design engineers can use EDA (electronic design automation) tools on computers (or workstations) to design and simulate hardware and obtain the hardware design files of the system to be tested. The computer equipped with EDA and the computer equipped with the software and hardware verification platform can be the same computer or different computers.

[0075] In this embodiment, the computer equipped with EDA and the computer equipped with the software and hardware verification platform may be different computers. Step 301 is performed by the computer equipped with the software and hardware verification platform.

[0076] like Figure 4As shown, the system to be tested designed by a hardware design engineer using an EDA tool on a computer (or workstation) may include a host device 41 and a slave device 42. The slave device 42 is a UFS (Universal Flash Storage) device, and the slave device 42 is a device to be tested. The host device 41 is a UFS host device. In other embodiments, the host device 41 may also be a device to be tested.

[0077] In this embodiment, the host device 41 is a main control device with a UFS interface, such as a smart phone, a tablet computer or other embedded systems.

[0078] In this embodiment, if Figure 4 As shown, the host device 41 and the slave device 42 may be connected via a parallel interface (ParallelInterface) 43 and an auxiliary signal line (Aux signals) 44. The auxiliary signal line 44 may include a plurality of signal lines for transmitting auxiliary signals.

[0079] In this embodiment, the host device 41 may include a UFS host (Host) 411 and a first interface (not shown), and the first interface is a storage interface.

[0080] In this embodiment, if Figure 4 As shown, the first interface may include a first physical layer (PHY1) 412. The UFS host 411 is connected to the first physical layer 412 via a third transmission control signal line 413, a third transmission data signal line 414, a third reception control signal line 415, and a third reception data signal line 416.

[0081] In this embodiment, the first physical layer (PHY1) 412 may be MPHY, which is a multi-functional PHY defined by MIPI (Mobile Industry Processor Interface).

[0082] In this embodiment, if Figure 4 As shown, the first physical layer 412 may include a first analog circuit (A1) 4121 and a first digital circuit (D1) 4122, the first analog circuit 4121 is described using a synthesizable model, and the first digital circuit 4122 is described using a register transfer level (RTL) language.

[0083] In this embodiment, the UFS host 411 and the first physical layer 412 are both synthesizable blocks.

[0084] In this embodiment, if Figure 4As shown, the slave device 42 may include a device transaction processor (DeviceTransactor) 421, a second universal protocol model (Unipro Model2) 422 and a second interface (not shown). The second interface is a storage interface. The device transaction processor 421 is connected to the second universal protocol model 422 through a second differential signal line 423, and the second universal protocol model 422 is connected to the second interface through a fourth transmission control signal line 424, a fourth transmission data signal line 425, a fourth reception control signal line 426 and a fourth reception data signal line 427. The first interface is connected to the second interface in communication.

[0085] In this embodiment, if Figure 4 As shown, the second interface may include a second physical layer (PHY2) 428. The second physical layer (PHY2) 428 is connected to the second general protocol model 422 via a second differential signal line 423, and the second general protocol model 422 is connected to the second interface via a fourth transmit control signal line 424, a fourth transmit data signal line 425, a fourth receive control signal line 426, and a fourth receive data signal line 427.

[0086] In this embodiment, if Figure 4 As shown, the second physical layer (PHY2) 428 may include a second analog circuit (A2) 4281 and a second digital circuit (D2) 4282, the second analog circuit 4281 is described using a synthesizable model, and the second digital circuit 4282 is described using a register transfer level (RTL) language.

[0087] In this embodiment, the second physical layer (PHY2) 428 may be MPHY.

[0088] In this embodiment, since the first analog circuit and the second analog circuit are described by a synthesizable model, the description of the first analog circuit and the second analog circuit can be converted into an actual hardware circuit in the hardware accelerator, and then the simulation of the first analog circuit and the second analog circuit can be realized, and any one of the first analog circuit and the second analog circuit can be tested and verified. Therefore, the technical solution of the present application can test the analog circuit part of the interface, improve the completeness of the test verification, and then shorten the development cycle and reduce costs.

[0089] In this embodiment, the hardware design engineer can instantiate the first analog circuit and the second analog circuit in the process of creating the hardware design file of the system to be tested using the EDA tool on the computer (or workstation). Therefore, the first interface includes the instantiated first analog circuit, and the second interface includes the instantiated second analog circuit. The instantiated first analog circuit is the same as the instantiated second analog circuit. That is, the same analog circuit is instantiated on the host device side and the slave device side.

[0090] In hardware description languages ​​(HDLs) such as Verilog or VHDL, instantiation refers to creating an instance of another module in a top-level module. This is often used to build complex hardware systems where the top-level module contains multiple sub-modules. Each instance of a sub-module is created by declaring the sub-module's name and port connections in the top-level module. In this way, the top-level module can connect different sub-modules to form a complete hardware design. For example, if you have an adder module and a multiplier module, you can instantiate these modules in the top-level module to create their instances and connect them together to implement more complex calculation functions.

[0091] Instantiating the same analog circuit on the host device side and the slave device side means using or duplicating the same analog circuit in the design of the host device and the slave device, respectively. The analog circuit is part of the UFS storage interface and is responsible for handling the physical connection and signal transmission between the UFS device and the slave device.

[0092] Instantiating the same analog circuits on both the host and slave sides helps ensure the quality and performance of communication between the host and slave devices, thereby improving the stability and reliability of the entire system.

[0093] Step 302: Input the hardware design file into the software and hardware verification platform, and the software and hardware verification platform generates a configuration file of the hardware in the system to be tested based on the hardware design file.

[0094] In this embodiment, the hardware design file can be imported into the software and hardware verification platform, and the software and hardware verification platform generates the following based on the hardware design file: Figure 4 The configuration file (also called bitstream file (bitfile)) of the hardware in the system to be tested is shown.

[0095] Step 303, burning the configuration file into the hardware accelerator of the software and hardware verification platform, thereby completing the construction of the UFS interface test verification environment.

[0096] In this embodiment, the above configuration file is burned into the hardware accelerator of the software and hardware verification platform to complete the construction of the test verification environment. Among them, the hardware accelerator can be an FPGA chip, but is not limited to this.

[0097] In this embodiment, the slave device and the master device can be in the form of a chip. The chip verification engineer can complete the real verification in the Pre-Silicon stage through various read and write operations. This not only verifies the function and performance of the chip (slave device or master device) in advance, reduces the risk and development cost of chip revision, but also prepares the verification environment in advance for the chip verification in the PostSilicon stage, thereby greatly accelerating the time to market of the chip.

[0098] Another exemplary embodiment of the present application also provides a method for building a test verification environment. Based on the above embodiment, in this embodiment, when the software and hardware verification platform generates a configuration file for the hardware in the system to be tested based on the hardware design file, the first clock module of the host device and the second clock module of the slave device are emptied, and the first clock simulation module of the software and hardware verification platform is used to replace the first clock module, and the second clock simulation module of the software and hardware verification platform is used to replace the second clock module. Figure 5 As shown, the method for building the test verification environment may include the following steps 501 to 503:

[0099] Step 501, obtain the hardware design file of the system to be tested; the system to be tested includes a host device and a slave device; the host device and the slave device are communicatively connected, the host device includes a first analog circuit, the slave device includes a second analog circuit, and the first analog circuit and the second analog circuit are described using a synthesizable model.

[0100] Step 502, input the hardware design file into the software and hardware verification platform, and the software and hardware verification platform generates a configuration file for the hardware in the system to be tested based on the hardware design file; in the process of generating the configuration file for the hardware in the system to be tested, the first clock module of the host device and the second clock module of the slave device are emptied, and the first clock simulation module of the software and hardware verification platform is used to replace the first clock module, and the second clock simulation module of the software and hardware verification platform is used to replace the second clock module.

[0101] In this embodiment, on the basis of the above-mentioned step 302, in the process of the software and hardware verification platform generating a configuration file for the hardware in the system to be tested based on the hardware design file, the first clock module of the host device and the second clock module of the slave device are also null-processed, and the first clock simulation module of the software and hardware verification platform is used to replace the first clock module, and the second clock simulation module of the software and hardware verification platform is used to replace the second clock module.

[0102] In this embodiment, since the first clock module of the host device and the second clock module of the slave device cannot be synthesized, they need to be processed empty. Specifically, since the clock source modules such as PLL (phase-locked loop) included in the first clock module of the host device and the second clock module of the slave device cannot be synthesized, they need to be processed empty.

[0103] In this embodiment, if Figure 6 As shown, the first clock simulation module 61 is connected to the host device 41 through the first clock control signal line 63 and the first clock signal line 64. The first clock control signal line 63 is used to transmit the first clock control signal from the host device 41, and the first clock signal line 64 is used to transmit the first clock signal from the first clock simulation module 61 to the host device 41. The first clock simulation module 61 generates a corresponding first clock signal according to the first clock signal. For example, various required clock frequencies, PWM clocks, High Speed ​​Gear clocks, etc. can be generated.

[0104] like Figure 6 As shown, the first clock simulation module 61 includes a first clock source simulation module 611 and a first clock multiplexer (Clock Mux1) 612, and the first clock source simulation module 611 and the first clock multiplexer (Clock Mux1) 612 are connected through a first clock source signal line 613. The first clock source simulation module, for example, can be a clock delay port (ClockDelayPort) unit provided by the platform.

[0105] The first clock source simulation module 611 is used to provide a first clock source (Clock Source), and the first clock multiplexer 612 is used to generate a corresponding first clock signal according to the first clock source and a first clock control signal from the host device 41 , and transmit the first clock signal to the host device 41 .

[0106] like Figure 6 As shown, the first clock multiplexer 612 includes a first PWM clock module 6121 and a first HSG clock module 6122. The first PWM clock module 6121 is used to generate a first PWM clock signal, and the first HSG clock module 6122 is used to generate a first High Speed ​​Gear clock signal. The High Speed ​​Gear clock signal is a high-speed clock signal used to drive a high-speed digital circuit or clock network. This clock signal usually has a higher frequency and can provide sufficient bandwidth to support high-speed data transmission and processing.

[0107] like Figure 6As shown, the second clock simulation module 62 is connected to the slave device 42 via the second clock control signal line 65 and the second clock signal line 66. The second clock control signal line 65 is used to transmit the second clock control signal from the slave device 42, and the second clock signal line 66 is used to transmit the second clock signal from the second clock simulation module 62 to the slave device 42. The second clock simulation module 62 generates a corresponding second clock signal according to the second clock signal. For example, various required clock frequencies, PWM clocks, High Speed ​​Gear clocks, etc. can be generated.

[0108] The second clock simulation module 62 includes a second clock source simulation module 621 and a second clock multiplexer (ClockMux2) 622, which are connected via a second clock source signal line 623. The second clock source simulation module 621 may be a clock delay port (ClockDelayPort) unit provided by the platform.

[0109] The second clock source simulation module 621 is used to provide a second clock source, and the second clock multiplexer 622 is used to generate a corresponding second clock signal according to the second clock source and a second clock control signal from the slave device 42 , and transmit the second clock signal to the slave device 42 .

[0110] like Figure 6 As shown, the second clock multiplexer 622 includes a second PWM clock module 6221 and a second HSG clock module 6222. The second PWM clock module 6221 is used to generate a second PWM clock signal, and the second HSG clock module 6222 is used to generate a second High Speed ​​Gear clock signal.

[0111] It should be noted that in hardware design verification, when some design parts (such as PLL clock source modules) cannot be used directly in the verification environment because they are not synthesizable (that is, they cannot be converted into actual hardware through EDA tools), nulling is usually required. Nulling is a technique that allows the design team to simulate the behavior of these modules in the verification environment without actually implementing them.

[0112] The ClockDelayPort unit provided by the software and hardware verification platform is used to simulate the propagation delay of the clock signal in the circuit. When the clock source modules such as PLL in the chip cannot be used directly in the verification environment because they are not synthesizable, the ClockDelayPort unit can be used to simulate the behavior of these clock source modules. This means that the ClockDelayPort unit will be used to generate simulated clock signals, which will be used for clock management of the test platform.

[0113] like Figure 6 As shown, in this embodiment, the first physical layer (PHY1) 412 includes a first model (Model1) 4123 and a first isolator (Isolator1) 4124. The first model (Model1) 4123 is a synthesizable model used to describe the first analog circuit. The first isolator (Isolator1) 4124 is used to isolate the first analog circuit from the first digital circuit.

[0114] like Figure 6 As shown, in this embodiment, the second physical layer (PHY2) 428 includes a second model (Model2) 4283 and a second isolator (Isolator2) 4284. The second model 4283 is a synthesizable model used to describe the second analog circuit. The second isolator 4284 is used to isolate the second analog circuit from the second digital circuit.

[0115] like Figure 6 As shown, in this embodiment, the system to be tested further includes a first application layer 67 and a second application layer 68. The first application layer 67 is a host device application layer (Host Application Layer), and the second application layer 68 is a slave device application layer (Device Application Layer). The first application layer 67 interacts with the host device 41 through the first software port C-port1, and the second application layer 68 interacts with the slave device 42 through the second software port C-port2.

[0116] In this embodiment, if Figure 6 As shown, the host device 41, the slave device 42, the first clock simulation module 61 and the second clock simulation module 62 and their connecting signal lines belong to the hardware part 69 which can be converted into an actual hardware circuit in the hardware accelerator.

[0117] Step 503, burning the configuration file into the hardware accelerator of the software and hardware verification platform to complete the construction of the test verification environment.

[0118] In this embodiment, step 503 is similar to the above-mentioned step 303 and will not be described in detail herein.

[0119] In this embodiment, in the process of generating a configuration file for the hardware in the system to be tested, by performing null processing on the first clock module of the host device and the second clock module of the slave device, the first clock module is replaced by the first clock simulation module of the software and hardware verification platform, and the second clock module is replaced by the second clock simulation module of the software and hardware verification platform, the clock module part can also be tested, thereby improving the completeness of the test verification, thereby shortening the development cycle and reducing costs.

[0120] Another exemplary embodiment of the present application also provides a testing method. Figure 7 As shown, the test method may include the following steps 701 to 702:

[0121] Step 701: receiving a test operation in a test verification environment constructed by using the above test verification environment construction method.

[0122] Step 702: Run the test verification environment based on the test operation, test any one of the host device and the slave device, and obtain a test result.

[0123] In this embodiment, the test verification environment can be built by using the test verification environment building method of any of the above embodiments, and in the built test verification environment, a test operation is received, and the test verification environment is run based on the test operation, and the host device or the slave device is tested to obtain the test results, or both the host device and the slave device are tested to obtain the test results.

[0124] It should be noted that in the electronic design automation (EDA) and semiconductor industries, running a test verification environment usually refers to setting up and executing a series of tests on a specific hardware or software platform to verify the correctness and performance of the design. The test verification environment may include hardware emulators, FPGA chips, ASIC prototype boards, PCBs (printed circuit boards), and various software tools and test equipment.

[0125] In one embodiment, the host device may be in the form of a chip, and the slave device may be in the form of a chip.

[0126] In one embodiment, the host device includes a first interface, the slave device includes a second interface, and the first interface is communicatively connected to the second interface. The first interface includes a first analog circuit, and the second interface includes a second analog circuit. The test operation may be a read-write operation. In step 702, a test verification environment may be run based on the read-write operation to test the first interface or the second interface, or to test both the first interface and the second interface, so as to implement a UFS interface test.

[0127] In this embodiment, chip verification engineers can complete the real verification in the Pre-Silicon stage through various read and write operations, etc. This not only verifies the functions and performance of the chip in advance, reduces the risk and development cost of chip revision, but also prepares the verification environment for chip verification in the PostSilicon stage in advance, thereby greatly accelerating the time to market of the chip.

[0128] Figure 8 FIG. 1 is a block diagram of a device for building a test verification environment according to an exemplary embodiment. Figure 8 As shown, in this embodiment, the test verification environment building device includes:

[0129] The acquisition module 81 is configured to acquire a hardware design file of the system to be tested; the system to be tested includes a host device and a slave device; the host device and the slave device are in communication connection, the host device includes a first analog circuit, the slave device includes a second analog circuit, and the first analog circuit and the second analog circuit are described by a synthesizable model;

[0130] A generating module 82 is configured to input the hardware design file into a software and hardware verification platform, and the software and hardware verification platform generates a configuration file of the hardware in the system to be tested based on the hardware design file;

[0131] The burning module 83 is configured to burn the configuration file into the hardware accelerator of the software and hardware verification platform to complete the construction of the test verification environment.

[0132] Fig. 9 FIG. 1 is a block diagram of a testing device according to an exemplary embodiment. Fig. 9 As shown, in this embodiment, the testing device includes:

[0133] The receiving module 91 is configured to receive a test operation in the test verification environment constructed by adopting the above-mentioned test verification environment construction method.

[0134] The test module 92 is configured to run the test verification environment based on the test operation, test any one of the host device and the slave device, and obtain a test result.

[0135] An embodiment of the present application also proposes an electronic device, including a processor and a memory; the memory is used to store a computer program executable by the processor; the processor is used to execute the computer program in the memory to implement the interface testing method of any of the above embodiments.

[0136] The embodiments of the present application further provide a computer-readable storage medium, which can implement the interface testing method of any of the above embodiments when the executable computer program in the storage medium is executed by a processor.

[0137] An embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the driving method of the universal serial bus interface of any of the above embodiments.

[0138] Regarding the device in the above embodiment, the specific manner in which the processor performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0139] Fig.10 900 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 900 may be provided as a server. Fig.10The device 900 includes a processing component 922, which further includes one or more processors, and a memory resource represented by a memory 932 for storing instructions that can be executed by the processing component 922, such as an application. The application stored in the memory 932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 922 is configured to execute instructions to perform the above-mentioned test verification environment construction method and testing method.

[0140] The device 900 may also include a power component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input / output (I / O) interface 958. The device 900 may operate based on an operating system stored in the memory 932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or the like.

[0141] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 932 including instructions, which can be executed by the processing component 922 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0142] In the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.

[0143] The above description of the embodiments is to facilitate those of ordinary skill in the art to understand and apply the present application. It is obvious that those familiar with the art can easily make various modifications to these embodiments and apply the general principles described herein to other embodiments without having to pay creative labor. Therefore, the present application is not limited to the embodiments herein, and improvements and modifications made by those skilled in the art based on the contents disclosed in the present application without departing from the scope and spirit of the present application are within the scope of the present application.

Claims

1. A method for building a test verification environment, characterized in that: include: Obtaining a hardware design file of a system to be tested; the system to be tested includes a host device and a slave device; The host device is communicatively connected with the slave device, the host device includes a first analog circuit, the slave device includes a second analog circuit, and the first analog circuit and the second analog circuit are described by a synthesizable model; Inputting the hardware design file into a software and hardware verification platform, wherein the software and hardware verification platform generates a configuration file for the hardware in the system to be tested based on the hardware design file; Burn the configuration file into the hardware accelerator of the software and hardware verification platform to complete the construction of the test verification environment.

2. The method for building a test verification environment according to claim 1, characterized in that: The host device includes a first interface, the slave device includes a second interface, the first interface is communicatively connected with the second interface, the first interface includes the first analog circuit, and the second interface includes the second analog circuit.

3. The method for building a test verification environment according to claim 1, characterized in that: The master device includes an instantiated first analog circuit, and the slave device includes an instantiated second analog circuit.

4. The method for building a test verification environment according to claim 1, wherein: Also includes: During the process of the hardware and software verification platform generating a configuration file for the hardware in the system to be tested based on the hardware design file, the first clock module of the host device and the second clock module of the slave device are null processed, and the first clock simulation module of the hardware and software verification platform is used to replace the first clock module, and the second clock simulation module of the hardware and software verification platform is used to replace the second clock module.

5. The method for building a test verification environment as claimed in claim 4, characterized in that: The first clock simulation module includes a first clock source simulation module and a first clock multiplexer, and the second clock simulation module includes a second clock source simulation module and a second clock multiplexer; The first clock source simulation module is used to provide a first clock source, and the first clock multiplexer is used to generate a corresponding first clock signal according to the first clock source and a first clock control signal from the host device; The second clock source simulation module is used to provide a second clock source, and the second clock multiplexer is used to generate a corresponding second clock signal according to the second clock source and a second clock control signal from the slave device.

6. The method for building a test verification environment as claimed in claim 2, characterized in that: The slave device is a universal flash storage UFS device.

7. The method for building a test verification environment according to claim 6, characterized in that: The first analog circuit is an analog circuit in a physical layer PHY of the UFS device, and the second analog circuit is an analog circuit in a physical layer PHY of the UFS device.

8. The method for building a test verification environment as claimed in claim 2, characterized in that: The first interface further includes a first digital circuit, and the second interface further includes a second digital circuit. The first digital circuit and the second digital circuit are described using a register transfer level (RTL) language.

9. The method for building a test verification environment according to claim 1, wherein: The hardware accelerator is an FPGA chip.

10. A device for building a test verification environment, characterized in that: include: An acquisition module is configured to acquire a hardware design file of a system to be tested; the system to be tested includes a host device and a slave device; The host device is communicatively connected with the slave device, the host device includes a first analog circuit, the slave device includes a second analog circuit, and the first analog circuit and the second analog circuit are described by a synthesizable model; A generation module is configured to input the hardware design file into a software and hardware verification platform, and the software and hardware verification platform generates a configuration file for the hardware in the system to be tested based on the hardware design file; The burning module is configured to burn the configuration file into the hardware accelerator of the software and hardware verification platform to complete the construction of the test verification environment.

11. A testing method, characterized in that: include: In a test verification environment constructed by the method described in any one of claims 1 to 9, receiving a test operation; The test verification environment is run based on the test operation to test any one of the host device and the slave device to obtain a test result.

12. The method for building a test verification environment according to claim 11, characterized in that: When the host device includes a first interface, the slave device includes a second interface, and the first interface is communicatively connected with the second interface, the test operation is a read-write operation; The running of the test verification environment based on the test operation to test any one of the host device and the slave device includes: The test verification environment is run based on the read and write operations to test any one of the first interface and the second interface.

13. A testing device, characterized in that: include: A receiving module, configured to receive a test operation in a test verification environment constructed by the method described in any one of claims 1 to 9; The test module is configured to run the test verification environment based on the test operation, test any one of the host device and the slave device, and obtain a test result.

14. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory is used to store a computer program executable by the processor; the processor is used to execute the computer program in the memory to implement the method according to any one of claims 1 to 9 and 11 to 12.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 1 to 9 and 11 to 12 can be implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 9 and 11 to 12 is implemented.