USB Host Authentication System

By adopting the USB host verification system in the on-chip system and utilizing the XHCI protocol proxy module and UVM framework, the problem of low USB host verification efficiency is solved, and comprehensive function point coverage and efficient verification of the USB host are achieved.

CN118569156BActive Publication Date: 2024-10-25成都星拓微电子科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411043011.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-25
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

There is a problem of low efficiency in verifying the USB host that supports the XHCI protocol in the system-on-chip. The existing technology is not enough to effectively cover all the function points of the USB host, resulting in low verification efficiency.

Method used

A USB host verification system is adopted, including the design module to be tested, the XHCI protocol agent module and the application-side AXI bus agent module. By constructing a virtual memory and maintaining the XHCI protocol data structure, XHCI protocol data processing is realized, and the UVM framework and intellectual property rights are utilized. Nuclear verification module performs comprehensive verification.

Benefits of technology

It improves the verification efficiency, achieves comprehensive function point coverage of the USB host, has reusability and rapid portability, and is more efficient than the traditional verification system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569156B_ABST
    Figure CN118569156B_ABST
Patent Text Reader

Abstract

The present invention discloses a USB host verification system. In order to improve the USB host verification efficiency, the USB host verification system of the present invention includes a design module to be tested, an XHCI protocol proxy module and an application side AXI bus proxy module; the design module to be tested is a USB host, and the USB host includes an AXI host port, an AXI slave port, a USB physical layer port and a USB host controller; the XHCI protocol proxy module includes an XHCI protocol driver, and the XHCI protocol driver maintains the data structure specified by the XHCI protocol in the virtual memory by constructing a virtual memory; the application side AXI bus proxy module includes an application side AXI bus driver, and the application side AXI bus driver is connected to the AXI bus interface; the XHCI protocol proxy module calls the system memory read and write function or the register read and write function provided by the application side AXI bus proxy module, drives the logical port of the USB host controller, and realizes XHCI protocol data processing. The present invention solves the problem of low USB host verification efficiency and can realize efficient USB host verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of chip testing, and in particular to a USB host verification system. Background Art

[0002] Universal Serial Bus (USB) is a serial bus standard that connects computer systems and external devices. It is used to regulate the connection and communication process between computers and external devices. Generally, the USB system consists of three components: USB host, USB device, and USB hub. These three components communicate in accordance with the USB protocol specification.

[0003] A USB host is a device that acts as a master device in a USB bus and is responsible for managing data transmission and port management in the USB bus. A USB device is a device that acts as a slave device in a USB bus. A USB hub can convert one USB interface into multiple USB interfaces, and a USB host has a root hub. A USB hub is a USB device for the upstream and a USB host for the downstream.

[0004] The eXtensible Host Controller Interface (XHCI) protocol is the USB 3.0 interface standard. Compared with previous interface standards, its speed, energy saving, virtualization and other aspects have been greatly improved.

[0005] It is challenging to verify a USB host that supports the XHCI protocol in a System on Chip (SoC) because the protocol involves the cooperation of driver software, which requires the establishment and maintenance of a large number of table entries and data structures to monitor and drive the working status of the ports and interfaces of multiple devices mounted under the USB host, as well as the data reception and transmission process, which is inefficient.

[0006] The USB device-based verification system in the prior art is not sufficient to support the verification of such a USB host. In order to overcome the shortcomings of the prior art in verifying a USB host, the present invention provides a USB host verification system based on a Universal Verification Methodology (UVM) and a Verification Intellectual Property (VIP) module, which can cover all functional points of verifying a USB host and effectively improve the verification efficiency. Summary of the invention

[0007] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:

[0008] A USB host verification system comprises a design module to be tested, an XHCI protocol proxy module and an application-side AXI bus proxy module, wherein the design module to be tested is a USB host, and the USB host comprises an AXI host port, an AXI slave port, a USB physical layer port and a USB host controller; the XHCI protocol proxy module comprises an XHCI protocol driver, and the XHCI protocol driver constructs a virtual memory and maintains a data structure specified by the XHCI protocol in the virtual memory; the application-side AXI bus proxy module comprises an application-side AXI bus driver, and the application-side AXI bus driver is connected to an AXI bus interface; and the XHCI protocol proxy module calls a system memory read / write function or a register read / write function provided by the application-side AXI bus proxy module, thereby driving the logical port of the USB host controller and realizing an XHCI protocol data processing process.

