A multi-channel Ethernet physical layer transceiver test system and method

Through FPGA simulation of the 8-core Cortex-A53 SoC system and the shared SMI interface, the problem of high complexity of the multi-channel Ethernet physical layer transceiver test system is solved, and efficient functional testing is achieved, reducing cost and complexity.

CN115208805BActive Publication Date: 2024-11-26THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210765156.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2024-11-26
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively build a test system for multi-channel Ethernet physical layer transceivers, resulting in high complexity of the test system, difficulty in PCB wiring and difficulty in maintaining the test software.

Method used

The SoC system using FPGA simulates an 8-core Cortex-A53, 8-channel MACs are mounted through the AXI bus, and the SMI interface is shared to realize functional testing of the multi-channel Ethernet physical layer transceiver chip, reducing hardware complexity and software operation and maintenance difficulties.

Benefits of technology

It simplifies the complexity of the test system, saves pin resources, reduces test costs, improves test efficiency, and realizes the functional testing requirements for 1~8-channel Ethernet physical layer transceiver chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115208805B_ABST
    Figure CN115208805B_ABST
Patent Text Reader

Abstract

The present invention relates to a multi-channel Ethernet physical layer transceiver test system and method, and belongs to the field of microelectronics technology. It simulates a general SoC with 8 MACs mounted through FPGA to realize functional testing of 8-channel Ethernet physical layer transceiver chips at the same time. The 8 channels of the Ethernet physical layer transceiver chip share the same SMI interface, saving pins and facilitating wiring. The logs in the test process are transmitted to the PC through the UART interface, which is convenient for viewing the test status. The present invention performs loopback tests in stages according to the transmission path of the Ethernet data stream, and only after all loopback tests are successful, the communication test with the PC is performed, so that the problem can be clearly located. The present invention can meet the functional test requirements for 1-8 channel Ethernet physical layer transceiver chips, and compared with the solution of using multiple SoCs to provide MACs, it has lower implementation cost and stronger versatility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of microelectronic technology, and in particular relates to a multi-channel Ethernet physical layer transceiver testing system and method, which are used for performing functional testing on multi-channel Ethernet physical layer transceiver chips. Background Art

[0002] With the advent of the Internet of Things, the number of global network devices is growing year by year. As the physical layer of the TCP / IP reference model, the demand for Ethernet physical layer transceivers is also growing. In order to achieve the purpose of massive network data exchange, a highly integrated multi-channel Ethernet physical layer transceiver chip has been born in recent years, that is, 4 to 8 Ethernet physical layer transceivers are integrated in a single chip. According to the IEEE802.3 specification, each Ethernet physical layer transceiver (PHY for short) must be paired with a media access controller (MAC for short). However, the current mainstream SoC integrates at most two MACs on a single chip. Using a single SoC, it is impossible to build a test system for multiple Ethernet physical layer transceivers, and the solution of using multiple SoCs will cause the complexity of the test system to be too high, PCB wiring to be difficult, and test software operation and maintenance to be difficult. Summary of the invention

[0003] In view of this, the present invention provides a multi-channel Ethernet physical layer transceiver testing system and method. The present invention builds a multi-channel PHY functional testing system based on FPGA, which can realize functional testing of multi-channel PHY, thereby reducing the hardware complexity of the test system and the operation and maintenance difficulty of the test software.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is:

[0005] A multi-channel Ethernet physical layer transceiver test system comprises an FPGA, an Ethernet physical layer transceiver chip to be tested and a host computer; an 8-core Cortex-A53 virtual CPU is simulated on the FPGA, and the virtual CPU mounts 8-channel MACs through an AXI bus, and the virtual CPU and the 8-channel MACs together constitute a SoC system; each MAC has an independent direct memory interface, a first-in first-out memory interface and an Ethernet physical layer transceiver interface, and the virtual CPU distinguishes the 8-channel MACs through addresses; the 8-channel MACs share an SMI interface, and the SMI interface comprises a clock line and a bidirectional data line; each MAC sends configuration information of a control register to an external Ethernet physical layer transceiver chip to be tested through the SMI interface, and reads the working status of the Ethernet physical layer transceiver chip to be tested from the status register of the external Ethernet physical layer transceiver chip to be tested through the SMI interface; the address of the Ethernet physical layer transceiver chip to be tested is configured by the constraint level of its address pin, and the SMI interface distinguishes which control register or status register of the Ethernet physical layer transceiver chip to be tested is currently accessed by different addresses;

[0006] Two JTAG interfaces are connected between the FPGA and the host computer, one of which is FPGA_JTAG, used to burn a bitstream file from the host computer to the FPGA, and the bitstream is used to simulate the SoC system; the other is ARM_JTAG, used to program and debug the virtual CPU.

