A protocol layer and protocol adaptation layer self-test circuit for MIPI APHY chip

By designing a ring circuit and rate matching scheme on the MIPI APHY chip, self-testing of the protocol layer and adaptation layer within a single chip is realized, which solves the problems of complex test environment and lengthy process in the existing technology, and improves test efficiency and coverage. Spend.

CN117675658BActive Publication Date: 2024-10-18SHANGHAI XINQIZHI TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311089396.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2024-10-18
Estimated Expiration
2043-08-28

AI Technical Summary

Technical Problem

In the existing technology, verifying the local protocol layer and protocol adaptation circuit of the MIPI APHY chip requires the interconnection of two chips. The test environment is complex and the process is lengthy, making it impossible to test the protocol layer circuits in both directions at the same time.

Method used

A self-test circuit for the protocol layer and protocol adaptation layer of the MIPI APHY chip is designed. The self-test is implemented through the ring circuit. The FIFO cache and speed reduction adaptation scheme are used to achieve rate matching in the ring circuit, avoiding the need to connect to another device. According to the needs of one chip, the test of the two-way protocol layer circuit of a single chip is realized.

Benefits of technology

It simplifies the chip test environment, improves test efficiency, reduces the number of test equipment and environmental complexity, and improves test coverage and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117675658B_ABST
    Figure CN117675658B_ABST
Patent Text Reader

Abstract

The present invention discloses a protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip, which belongs to the field of test circuits, including a protocol layer, a protocol adaptation layer, a MIPIAPHY link layer and a MIPIAPHY physical layer, and a ring circuit required for self-testing, wherein the ring circuit is in parallel with the MIPIAPHY physical layer; the protocol layer includes a local protocol slave circuit and a local protocol master circuit, and the protocol adaptation layer includes a local protocol to APHY protocol adaptation circuit and an APHY protocol to local protocol adaptation circuit. The present invention does not need to be docked with another MIPIAPHY chip, and combines the local protocol circuit and the local protocol adaptation circuit in two directions on a single MIPI APHY chip for testing, thereby simplifying the external environment of chip testing and improving the efficiency of chip testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of test circuits, and in particular to a protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip. Background Art

[0002] MIPI (Mobile Industry Processor Interface) APHY (Automobile PHY) protocol is a transmission protocol for long-distance and high-speed data transmission launched by the MIPI Alliance. It supports full-duplex communication and provides a protocol adaptation layer to support the conversion between some local protocols (such as I2C / GPIO / SPI, etc.) and MIPI APHY protocol. The communication distance of these upper-layer protocols is relatively limited. A MIPI APHY system is connected in series on such a communication link, so that the upper-layer protocol data sent by the sender is converted into MIPI APHY protocol data, which can be transmitted over ten meters on the MIPI APHY link to reach the remote end, and then reversely converted back to the upper-layer protocol data format at the remote end to send to the receiver.

[0003] exist Figure 1 In the example, the protocol data sent externally is received by the local protocol slave circuit, and the data is converted into APHY protocol data through the local protocol to APHY protocol adapter circuit, and then reaches the cable through the MIPI APHY link layer and MIPI APHY physical layer in turn; after the link partner receives the APHY protocol data through the cable, it sends the data to the APHY protocol to local protocol circuit through the MIPI APHY physical layer and MIPI APHY link layer in turn, and the circuit converts the local protocol data to the local protocol master circuit for sending out. The same structure exists in the opposite direction.

[0004] Generally speaking, to verify the master-slave circuits and corresponding protocol adapter circuits of the local protocol layer on a MIPI APHY chip, it is necessary to connect it to a verified MIPI APHY chip, mount the protocol transmitter and the protocol receiver on the two MIPI APHY chips respectively, to test the protocol layer circuit and protocol adapter circuit in one direction; then swap the protocol transmitter and the receiver mounted on the two MIPI APHY chips to test the circuit in the other direction. This test solution requires the device under test to connect to a peer MIPI APHY chip, and a test case can only test the circuit in one direction. The test environment is relatively complex and the test process is relatively lengthy. Summary of the invention

[0005] The object of the present invention is to provide a protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip to solve the problems in the background technology.

[0006] In order to solve the above technical problems, the present invention provides a protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip, including a protocol layer, a protocol adaptation layer, a MIPI APHY link layer and a MIPI APHY physical layer, and a ring circuit required for implementing the self-test.

[0007] The ring circuit is located in parallel with the MIPI APHY physical layer;

[0008] The protocol layer includes a local protocol slave circuit and a local protocol master circuit, and the protocol adaptation layer includes a local protocol to APHY protocol adaptation circuit and an APHY protocol to local protocol adaptation circuit;