[0009] Furthermore, the USB host verification system also includes a reference model, which is used to model the behavior of the USB host; the XHCI protocol agent module also includes an XHCI protocol sequence generator; the XHCI protocol sequence generator is connected to the XHCI protocol driver through a TLM port; the XHCI protocol driver performs a queue operation on the XHCI transmission packet sent by the XHCI protocol sequence generator; and the XHCI protocol driver packages the received data into an XHCI transmission packet and outputs it to the reference model.

[0010] Furthermore, the USB host verification system also includes a USB device intellectual property core verification agent module and a comparator; the upstream TLM port of the USB device intellectual property core verification agent module is connected to the upstream input port of the comparator to provide upstream comparison reference data for the comparator; the downstream TLM port of the USB device intellectual property core verification agent module is connected to the downstream input port of the comparator to provide downstream comparison reference data for the comparator.

[0011] Furthermore, the comparator is configured to: obtain a first transmission packet in a sending direction of the USB device intellectual property core verification agent module, and compare it with the USB transmission packet output by the reference model in a downstream direction; and obtain a second transmission packet in a receiving direction of the USB device intellectual property core verification agent module, and compare it with the XHCI transmission packet output by the reference model in an upstream direction.

[0012] Furthermore, the USB host verification system also includes an APB configuration interface proxy module and a register model; the APB configuration interface proxy module includes an APB configuration interface adapter; the APB configuration interface adapter is associated with the register model through a UVM framework function set_sequencer.

[0013] Furthermore, the USB host verification system also includes a configuration class; the configuration class includes: a working mode configuration switch, a comparator enable switch, a configuration class of the XHCI protocol agent module, a configuration class of the application side AXI bus agent module, a configuration class of the USB device intellectual property core verification agent module, and a configuration class of the APB configuration interface agent module.

[0014] Furthermore, the USB host verification system also includes an instantiated AXI slave interface, an instantiated AXI host interface and an instantiated APB interface; the USB host also includes an APB port; the instantiated AXI slave interface is connected to the AXI host port included in the USB host; the instantiated AXI host interface is connected to the AXI slave port included in the USB host; the instantiated APB interface is connected to the APB port included in the USB host.

[0015] Furthermore, the USB host verification system also includes an instantiated USB intellectual property core verification module interface; the instantiated USB intellectual property core verification module interface is connected to a USB physical layer port included in the USB host.

[0016] Furthermore, the reference model is configured to: convert transmission packets in the uplink direction and transmission packets in the downlink direction, and transmit the converted transmission packets to the comparator.

[0017] Furthermore, the APB configuration interface proxy module also includes an APB configuration interface sequence generator; the register model is configured to be connected to the APB configuration interface sequence generator through an adapter.

[0018] The technical solution of the present invention has one or more of the following beneficial technical effects:

[0019] (1) Compared with the traditional verification system based on Verilog or System Verilog hardware design and verification description language, the verification system of the present invention uses the UVM layered design method and the UVM factory mode to greatly improve the verification efficiency.

[0020] (2) The present invention is reusable and the verification system can be quickly transplanted to similar projects.

[0021] (3) The present invention uses an XHCI protocol proxy module to implement the processing of the XHCI protocol. The XHCI protocol proxy module does not directly drive the interface, but indirectly drives the port of the USB host by calling the function provided by the application-side AXI bus proxy module, thereby implementing the processing flow of the XHCI protocol.

[0022] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a structural schematic diagram of the USB host authentication system proposed by the present invention;

[0024] Figure 2 It is a schematic diagram of the structure of the design module to be tested;

[0025] Figure 3 It is a schematic diagram of the structure of the top layer of verification;

[0026] Figure 4 It is a structural diagram of the test case layer;

[0027] Figure 5 It is a schematic diagram of the structure of several agent modules included in the verification environment layer. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0030] Figure 1 The structure diagram of the USB host verification system proposed by the present invention is shown in FIG. In the present invention, the USB host verification system includes a verification top layer, a test case layer, and a verification environment layer, wherein the verification top layer includes a design under test (DUT).