[0007] Furthermore, the sizes of the direct memory and the first-in first-out memory external to the MAC are configured through registers, and the Ethernet physical layer transceiver interface of each MAC supports four types of interfaces: GMII, RGMII, MII, and RMII.

[0008] Furthermore, a UART interface is connected between the host computer and the FPGA to display the log of the program running process on the host computer.

[0009] Furthermore, the virtual CPU is also transplanted with FreeRTOS supporting symmetric multi-core, which is used to create independent task stacks for the test tasks of 8-way MAC, so as to realize continuous long-term synchronous test of the Ethernet physical layer transceiver chips to be tested of 8 channels.

[0010] A method for testing an Ethernet physical layer transceiver based on the test system as described in any one of the above items, comprising the following steps:

[0011] (1) Burn the bitstream used to simulate the SoC system into the FPGA through the host computer;

[0012] (2) Download the test program binary file to the SoC system simulated by the FPGA through Trace32;

[0013] (3) Connecting the Ethernet physical layer transceiver chip to be tested, triggering the test program to run, and performing at least a MAC internal loopback test, an Ethernet physical layer transceiver internal loopback test, and an Ethernet physical layer transceiver external loopback test; if all the tests pass, it is determined that the data transmission function of the Ethernet physical layer transceiver chip to be tested is normal, and the test is completed.

[0014] Furthermore, the specific method of step (3) is:

[0015] First, perform an internal MAC loopback test. If the MAC internal loopback test passes, it proves that the MAC is normal. Then, perform an internal Ethernet physical layer transceiver loopback test to prove that the physical coding sublayer inside the Ethernet physical layer transceiver chip to be tested is working normally. Finally, after ensuring that the first two loopback tests have passed, perform an external Ethernet physical layer transceiver loopback test using the RJ-45 connectors that are self-connected in phase sequence at each port. If the external Ethernet physical layer transceiver loopback test succeeds, it is determined that the data transmission function of the Ethernet physical layer transceiver chip to be tested is normal and the test is completed.

[0016] Furthermore, in step (3), after the Ethernet physical layer transceiver external loopback test, a communication test with the host computer is also performed; the MAC internal loopback test, the Ethernet physical layer transceiver internal loopback test, and the Ethernet physical layer transceiver external loopback test are all performed by constructing an ARP type broadcast data packet; in the communication test with the host computer, whether the test passes is determined by analyzing whether the ARP response data packet returned by the host computer meets expectations.

[0017] The beneficial effects of the present invention are:

[0018] 1. The present invention replaces multiple SoCs with one FPGA and integrates 8-way MAC on the AXI bus of the ARM Cortex-A53 architecture, thereby building a test system that supports up to 8-way PHY, greatly simplifying the complexity of the test system and reducing the test cost.

[0019] 2. If the 8-way MAC uses the GMII (Gigabit Media Independent Interface) and SMI (Serial Management Interface) interfaces independently, the number of signal pins allocated for these two interfaces will be as many as 192, resulting in a shortage of pin resources. Therefore, the present invention shares the 8-way SMI interface, which can save 14 pins and reduce the complexity of PCB wiring to a certain extent.

[0020] 3. In order to clarify the problems encountered during the test and quickly locate the causes of the problems, the present invention proposes a method of performing loopback tests in stages according to the transmission path of the Ethernet data stream until all loopback tests are successful, and it can be determined that the PHY chip to be tested is functioning normally. This test method is more efficient and simple to implement.

[0021] In summary, the present invention uses FPGA to simulate a general SoC with 8 MACs mounted on it, so as to realize functional testing of 8-channel Ethernet physical layer transceiver chips at the same time. The 8 channels of the Ethernet physical layer transceiver chip share the same SMI interface, which saves pins and facilitates wiring. The logs during the test are transmitted to the PC through the UART interface, which is convenient for viewing the test status. The present invention performs loopback tests in stages according to the transmission path of the Ethernet data stream. After all loopback tests are successful, communication tests with the PC are performed, so that problems can be located in a clear hierarchy. The present invention can meet the functional testing requirements for 1-8 channel Ethernet physical layer transceiver chips. Compared with the solution of using multiple SoCs to provide MACs, it has lower implementation costs and stronger versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a schematic diagram of the structure of an 8-channel Ethernet physical layer transceiver test system based on FPGA.

[0023] Figure 2 The following is a schematic diagram of the principles of three loopback tests.

[0024] Figure 3 Flowchart of the PHY test method. DETAILED DESCRIPTION

[0025] The present invention is described in detail below in conjunction with the accompanying drawings.