[0009] The externally mounted protocol transmitter sends protocol data to the local protocol slave circuit, which is converted into MIPI APHY protocol data by the local protocol to APHY protocol adapter circuit, and then sent to the MIPI APHY physical layer by the MIPI APHY link layer, and finally sent to the external link partner through the cable;

[0010] After the link partner receives the MIPI APHY data packet, it passes through the MIPI APHY physical layer → MIPI APHY link layer and sends the data packet to the APHY protocol to local protocol adaptation circuit of the corresponding protocol. At this time, the upper-layer protocol information in the MIPI APHY data packet is extracted and restored to the protocol format. The local protocol main circuit of the link partner completely replicates the behavior of the source protocol sender based on the information sent by the APHY protocol to the local protocol adaptation circuit and sends it to the protocol receiver, completing a complete protocol layer activity.

[0011] In one implementation, the protocol sending end and the protocol receiving end are respectively mounted on a protocol receiving interface and a protocol sending interface of the MIPIAPHY chip to be tested.

[0012] In one embodiment, during the test, the protocol layer and protocol adaptation layer self-test circuit for the MIPI APHY chip selects the connection path of the MIPI APHY link layer and uses a ring circuit to self-circulate the MIPI APHY link, so that the data transferred out by the local protocol to APHY protocol adaptation circuit will not go to the MIPI APHY physical layer, but will circle back to the MIPI APHY link layer in the ring circuit; the MIPI APHY link layer regards the data as sent from the MIPI APHY chip at the other end, and hands it over to the APHY protocol to local protocol adaptation circuit for processing, and then the local protocol main circuit replicates the protocol layer behavior and sends it to the external protocol receiving end.

[0013] In one embodiment, the ring circuit achieves rate matching in the downlink direction and the uplink direction through a FIFO buffering scheme and a down-rate adaptation scheme.

[0014] In one embodiment, the FIFO buffering scheme is: the ring circuit includes a FIFO for buffering data and a set of transmission circuits;

[0015] The transmission circuit completely matches the connected receiving circuit in terms of transmission rate and data interface; the MIPI APHY data packet sent by the MIPI APHY link layer is cached using FIFO, and after confirming the integrity of the packet by detecting the packet header and the packet tail, the transmission circuit in the ring circuit is called to send the MIPI APHY data packet back to the MIPI APHY link layer; the transmission rate matches the receiving circuit of the MIPI APHY link layer, so the MIPI APHY link layer can successfully parse the packet;

[0016] In the downlink ring circuit, the bandwidth of the receiving end is higher than that of the sending end, so the FIFO needs to be protected to prevent overflow: when the FIFO receives a packet, the writing permission to the FIFO is immediately stopped until the packet in the FIFO is sent out; after the FIFO is emptied, the writing to the FIFO is allowed again;

[0017] No protection is required in the ring circuit in the uplink direction.

[0018] In one embodiment, the speed reduction adaptation scheme is as follows: the MIPI APHY link layer of each MIPI APHY chip includes a set of downlink transmission circuits and a set of uplink transmission circuits, and the downlink transmission circuits and the uplink transmission circuits have opposite sending and receiving directions; the downlink transmission circuit is subjected to clock reduction to adjust its data transmission rate to the same as that of the uplink transmission circuit.

[0019] In one implementation, the uplink and downlink data interfaces of the MIPI APHY link layer have different clock frequencies and data bit widths, and an asynchronous FIFO is used in the ring circuit to interconnect the two to achieve interface switching.

[0020] The present invention provides a protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip, which does not need to be connected to another MIPI APHY chip, and combines the protocol layer and adaptation layer circuits in two directions on a single MIPI APHY chip for testing, thereby simplifying the external environment of chip testing and improving the efficiency of chip testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is a schematic diagram of the MIPI APHY structure.

[0022] Figure 2 The present invention provides a schematic diagram of a protocol layer and protocol adaptation layer self-test circuit structure for a MIPI APHY chip.

[0023] Figure 3 It is a schematic diagram of the FIFO cache scheme structure.

[0024] Figure 4 It is a structural diagram of the speed reduction adaptation solution. DETAILED DESCRIPTION

[0025] The following is a further detailed description of a protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip proposed by the present invention in combination with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will become clearer. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0026] The self-test circuit structure of the protocol layer and protocol adaptation layer circuit is as follows: Figure 2 As shown, the circuit required to implement the self-test is a loop circuit, which is located in parallel with the MIPI APHY physical layer.