[0031] The terms in the present invention, for example, "verification top layer", "test case layer", "verification environment layer", "reference model", "configuration class", "design module to be tested", "register model", etc., are all commonly used terms in the art, and their meanings can be determined by those skilled in the art based on the common technical knowledge in the art.

[0032] Figure 2 It is a structural diagram of the design module to be tested. In the present invention, the design module to be tested targeted by the USB host verification system refers to the USB host, which includes a USB host controller and a USB physical layer port.

[0033] In the present invention, the USB host supports the XHCI protocol, and the USB physical layer port supports four speed modes defined in the USB standard protocol, namely, low speed, full speed, high speed, and overspeed.

[0034] By way of example, there are four USB physical layer ports in the USB host: USB physical layer port 11 , USB physical layer port 12 , USB physical layer port 13 , and USB physical layer port 14 .

[0035] The application side of the design module to be tested of the present invention includes an Advanced Extensible Interface (AXI) host port, an AXI slave port and an Advanced Peripheral Bus (APB) configuration port, wherein the APB configuration port is used as a configuration port.

[0036] In the present invention, the term "application side" commonly used in the art refers to: a part closer to the user from the perspective of the device or module itself.

[0037] Figure 3 The top layer of the verification process is used to instantiate the design module and interface to be tested, and to establish the connection between the port and the interface of the design module to be tested.

[0038] In the present invention, the verification top layer includes: an instantiated design module to be tested, that is, an instantiated USB host; a plurality of instantiated interfaces, and a plurality of clock reset generators. For example, in one implementation, two clock reset generators may be included, namely, clock reset generator 31 and clock reset generator 32.

[0039] For example, in the validation top level, these instantiated interfaces include:

[0040] (1) four instantiated USB intellectual property core verification module interfaces: USB intellectual property core verification module interface 21, USB intellectual property core verification module interface 22, USB intellectual property core verification module interface 23, and USB intellectual property core verification module interface 24, which respectively correspond to the aforementioned four USB physical layer ports connected to the design module to be tested, so as to simulate the driving and signal receiving process of the USB device to the four physical layer ports of the USB host;

[0041] (2) An instantiated AXI slave interface: connected to the AXI host port of the USB host to receive and respond to data and requests from the USB host application side;

[0042] (3) 1 instantiated AXI host interface: connected to the AXI slave port of the USB host to send and respond to data and requests from the USB host application side;

[0043] (4) 1 instantiated APB interface: connected to the APB port of the USB host to configure the registers in the USB host or the design module to be tested.

[0044] The number of these interfaces is only an example. According to actual needs, the number of these interfaces can also be other number combinations. The present invention is not limited to this and is not limited to this.

[0045] Figure 4 It is a structural diagram of the test case layer. In the present invention, the test case layer is a test case set covering all functional points of the design modules to be tested, which includes a number of test cases for testing each functional point of the design modules to be tested.

[0046] For example, in order to obtain the test case set, a basic test case 40 is first constructed to create a verification environment instance, a register model instance and a configuration class instance, and other test cases 41 to 44 are all extended from the basic test case 40 .

[0047] These test cases generate test stimuli for each port of the design module to be tested by calling one or more constructed test sequences in a specific order. Each test case covers one or more functional points of the design module to be tested to fully verify the design module to be tested.

[0048] Preferably, different test cases are constructed by starting different test sequences step by step, and different test cases are used to cover different functional points of the design module to be tested.

[0049] The test case layer of the present invention is a plurality of verification function points extracted according to USB, XHCI protocols and the specifications of the design module to be tested, and generates verification stimuli for corresponding function points by calling a combination of test sequences in a specific order.

[0050] Furthermore, the test sequence is a class library developed together with the test case, which is used to generate test stimuli. According to different functional points to be verified, different test sequences must be constructed to generate different test stimuli to verify the design module to be tested.

[0051] For example, based on the port type classification, the test stimulus may include: sending data stimulus of the AXI host port on the application side of the design module to be tested, receiving data stimulus of the AXI slave port on the application side of the design module to be tested, reading and writing register data stimulus of the APB port on the application side of the design module to be tested, receiving data stimulus of the USB physical layer interface in the design module to be tested, and sending data stimulus of the USB physical layer interface in the design module to be tested.