[0026] A multi-channel Ethernet physical layer transceiver test system includes an FPGA, an Ethernet physical layer transceiver chip to be tested, and a host computer. The FPGA simulates an 8-core SoC based on Cortex-A53, and mounts 8 MACs through the AXI bus. Each MAC has an independent direct memory (DMA), first-in first-out memory (FIFO) and PHY interface, which share the SMI interface for controlling and viewing the working status of the Ethernet physical layer transceiver chip. The host computer is used to generate and download the bitstream file of the FPGA, compile, build and download the test program of the Ethernet physical layer transceiver chip, and view the log or test report during the program operation through the serial port.

[0027] The system uses an octa-core Cortex-A53 as the CPU, which can simultaneously test the functions of eight channels of the Ethernet physical layer transceiver chip; using a single-chip FPGA to simulate an SoC with eight integrated MACs is more cost-effective than using multiple SoCs. In addition, in this system, multiple MACs share the SMI interface, which can save pins, reduce wiring complexity, and facilitate centralized control of multiple PHY chips. Each MAC supports GMII, RGMII, MII, and RMII interfaces. The system uses a GMII interface that is compatible with the other three interfaces, so that the Ethernet physical layer transceiver chip to be tested can be tested in multiple interface modes.

[0028] When the above test system is used to perform functional testing of PHY, a loopback test is first performed on the MAC end to confirm whether the MAC end is working normally; then an inner loopback test is performed on the PHY to confirm whether the physical coding sublayer (PCS) is working normally; then an outer loopback test is performed on the PHY to confirm whether the physical media attachment sublayer (PMA) and the physical media dependent sublayer (PMD) are normal; finally, a communication test is performed with the PC to confirm whether the overall PHY function is normal and available.

[0029] The following are more specific embodiments:

[0030] A multi-channel Ethernet physical layer transceiver test system uses an FPGA to simulate an 8-core Cortex-A53 CPU, and mounts 8 Gigabit MACs through the AXI bus. Each MAC has independent DMA, FIFO and PHY interface. The CPU distinguishes MAC0~MAC7 by address. The DMA and FIFO size support software configuration through registers. The PHY interface of each MAC supports four types of interfaces: GMII, RGMII, MII and RMII. Figure 1 The structure diagram shown shows the GMII interface. The other interfaces differ from it in that the data widths of TXD and RXD are different. For example, the RGMII interface uses RXD[3:0] and RXD[3:0]. That is, the circuit connection method of GMII is compatible with the interfaces of RGMII, MII and RMII.

[0031] The 8-way MAC shares one SMI interface, where MDC is the clock line and MDIO is the bidirectional data line. On the one hand, MAC[x](x=0,1,…7) sends the configuration information of the control register to PHY[x](x=0,1…7) through SMI; on the other hand, MAC reads the working status of PHY from the status register of PHY through SMI. The address of the Ethernet physical layer transceiver chip is configured by the constraint level of its address pin, and SMI uses different addresses to distinguish which PHY control register or status register is currently accessed.

[0032] like Figure 1 As shown in the figure, two JTAG interfaces are connected between the FPGA board and the PC: one FPGA_JTAG is used to burn the bitstream file from the PC to the FPGA, and the bitstream is used to simulate the SoC with 8 MACs integrated; the other ARM_JTAG is used to program and debug the 8-core Cortex-A53 processor simulated by the FPGA. In addition, a UART is connected between the PC and the FPGA board, which is used to display the log of the program running process on the PC.

[0033] Figure 2 The schematic diagram of the three data loopback tests is shown. During the test, first, the MAC loopback test is performed. When the MAC loopback test passes, it proves that the MAC side is normal. Then, the PHY chip internal data loopback test is performed. This test is used to prove that the PCS side inside the PHY works normally. Finally, after ensuring that the first two loopback tests pass, the PHY chip is tested by inserting the RJ-45 Figure 2 Only the crystal plug with medium phase sequence self-connection can perform external loopback test. After the external loopback test is successful, it can be concluded that the data transmission function of the PHY chip is normal.

[0034] like Figure 3 As shown in the figure, the process of using this test method is described: first, the bit stream is burned to the FPGA board using the FPGA simulator; then, the test program binary file is downloaded to the SoC simulated by the FPGA through Trace32; then, the program is triggered to run, and the MAC internal loopback test, PHY internal loopback test, PHY external loopback test, and communication test with the PC are performed in sequence; finally, if all tests pass, the PHY function test report is printed through the serial port, otherwise, the error log is printed from the serial port. For the three loopback test programs, the ARP type broadcast data packet is constructed; for the communication test between the test system board and the PC, the ARP response data packet returned by the PC is analyzed in the program to determine whether it meets the expectations.