[0027] In the complete MIPI APHY system, the workflow of the local protocol / local protocol AL is: the externally mounted protocol sender sends protocol data to the local protocol slave circuit, which is converted into MIPIAPHY protocol data by the local protocol to APHY protocol adaptation layer, and then sent to the MIPI APHY physical layer by the MIPI APHY link layer, and finally sent to the link partner through the cable; after the link partner receives the MIPI APHY data packet, it sends the data packet to the APHY protocol to the local protocol adaptation layer of the corresponding protocol through the MIPI APHY physical layer → MIPI APHY link layer in sequence, where the upper-layer protocol information in the MIPI APHY data packet is extracted and restored to the protocol format, and the local protocol main circuit of the link partner completely replicates the behavior of the source protocol sender according to the information sent by the APHY protocol to the local protocol adaptation layer and sends it to the protocol receiver, completing a complete protocol layer activity.

[0028] In the self-test environment of the local protocol layer and protocol adaptation layer of the MIPI APHY chip, the external protocol transmitter and protocol receiver are mounted on the local protocol slave circuit and local protocol master circuit of the MIPI APHY chip to be tested, respectively, and MIPI APHY does not need to be connected to a cable. In the test, the MIPI APHY link layer is selected to be connected to the ring circuit, and the MIPI APHY link is self-circulated using the ring circuit, so that the data transferred from the local protocol to the APHY protocol adaptation layer will not go to the MIPI APHY physical layer, but will be looped back to the MIPI APHY link layer in the ring circuit. The MIPI APHY link layer will treat this data as sent by the MIPI APHY chip at the other end, and hand it over to the APHY protocol to the local protocol adaptation layer for processing, and then the local protocol master circuit will send the protocol data to the external protocol receiver according to the protocol format. During the self-test process, there is no need to link the partner, nor to adjust the position of the externally mounted protocol transceiver, and each protocol activity will simultaneously make the master and slave circuits of the local protocol layer and their associated protocol adaptation layers work.

[0029] The transmission rates in the uplink and downlink directions of the MIPI APHY link are very different, and the uplink and downlink interfaces between the MIPI APHY link layer and the MIPI APHY physical layer are different. The ring circuit not only has to use two interfaces to connect to the MIPI APHY link layer respectively, but also has to be responsible for handling the rate matching problem on these two interfaces. The ring circuit in the downlink direction has to deal with the rate matching problem of high speed to low speed, and the ring circuit in the uplink direction has to deal with the problem of low speed to high speed. The present invention proposes two solutions: a FIFO cache solution and a speed reduction adaptation solution. The overall implementation of the two solutions and the differences and similarities in the two directions are described below:

[0030] 1. FIFO cache solution: Figure 3 As shown, the ring circuit includes a FIFO for caching data and a set of transmitting circuits, and the transmitting circuits fully match the connected receiving circuits in terms of transmission rate and data interface. The FIFO is used to cache the MIPI APHY data packet sent by the MIPI APHY link layer. After confirming the integrity of the packet by detecting the packet header and the packet tail, the transmitting circuit in the ring circuit is called to send the MIPI APHY data packet back to the MIPI APHY link layer. Because the transmission rate matches the receiving circuit of the MIPI APHY link layer, the MIPI APHY link layer can successfully parse the packet. In the ring circuit in the downlink direction, the data packet is sent from the high-bandwidth side to the low-bandwidth side, and the FIFO needs to be protected to prevent overflow: when the FIFO receives a packet, the writing permission to the FIFO is immediately stopped until the packet in the FIFO is sent out and the FIFO is cleared, and then the writing to the FIFO is allowed again. No protection is required in the ring circuit in the uplink direction.

[0031] 2. Speed ​​reduction adaptation solution: Figure 4 As shown in the figure, each MIPI APHY chip has a set of downlink transmission circuits and a set of uplink transmission circuits inside the MIPI APHY link layer, and their transmission and reception directions are opposite. By implementing clock downclocking on the downlink transmission circuit of the MIPI APHY chip, its data transmission rate is adjusted to the same as that of the uplink transmission circuit. The high-bandwidth interface and the low-bandwidth interface have different clock frequencies and data bit widths. Asynchronous FIFO is used in the ring circuit to connect the two to each other and realize interface switching.

[0032] In summary, the FIFO buffer solution retains the transmission characteristics of the MIPI APHY link in the ring structure, making the self-test environment closer to the actual situation, but it requires a dedicated transmission circuit to be embedded in the ring circuit, and its circuit structure is relatively complex; the speed reduction adaptation solution matches the rates of the two ends of the connection by reducing the frequency of the high-speed circuit, and only the interface conversion circuit needs to be built in the ring circuit, which is relatively simple to implement. The data transmission rate of the local protocol is low, and both solutions can meet the requirements.