[0052] In the present invention, the verification environment layer is a container for creating, starting, and scheduling each verification module. The verification environment layer includes a reference model, a comparator, a register model, a configuration class, and several proxy modules. Among them, these verification proxy modules include the following four proxy modules: USB device intellectual property core verification proxy module, application side AXI bus proxy module, APB configuration interface proxy module, and XHCI protocol proxy module.

[0053] Figure 5 It is a schematic diagram of the structure of several proxy modules included in the verification environment layer. Preferably, the several proxy modules have four proxy modules in total: a first proxy module, a second proxy module, a third proxy module and a fourth proxy module.

[0054] Among them, the first agent module is a USB device intellectual property core verification agent module; the second agent module is an application side AXI bus agent module; the third agent module is an APB configuration interface agent module; and the fourth agent module is an XHCI protocol agent module.

[0055] Furthermore, the USB device intellectual property core verification agent module includes: a USB protocol driver, a USB protocol monitor, and a USB protocol sequence generator. The application side AXI bus agent module includes: an application side AXI bus driver, an application side AXI bus monitor, and an application side AXI bus sequence generator. The APB configuration interface agent module includes: an APB configuration interface driver, an APB configuration interface monitor, and an APB configuration interface sequence generator. The XHCI protocol agent module includes: an XHCI protocol driver and an XHCI protocol sequence generator.

[0056] The reference model in the present invention is used to model the behavior of the design module to be tested or the USB host, and the transmission packets in the upstream direction and the transmission packets in the downstream direction are converted or processed and then transmitted to the comparator for comparison.

[0057] In the downstream direction, the reference model receives a downstream transmission packet output from the XHCI protocol driver in the XHCI protocol proxy module, converts it into a USB transmission packet, and outputs the USB transmission packet.

[0058] In the upstream direction, the USB device intellectual property core verification agent module receives the upstream transmission packet output from the USB physical layer port, converts it into an XHCI transmission packet, and outputs the XHCI transmission packet.

[0059] The aligner in the present invention is configured to perform:

[0060] (1) obtaining the first transmission packet sent by the USB device intellectual property core verification agent module, and comparing it with the USB transmission packet output by the reference model in the downstream direction; and,

[0061] (2) Obtain the second transmission packet in the receiving direction of the USB device intellectual property core verification agent module, and compare it with the XHCI transmission packet output by the reference model in the upstream direction.

[0062] Furthermore, the comparator establishes connections with the sending port of the USB device intellectual property core verification agent module, the output port of the XHCI protocol agent module, and the output port of the reference model respectively.

[0063] The register model in the present invention is to model the register of the design module to be tested, and to perform write and read operations on the register through the front door or back door access mode. Further, the register model is connected to the APB configuration interface sequence generator in the APB configuration interface proxy module through an adapter.

[0064] Furthermore, the register model in the present invention is a data model established for the registers of the design module to be tested by adopting the UVM register model.

[0065] The configuration class in the present invention includes the configuration class of each proxy module in the verification environment layer, the working mode configuration switch, and the comparator enable switch. Optionally, the configuration class is passed to the user end through a handle, for example, for making judgments in test cases, test sequences, reference models, or / and comparators.

[0066] Different from the dynamic data flows associated with various proxy modules, the register model and configuration class in the present invention are essentially configuration data and belong to static modules.

[0067] The first proxy module in the present invention, namely the USB device intellectual property core verification proxy module, refers to the use of the developed USB intellectual property core verification module, and its proxy module is configured into the USB device working mode, including: USB protocol driver, USB protocol monitor, USB protocol sequence generator.

[0068] The USB protocol driver in the present invention drives the transmission packet of the USB device to the physical layer port of the design module to be tested according to the USB protocol timing. The USB protocol monitor samples the transmission packet of the physical layer port of the design module to be tested and sends it to the comparator. The USB protocol sequence generator is connected to the USB protocol driver, generates a transmission packet according to the USB protocol, and then sends it to the driver.