[0035] In order to stress test the PHY chip, FreeRTOS supporting symmetric multi-core was ported based on the Cortex-A53 processor simulated by FPGA, and independent task stacks were created for the test programs of the 8-channel PHY, thus realizing continuous long-term synchronous testing of the 8 channels of the Ethernet physical layer transceiver chip.

[0036] In summary, the present invention uses FPGA to simulate a general-purpose processor with 8 integrated MACs, uses the ARM DS-5 integrated development environment, writes a C program for driving 8 MACs and performing functional tests on the peripheral PHY, and after the program is compiled and built, uses Trace32 to burn the image file into the SoC simulated by the FPGA through the JTAG interface. During the running of the test program, the log is printed from the serial port, and the log during the test process can be viewed on the PC host using the serial port debugging assistant to understand the status of the functional test.

Claims

1. A multi-channel Ethernet physical layer transceiver test system, characterized in that: It includes an FPGA, an Ethernet physical layer transceiver chip to be tested, and a host computer; the FPGA simulates an 8-core Cortex-A53 virtual CPU, the virtual CPU mounts 8-way MAC through the AXI bus, and the virtual CPU and the 8-way MAC together constitute a SoC system; each MAC has an independent direct memory interface, a first-in first-out memory interface, and an Ethernet physical layer transceiver interface, and the virtual CPU distinguishes the 8-way MAC by address; 8 MACs share one SMI interface, and the SMI interface includes a clock line and a bidirectional data line; each MAC sends configuration information of a control register to an external Ethernet physical layer transceiver chip to be tested through the SMI interface, and reads the working status of the Ethernet physical layer transceiver chip to be tested from the status register of the external Ethernet physical layer transceiver chip to be tested through the SMI interface; the address of the Ethernet physical layer transceiver chip to be tested is configured by the constraint level of its address pin, and the SMI interface uses different addresses to distinguish which control register or status register of the Ethernet physical layer transceiver chip to be tested is currently accessed; Two JTAG interfaces are connected between the FPGA and the host computer, one of which is FPGA_JTAG, used to burn a bitstream file from the host computer to the FPGA, and the bitstream is used to simulate the SoC system; the other is ARM_JTAG, used to program and debug the virtual CPU; The size of the direct memory and first-in first-out memory external to the MAC is configured through registers, and the Ethernet physical layer transceiver interface of each MAC supports four types of interfaces: GMII, RGMII, MII, and RMII; There is also a UART interface between the host computer and the FPGA, which is used to display the log of the program running process on the host computer; The virtual CPU is also transplanted with FreeRTOS supporting symmetric multi-core, which is used to create independent task stacks for the test tasks of 8-way MAC, so as to realize continuous synchronous testing of the Ethernet physical layer transceiver chips to be tested of 8 channels.

2. A method for testing an Ethernet physical layer transceiver based on the test system as claimed in claim 1, characterized in that: The following steps are involved: (1) Burn the bitstream used to simulate the SoC system into the FPGA through the host computer; (2) Download the test program binary file to the SoC system simulated by the FPGA through Trace32; (3) Connecting the Ethernet physical layer transceiver chip to be tested, triggering the test program to run, and performing at least a MAC internal loopback test, an Ethernet physical layer transceiver internal loopback test, and an Ethernet physical layer transceiver external loopback test; if all the tests pass, it is determined that the data transmission function of the Ethernet physical layer transceiver chip to be tested is normal, and the test is completed; the specific method is: First, a MAC internal loopback test is performed. When the MAC internal loopback test passes, it proves that the MAC is normal; then, an Ethernet physical layer transceiver internal loopback test is performed to prove that the physical coding sublayer inside the Ethernet physical layer transceiver chip to be tested is working normally; finally, after ensuring that the first two loopback tests have passed, an Ethernet physical layer transceiver external loopback test is performed using the RJ-45 connectors that are self-connected in phase sequence at each port; after the Ethernet physical layer transceiver external loopback test is successful, it is determined that the data transmission function of the Ethernet physical layer transceiver chip to be tested is normal and the test is completed; wherein, after the Ethernet physical layer transceiver external loopback test, a communication test with the host computer is also performed; the MAC internal loopback test, the Ethernet physical layer transceiver internal loopback test, and the Ethernet physical layer transceiver external loopback test are all performed by constructing an ARP type broadcast data packet; in the communication test with the host computer, whether the test passes is determined by analyzing whether the ARP response data packet returned by the host computer meets expectations.

Citation Information

Patent Citations

  • Vehicle-mounted Ethernet test equipment, system and test method

    CN110138624A

  • Train Ethernet card based on TSN and data transceiving method

    CN112436948A

  • Many optical network mouth communication equipment based on FPGA

    CN208508966U

  • Method and apparatus for providing UFS terminated and unterminated pulse width modulation support using dual channels

    US20200033405A1