[0033] The present invention proposes a method for independently testing the protocol layer and adaptation layer of a MIPI APHY chip, and an implementation scheme of a built-in loopback circuit required to implement the method, which effectively solves the pain point that two MIPI APHY chips need to be interconnected to implement protocol layer testing, reduces the number of interconnected devices on the test platform, reduces the complexity of the test environment, and increases the coverage of a single test case; reduces the complexity of building the test environment in large-scale test scenarios such as rapid chip screening and mass production testing, and greatly improves the test efficiency.

[0034] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip, characterized in that: Including protocol layer, protocol adaptation layer, MIPI APHY link layer and MIPI APHY physical layer, as well as the ring circuit required for self-test. The ring circuit is located in parallel with the MIPI APHY physical layer; The protocol layer includes a local protocol slave circuit and a local protocol master circuit, and the protocol adaptation layer includes a local protocol to APHY protocol adaptation circuit and an APHY protocol to local protocol adaptation circuit; The externally mounted protocol transmitter sends protocol data to the local protocol slave circuit, which is converted into MIPI APHY protocol data by the local protocol to APHY protocol adapter circuit, and then sent to the MIPI APHY physical layer by the MIPI APHY link layer, and finally sent to the external link partner through the cable; After the link partner receives the MIPI APHY data packet, it passes through the MIPI APHY physical layer → MIPI APHY link layer and sends the data packet to the APHY protocol to the local protocol adaptation circuit of the corresponding protocol. At this time, the upper layer protocol information in the MIPI APHY data packet is extracted and restored to the protocol format. The local protocol main circuit of the link partner completely replicates the behavior of the source protocol sender according to the information sent by the APHY protocol to the local protocol adaptation circuit and sends it to the protocol receiver, completing a complete protocol layer activity; The ring circuit achieves rate matching in the downlink direction and the uplink direction through a FIFO buffering scheme and a speed reduction adaptation scheme; The FIFO caching scheme is as follows: the ring circuit includes a FIFO for caching data and a set of transmitting circuits; the transmitting circuit completely matches the connected receiving circuit in terms of transmission rate and data interface; the MIPI APHY data packet sent by the MIPI APHY link layer is cached by the FIFO, and after confirming the integrity of the packet by detecting the packet header and the packet tail, the transmitting circuit in the ring circuit is called to send the MIPI APHY data packet back to the MIPI APHY link layer; the transmitting rate matches the receiving circuit of the MIPI APHY link layer, so that the MIPI APHY link layer can successfully parse the packet; In the downlink ring circuit, the bandwidth of the receiving end is higher than that of the sending end, and the FIFO needs to be protected to prevent overflow: when the FIFO receives a packet, the writing permission to the FIFO is immediately stopped until the packet in the FIFO is sent out; After the FIFO is emptied, writing to the FIFO is allowed again; No protection is required in the ring circuit in the uplink direction; The speed reduction adaptation scheme is as follows: the MIPI APHY link layer of each MIPI APHY chip includes a set of downlink transmission circuits and a set of uplink transmission circuits, and the downlink transmission circuit and the uplink transmission circuit have opposite sending and receiving directions; the downlink transmission circuit is subjected to clock frequency reduction to adjust its data transmission rate to the same as that of the uplink transmission circuit.

2. The protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip according to claim 1, characterized in that: The protocol sending end and the protocol receiving end are respectively mounted on the protocol receiving interface and the protocol sending interface of the MIPI APHY chip to be tested.

3. The protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip according to claim 1, characterized in that: The protocol layer and protocol adaptation layer self-test circuit for the MIPI APHY chip selects the connection path of the MIPI APHY link layer during the test, and uses the ring circuit to self-circulate the MIPI APHY link, so that the data transferred from the local protocol to the APHY protocol adaptation circuit will not go to the MIPI APHY physical layer, but will go back to the MIPI APHY link layer in the ring circuit; The MIPI APHY link layer treats this data as sent from the MIPI APHY chip on the other end, and hands it over to the APHY protocol to local protocol adapter circuit for processing. The local protocol main circuit then replicates the protocol layer behavior and sends it to the external protocol receiver.

4. The protocol layer and protocol adaptation layer self-test circuit for a MIPI APHY chip according to claim 1, characterized in that: The uplink and downlink data interfaces of the MIPI APHY link layer have different clock frequencies and data bit widths, and an asynchronous FIFO is used in the ring circuit to interconnect the two to achieve interface switching.

Citation Information

Patent Citations

  • Unified protocol device with self functional test and associated method

    CN107968732A

  • High-speed interface, method and system suitable for Chiplet chiplet interconnection

    CN115563046A