[0069] In the present invention, the USB host processes the input data according to the USB 3.0 protocol and generates corresponding output data. The USB protocol monitor in the USB device intellectual property verification agent module and the APB configuration interface monitor in the APB configuration interface agent module convert the USB host output data collection data into transmission packets, and then send the corresponding transmission packets to the reference model and the comparator respectively.

[0070] For example, four instances are created in the verification environment, namely four USB device intellectual property core verification agent modules, which correspond to the four USB physical layer ports connected to the design module to be tested, are configured in USB device working mode, and interact with the USB host of the design module to be tested for data.

[0071] Furthermore, the upstream transaction level modeling (TLM) port of the USB device intellectual property core verification agent module is connected to the upstream input port of the comparator to provide upstream comparison reference data for the comparator; the downstream TLM port of the USB device intellectual property core verification agent module is connected to the downstream input port of the comparator to provide downstream comparison reference data for the comparator.

[0072] In addition, the reference model in the present invention establishes a connection with the output port of the USB protocol monitor.

[0073] The second proxy module in the present invention, namely the application side AXI bus proxy module, comprises an application side AXI bus driver, an application side AXI bus monitor, and an application side AXI bus sequence generator.

[0074] Furthermore, the application-side AXI bus sequence generator receives a transmission packet sent by the AXI bus sequence connected thereto, and is connected to the application-side AXI bus driver through an output port. The AXI bus driver drives the AXI bus interface to generate a test stimulus, wherein the AXI bus interface includes an instantiated AXI slave interface and an instantiated AXI host interface.

[0075] Furthermore, the application side AXI bus driver is connected to the AXI bus interface. In the verification top layer, the test stimulus generated by the AXI bus interface is transferred to the application side AXI bus driver by means of a UVM configuration database.

[0076] Furthermore, an application-side AXI bus monitor is connected to the AXI bus interface, and the test stimulus generated by the AXI bus interface is transmitted to the application-side AXI bus monitor by means of a UVM configuration database at the verification top level, thereby collecting data corresponding to the AXI bus interface.

[0077] The third agent module in the present invention, namely the APB configuration interface agent module, comprises an APB configuration interface driver, an APB configuration interface monitor, an APB configuration interface sequence generator, and an APB configuration interface adapter.

[0078] In the present invention, the APB configuration interface driver is used to write configuration data into the configuration register of the design module to be tested. The APB configuration interface monitor is used to sample the configuration data of the APB configuration interface for use by the reference model and the comparator. The APB configuration interface sequence generator is used to generate structured configuration data and output it to the APB configuration interface driver.

[0079] Furthermore, the APB configuration interface adapter is associated with the aforementioned register model through the UVM framework function set_sequencer.

[0080] Therefore, each verification module, test case, and test sequence in the verification environment can access registers through the register model. The verification modules mentioned here specifically refer to: USB device intellectual property core verification agent module, application side AXI bus agent module, APB configuration interface agent module, XHCI protocol agent module, comparer, and reference model.

[0081] The fourth proxy module in the present invention, namely the XHCI protocol proxy module, comprises an XHCI protocol driver and an XHCI protocol sequence generator.

[0082] Further, the XHCI protocol sequence generator is connected to the XHCI protocol driver through the TLM port to send a customized XHCI transmission packet.

[0083] Furthermore, the XHCI protocol driver constructs a virtual content and maintains data structures such as device context, endpoint context, event ring, command ring, and transmission ring specified by the XHCI protocol in the virtual memory, and performs an enqueue operation on the customized XHCI transmission packet sent by the XHCI protocol sequence generator.

[0084] In addition, in response to the reception completion event, the XHCI protocol driver packages the received data into an XHCI transmission packet and outputs it to the reference model, such as performing a dequeue operation, for further processing.

[0085] Furthermore, the reference model establishes a connection with an output port of the XHCI protocol driver.

[0086] Furthermore, the comparator establishes a connection with an output port of the USB device intellectual property core verification agent module, an output port of the XHCI protocol agent module, and an output port of the reference model.

[0087] Furthermore, the XHCI protocol proxy module does not directly drive the interface, but indirectly drives the port of the USB host, which can be a logical port of the USB host controller, by calling the system memory read-write function or register read-write function provided by the application-side AXI bus proxy module through the XHCI protocol proxy module, thereby realizing the XHCI protocol data processing process. In the present invention, the XHCI protocol proxy module has both a read operation and a write operation process through the application-side AXI bus proxy module, so the data flow is bidirectional.

[0088] Preferably, the XHCI protocol proxy module does not have a corresponding monitor, but directly outputs the received transmission packet through the TLM port of the UVM framework.

[0089] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.

[0090] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A USB host verification system, comprising a verification top layer, a test case layer, and a verification environment layer, wherein the verification top layer comprises a design module to be tested, and the verification environment layer comprises an XHCI protocol proxy module and an application-side AXI bus proxy module, characterized in that: The design module to be tested is a USB host, which includes an AXI host port, an AXI slave port, a USB physical layer port and a USB host controller; The XHCI protocol proxy module includes an XHCI protocol driver, which constructs a virtual memory and maintains a data structure specified by the XHCI protocol in the virtual memory; The application-side AXI bus proxy module includes an application-side AXI bus driver, which is connected to the AXI bus interface; and The XHCI protocol proxy module calls the system memory read and write function or the register read and write function provided by the application-side AXI bus proxy module, thereby driving the logical port of the USB host controller to implement the XHCI protocol data processing process; The verification environment layer also includes a reference model, which is used to model the behavior of the USB host; The XHCI protocol proxy module also includes an XHCI protocol sequence generator; The XHCI protocol sequence generator is connected to the XHCI protocol driver through the TLM port; The XHCI protocol driver performs a queue operation on the XHCI transmission packet sent by the XHCI protocol sequence generator; and, The XHCI protocol driver packages the received data into an XHCI transmission packet and outputs it to the reference model; The verification environment layer also includes a USB device intellectual property core verification agent module and a comparator; The uplink TLM port of the USB device intellectual property core verification agent module is connected to the uplink input port of the comparator to provide uplink comparison reference data for the comparator; The downstream TLM port of the USB device intellectual property core verification agent module is connected to the downstream input port of the comparator to provide downstream comparison reference data for the comparator; The comparator is configured as follows: Obtain the first transmission packet in the sending direction of the USB device intellectual property core verification agent module, and compare it with the USB transmission packet output by the reference model in the downstream direction; as well as, The second transmission packet in the receiving direction of the USB device intellectual property core verification agent module is obtained, and compared with the XHCI transmission packet output by the reference model in the upstream direction.

2. The USB host authentication system according to claim 1, characterized in that: The verification environment layer also includes an APB configuration interface proxy module and a register model; The APB configuration interface proxy module includes an APB configuration interface adapter; The APB configuration interface adapter is associated with the register model through the UVM framework function set_sequencer.

3. The USB host authentication system according to claim 2, wherein: The verification environment layer also includes a configuration class; The configuration class includes: a working mode configuration switch, a comparator enable switch, a configuration class of an XHCI protocol proxy module, a configuration class of an application-side AXI bus proxy module, a configuration class of a USB device intellectual property core verification proxy module, and a configuration class of an APB configuration interface proxy module.

4. The USB host authentication system according to claim 3, characterized in that: The verification top layer also includes an instantiated AXI slave interface, an instantiated AXI host interface and an instantiated APB interface; The USB host also includes an APB port; The instantiated AXI slave interface is connected to the AXI host port included in the USB host; The instantiated AXI host interface is connected to the AXI slave port included in the USB host; The instantiated APB interface is connected to an APB port included in the USB host.

5. The USB host authentication system according to claim 4, characterized in that: The verification top layer also includes an instantiated USB intellectual property core verification module interface; The instantiated USB intellectual property core verification module interface is connected to a USB physical layer port included in a USB host.

6. The USB host authentication system according to claim 5, characterized in that: The reference model is configured to convert transmission packets in the uplink direction and transmission packets in the downlink direction, and transmit the converted transmission packets to the comparator.

7. The USB host authentication system according to claim 6, characterized in that: The APB configuration interface proxy module also includes an APB configuration interface sequence generator; The register model is configured to be connected to the APB configuration interface sequence generator through a dedicated adapter.