A MIPI C-PHY eye diagram simulation method, computer equipment, program product and storage medium

By generating the three-phase mapping code and transient simulation calculation of the MIPI C-PHY transmitter, the problem that traditional eye diagram simulation methods cannot be applied to MIPI C-PHY is solved, and accurate eye diagram evaluation of the MIPI C-PHY interface is achieved, improving the accuracy of signal integrity analysis.

CN121301115BActive Publication Date: 2026-03-17JULIN TECH (SHANGHAI) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-11
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing eye diagram simulation methods cannot effectively evaluate the signal integrity of the MIPI C-PHY interface, especially due to its unique three-wire differential architecture and complex signal transition rules, which make traditional differential pair eye diagram analysis techniques unsuitable.

Method used

By generating the three-phase mapping code of the C-PHY transmitter and combining it with transient simulation calculations, the single-edge response signal is superimposed bit by bit to obtain the waveforms of the single-ended and differential receivers, thus achieving accurate simulation of traditional eye diagrams and triggered eye diagrams.

Benefits of technology

It enables accurate eye diagram evaluation of the MIPI C-PHY interface, which can efficiently and accurately assess signal integrity and is suitable for signal quality analysis of the MIPI C-PHY interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121301115B_ABST
    Figure CN121301115B_ABST
Patent Text Reader

Abstract

The application provides a MIPI C-PHY eye diagram simulation method, computer equipment, a program product and a storage medium, and comprises the following steps: generating three-phase mapping codes of three ports A, B and C of a transmitting end according to an NRZ code type signal generated by the transmitting end; generating a transmitting end output waveform according to the three-phase mapping codes, so as to obtain a single-edge response signal of a single-end receiving end A, B and C; obtaining a first waveform of the single-end receiving end A, B and C by bit-by-bit superposition of the single-edge response signal, and obtaining a second waveform of a differential receiving end AB, BC and CA according to the first waveform; and generating a traditional eye diagram and a trigger eye diagram based on the second waveform of the differential receiving end AB, BC and CA. The scheme can be applied to the eye diagram simulation of the MIPI C-PHY, so that the MIPI C-PHY eye diagram can be efficiently and accurately evaluated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of eye diagram simulation technology, and more particularly to a MIPI C-PHY eye diagram simulation method, computer equipment, program product, and storage medium. Background Technology

[0002] MIPI C-PHY is a high-speed serial interface standard widely used in mobile device display and camera interfaces. It employs a unique three-wire differential architecture and a three-phase symbol encoding scheme. Unlike traditional differential signal transmission, C-PHY transmits data through relative level changes between the A, B, and C lines. This encoding method offers higher bandwidth efficiency and lower power consumption. The C-PHY physical layer specification defines complex signal transition rules, where each symbol cycle contains changes in the states of three lines, enabling the transmission of more information within a single unit interval. With the increasing demands for data transmission rates from mobile devices, the latest C-PHY specification supports transmission rates exceeding 5Gbps / lane, making signal integrity analysis particularly important.

[0003] Because C-PHY employs a three-wire interactive transmission mechanism, its signal quality assessment requires specialized methods and tools. Traditional differential pair-based eye diagram analysis techniques are not directly applicable to this unique interface standard. Traditional eye diagram simulation methods typically focus on considering the single-bit response of the differential channel. However, C-PHY has six states across three different voltage levels on its three-wire transmission channel, and the receiver has three differential outputs with four voltage levels. C-PHY protocol eye diagram simulation algorithms need to consider complex state transition behaviors. Furthermore, C-PHY provides an embedded clock link, eliminating the need for an additional clock channel. Therefore, C-PHY eye diagrams have both non-triggered and triggered forms, introducing further complexity. Therefore, a suitable eye diagram simulation method for MIPI C-PHY is urgently needed to efficiently and accurately evaluate MIPI C-PHY eye diagrams. Summary of the Invention

[0004] The purpose of this invention is to provide a MIPI C-PHY eye diagram simulation method, computer equipment, program product, and storage medium that are applicable to MIPI C-PHY eye diagram simulation, thereby enabling efficient and accurate evaluation of MIPI C-PHY eye diagrams.

[0005] The technical solution provided by this invention is as follows:

[0006] Firstly, this application provides a MIPI C-PHY eye diagram simulation method, including:

[0007] Based on the NRZ code signal generated by the C-PHY transmitter, generate the three-phase mapping code for ports A, B, and C of the C-PHY transmitter;

[0008] The transmitter output waveform is generated based on the three-phase mapping encoding of the three ports, and the single-edge response signals of the C-PHY single-ended receivers A, B, and C are obtained through transient simulation calculation.

[0009] The first waveforms of the single-edge response signals are obtained by superimposing the single-edge response signals bit by bit, and the second waveforms of the differential receivers AB, BC, and CA are calculated based on the first waveforms.

[0010] A conventional eye diagram is obtained by continuously truncating 1 UI lengths of the second waveforms of the differential receivers AB, BC, and CA and superimposing them. A C-PHY trigger eye diagram is obtained by aligning the trigger points of each UI of the second waveforms of the differential receivers AB, BC, and CA. The trigger point is the first zero-crossing point of any of the three second waveforms detected in each UI.

[0011] This scheme first generates a three-phase mapping code for ports A, B, and C of the C-PHY transmitter based on the NRZ code signal generated by the C-PHY transmitter. Then, it generates the transmitter output waveform based on the three-phase mapping code of the three ports. Through transient simulation calculation, it obtains the single-edge response signals of the C-PHY single-ended receivers A, B, and C. By superimposing the single-edge response signals bit by bit, combined with the C-PHY's unique three-wire differential architecture and symbol encoding rules, it obtains the first waveforms of the single-ended receivers A, B, and C, and the second waveforms of the differential receivers AB, BC, and CA. Then, based on the second waveforms of the differential receivers AB, BC, and CA, it achieves accurate simulation of the C-PHY's traditional eye diagram and triggered eye diagram, obtaining the accurate eye diagram of the MIPI C-PHY interface, which is beneficial for evaluating the signal integrity of the MIPI C-PHY interface.

[0012] In some implementations, the generation of the three-phase mapping code for ports A, B, and C of the C-PHY transmitter based on the NRZ code signal generated by the C-PHY transmitter specifically includes:

[0013] The 16-bit sequence of the NRZ code signal is converted into 7 consecutive symbols by a mapper. Each symbol is 3 bits long and has 5 possible values, which are one of the following five values: 000, 001, 010, 011 and 100.

[0014] According to the C-PHY encoding rules, the symbols are converted into line state sequences to generate three-phase mapping codes for ports A, B, and C.

[0015] In some implementations, the step of generating the transmitter output waveform based on the three-phase mapping encoding of the three ports and obtaining the single-edge response signals of the C-PHY single-ended receivers A, B, and C through transient simulation calculation includes:

[0016] The C-PHY transmitter output waveform is generated based on preset parameters and the three-phase mapping encoding of the three ports. The preset parameters include preset bit rate, voltage level, rise time and fall time.

[0017] Based on the output waveform of the C-PHY transmitter and the analog channel, the step responses of the single-ended receivers A, B, and C are obtained through transient simulation calculations.

[0018] The single-edge response signals of the C-PHY single-ended receivers A, B, and C are generated based on the step response.

[0019] In some implementations, obtaining the first waveforms of the single-ended receivers A, B, and C by superimposing the single-edge response signals bit by bit includes:

[0020] The single-edge response signal is linearly superimposed bit by bit using the linear time-invariant property of the channel. The calculation formula is as follows:

[0021] ,

[0022] ,

[0023] ,

[0024] in, , , These are the first waveforms from single-ended receivers A, B, and C, respectively. Let N represent the k-th bit, N represent the total number of bits, and T represent the time interval between each bit. , , These are the step responses of single-ended receivers A, B, and C, respectively. , , These are the code patterns of the k-th bit of single-ended receivers A, B, and C, respectively.

[0025] In some implementations, the calculation formula for the second waveforms of the differential receivers AB, BC, and CA is as follows:

[0026] ,

[0027] ,

[0028] ,

[0029] in, , , These are the second waveforms of AB, BC, and CA at the differential receiver. The differential receiver has four DC levels, which are respectively used... , , , express,

[0030] ,

[0031] ,

[0032] ,

[0033] ,

[0034] in, This is a high level signal at the single-ended receiver end. The low level is for the single-ended receiver. This is the mid-level signal at the single-ended receiver.

[0035] In some implementations, the method of obtaining a traditional eye diagram by continuously truncating and superimposing the second waveforms of the differential receivers AB, BC, and CA for a length of 1UI includes:

[0036] The second waveforms of the differential receivers AB, BC, and CA are each truncated to a length of 1UI and superimposed onto the eye diagram matrix. Then, the result is divided by the total number of bits to obtain the eye diagram probability matrix.

[0037] The eye diagram probability matrix is ​​copied to obtain a traditional eye diagram of length 2UI.

[0038] In some implementations, obtaining the C-PHY trigger eye diagram by aligning the trigger points of each UI of the second waveforms of the differential receivers AB, BC, and CA includes:

[0039] Starting from the trigger point of each UI of the second waveform of the differential receiver AB, BC, and CA, truncate forward by 1.5UI and backward by 0.5UI to obtain a differential waveform of length 2UI.

[0040] The differential waveforms are sequentially superimposed onto a 2UI eye diagram matrix, and then divided by the total number of bits to obtain the C-PHY trigger eye diagram.

[0041] In a second aspect, this application provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the eye diagram simulation method described in the first aspect.

[0042] Thirdly, this application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps of the eye diagram simulation method described in the first aspect.

[0043] Fourthly, this application provides a computer storage medium storing a computer program or instructions thereon, wherein the computer program or instructions, when executed by a processor, implement the steps of the eye diagram simulation method described in the first aspect.

[0044] The MIPI C-PHY eye diagram simulation method, computer equipment, program product, and storage medium provided by this invention can achieve accurate simulation of traditional C-PHY eye diagrams and triggered eye diagrams, thereby obtaining accurate eye diagrams of the MIPI C-PHY interface, which is beneficial for evaluating the signal integrity of the MIPI C-PHY interface. Attached Figure Description

[0045] The preferred embodiments will now be described in a clear and easy-to-understand manner, with reference to the accompanying drawings, to further explain the above-mentioned characteristics, technical features, advantages, and implementation methods of this solution.

[0046] Figure 1 This is a schematic diagram of the overall process of one embodiment of the present invention;

[0047] Figure 2 This is a schematic diagram of the driving voltages and encodings corresponding to A, B, and C in six line states in one embodiment of the present invention;

[0048] Figure 3 This is a schematic diagram of six signal states and all possible transitions in one embodiment of the present invention;

[0049] Figure 4 This is a schematic diagram of the output waveforms of the single-ended and differential receivers according to an embodiment of the present invention;

[0050] Figure 5 This is a schematic diagram illustrating an example of a C-PHY trigger point according to an embodiment of the present invention;

[0051] Figure 6 This is a schematic diagram of a conventional eye diagram obtained in one embodiment of the present invention;

[0052] Figure 7 This is a schematic diagram of the trigger eye diagram obtained in one embodiment of the present invention. Detailed Implementation

[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings and other implementation methods can be obtained based on these drawings without any creative effort.

[0054] To keep the drawings concise, only the parts relevant to the invention are shown schematically in each figure, and they do not represent the actual structure of the product. Furthermore, for ease of understanding, in some figures, only one of components with the same structure or function is shown schematically, or only one is labeled. In this document, "one" can mean not only "only one" but also "more than one".

[0055] MIPI C-PHY is a high-speed serial interface standard widely used in mobile device display and camera interfaces. It employs a unique three-wire differential architecture and a three-phase symbol encoding scheme. Unlike traditional differential signal transmission, C-PHY transmits data through relative level changes between the A, B, and C wires. This encoding method offers higher bandwidth efficiency and lower power consumption. The C-PHY physical layer specification defines complex signal transition rules, where each symbol cycle contains changes in the states of three wires, enabling the transmission of more information within a single unit interval. With the increasing demands for data transmission rates from mobile devices, the latest C-PHY specification supports transmission rates exceeding 5Gbps / lane, making signal integrity analysis particularly important. Due to C-PHY's three-wire interactive transmission mechanism, signal quality assessment requires specialized methods and tools; traditional differential pair-based eye diagram analysis techniques are not directly applicable to this unique interface standard. Traditional eye diagram simulation methods typically focus on considering the single-bit response of the differential channel. However, C-PHY has six states with three different voltage levels on a three-wire transmission channel, and the receiver has three differential outputs and four voltage levels. The C-PHY protocol eye diagram simulation algorithm needs to consider complex state transition behaviors. Furthermore, C-PHY provides an embedded clock link, eliminating the need for an additional clock channel; therefore, the C-PHY eye diagram has both non-triggered and triggered forms, which introduces further complexity. Therefore, a suitable eye diagram simulation method for MIPI C-PHY is urgently needed to efficiently and accurately evaluate MIPI C-PHY eye diagrams.

[0056] This application, combining the unique three-wire differential architecture and symbol encoding rules of C-PHY, enables accurate simulation of traditional and triggered eye diagrams of C-PHY based on single-edge response, thereby obtaining a precise eye diagram of the MIPI C-PHY interface. The following is a detailed description of this solution with reference to the accompanying drawings:

[0057] In one embodiment, refer to the appendix to the specification. Figure 1 This application provides a MIPI C-PHY eye diagram simulation method, including:

[0058] S100: Generate the three-phase mapping code for ports A, B, and C of the C-PHY transmitter based on the NRZ code signal generated by the C-PHY transmitter.

[0059] Since the signal actually generated from the transmitter is in NRZ format, it cannot be used directly. Therefore, before simulation, this scheme needs to convert the NRZ code into a three-phase coded code suitable for C-PHY. This application does not limit the specific conversion method and it can be implemented through programs, scripts, etc.

[0060] In one specific implementation, generating a three-phase mapping code for ports A, B, and C of the C-PHY transmitter based on the NRZ code signal generated by the C-PHY transmitter involves converting the serial bit stream into a symbol sequence and then into a line state sequence. Specifically, this includes:

[0061] S110. The 16-bit sequence of the NRZ code signal is converted into 7 consecutive symbols by a mapper. Each symbol is 3 bits long and has 5 possible values, which can only be one of the following five values: 000, 001, 010, 011, and 100. For example, if the NRZ code input at the transmitter is "0101010101010101", it becomes "0324432" after the mapper, which is "000, 011, 010, 100, 100, 011, 010".

[0062] S120. According to the C-PHY encoding rules, the symbols are converted into line state sequences to generate three-phase mapping codes for ports A, B, and C.

[0063] C-PHY encoding is a symbol-to-line-state encoding, where the current line state is determined by the previous line state and the transmitted 3-bit symbol. The line state refers to a specific combination of voltage levels on the three signal lines A, B, and C at a given moment; each line can present a high (or low) signal. ),middle( ),Low( Three levels, usually The C-PHY protocol stipulates that a valid line state must satisfy the condition that the three line levels are different from each other. Therefore, there are six possible combinations of output levels. Each combination of output levels is called a line state, namely +x(0), -x(1), +y(2), -y(3), +z(4), and -z(5). Figure 2The diagram shows the driving voltages and codes corresponding to lines A, B, and C under six line states. Each bit of the 3-bit symbolic data has a specific meaning, representing a specific line state transition method. Figure 3 This shows all the possible transitions from the current state to the next state for six line states. For example, in one example, the initial state is +x(0), and the line states represented by the symbols "000, 011, 010, 100, 100, 011, 010" transition to:

[0064] .

[0065] After conversion, the three-phase mapping codes of ports A, B, and C of the C-PHY transmitter are as follows: port A code is “0011102”, port B code is “1202010”, and port C code is “2120221”.

[0066] S200 generates the transmitter output waveform based on the three-phase mapping encoding of the three ports, and obtains the single-edge response signals of the C-PHY single-ended receivers A, B, and C through transient simulation calculation.

[0067] After obtaining the three-phase mapping codes of ports A, B, and C of the C-PHY transmitter, this application can generate the corresponding transmitter output waveforms based on the three-phase mapping codes of the three ports, and then obtain the single-edge response signals of ports A, B, and C of the C-PHY single-ended receiver through transient simulation.

[0068] In one specific implementation, the transmitter output waveform is generated based on the three-phase mapping encoding of the three ports, and the single-edge response signals of the C-PHY single-ended receivers A, B, and C are obtained through transient simulation calculation, specifically including:

[0069] S210. Generate the C-PHY transmitter output waveform according to the preset parameters and the three-phase mapping code of the three ports. The preset parameters include preset bit rate, voltage level, rise time and fall time.

[0070] S220. Based on the output waveform of the C-PHY transmitter and the analog channel, the step responses of the single-ended receivers A, B, and C are obtained through transient simulation calculation.

[0071] S230. Generate single-edge response signals for the C-PHY single-ended receivers A, B, and C based on the step response.

[0072] This scheme first generates the C-PHY transmitter output waveform based on preset parameters and the three-phase mapping encoding of ports A, B, and C of the C-PHY single-ended receiver. The preset parameters include preset bit rate, voltage level, rise time, and fall time. After generating the transmitter output waveform, the step responses of ports A, B, and C of the single-ended receiver can be accurately calculated by calling a transient simulation engine. Existing engines can be used for transient simulation, as long as they can perform the step response calculation; this application does not impose any restrictions. After obtaining the step responses of ports A, B, and C of the single-ended receiver, the single-edge response signals of ports A, B, and C can be generated.

[0073] S300: The first waveforms of the single-ended receivers A, B, and C are obtained by superimposing the single-edge response signals bit by bit, and the second waveforms of the differential receivers AB, BC, and CA are calculated based on the first waveforms.

[0074] The first waveforms of the single-ended receivers A, B, and C are obtained by superimposing the single-edge response signals bit by bit, including:

[0075] The linear time-invariant property of the channel is used to linearly superimpose the single-edge response signal bit by bit. The calculation formula is as follows:

[0076] ,

[0077] ,

[0078] ,

[0079] in, , , These are the first waveforms from single-ended receivers A, B, and C, respectively. Let N represent the k-th bit, N represent the total number of bits, and T represent the time interval between each bit. , , These are the step responses of single-ended receivers A, B, and C, respectively. , , These are the code patterns of the k-th bit of single-ended receivers A, B, and C, respectively.

[0080] By superimposing the single-edge response signals of single-ended receivers A, B, and C bit by bit, the first waveform (i.e., output waveform) of single-ended receivers A, B, and C can be obtained. However, this application requires differential waveforms when calculating the eye diagram. Therefore, the second waveform (i.e., differential waveform) of differential receivers AB, BC, and CA needs to be calculated based on the first waveforms of single-ended receivers A, B, and C.

[0081] The formulas for calculating the second waveforms of the differential receivers AB, BC, and CA are as follows:

[0082] ,

[0083] ,

[0084] ,

[0085] in, , , These are the second waveforms of AB, BC, and CA at the differential receiver. The differential receiver has four DC levels, which are respectively used... , , , express,

[0086] ,

[0087] ,

[0088] ,

[0089] ,

[0090] in, This is a high level signal at the single-ended receiver end. The low level is for the single-ended receiver. This is the mid-level signal at the single-ended receiver. Figure 4 This is a schematic diagram of the output waveforms of the single-ended and differential receivers under the aforementioned code pattern of the present invention.

[0091] S400: A conventional eye diagram is obtained by continuously truncating 1 UI length of the second waveforms of the differential receivers AB, BC, and CA and superimposing them; and a C-PHY trigger eye diagram is obtained by aligning the trigger points of each UI of the second waveforms of the differential receivers AB, BC, and CA, where the trigger point is the first zero-crossing point of any of the three second waveforms detected in each UI.

[0092] After obtaining the differential waveforms of the differential receivers AB, BC, and CA of the C-PHY, this application considers that there are two modes of eye diagrams in C-PHY simulation: triggered and non-triggered. This application can either continuously truncate 1UI lengths from the differential waveforms of the differential receivers AB, BC, and CA and superimpose them to obtain a traditional eye diagram, or align the trigger points of each UI of the second waveform of the differential receivers AB, BC, and CA to obtain a C-PHY triggered eye diagram, making the C-PHY eye diagram simulation more accurate.

[0093] Specifically, a traditional eye diagram is obtained by continuously truncating and superimposing 1UI length segments of the second waveforms from the differential receivers AB, BC, and CA. This includes: truncating 1UI length segments of the second waveforms from the differential receivers AB, BC, and CA into the eye diagram matrix each time, then dividing by the total number of bits to obtain the eye diagram probability matrix. This eye diagram is completely symmetrical, and a traditional eye diagram of 2UI length can be obtained by copying the eye diagram probability matrix. In one example, the obtained traditional eye diagram is as follows: Figure 6 As shown.

[0094] The C-PHY trigger eye diagram is obtained by aligning the trigger points of each UI of the second waveform of the differential receivers AB, BC, and CA. This includes: taking the trigger point of each UI of the second waveform of the differential receivers AB, BC, and CA as the starting point, cutting forward by 1.5UI length and backward by 0.5UI length to obtain a differential waveform of length 2UI; superimposing the differential waveforms onto the 2UI eye diagram matrix in sequence, and then dividing by the total number of bits to obtain the C-PHY trigger eye diagram.

[0095] Due to symbol encoding rules, the output of a C-PHY differential receiver will change at each UI boundary. These are typically interleaved in time due to subtle differences in the rise and fall times between the three signal lines and subtle differences in the propagation times between combinations of received signal pairs. Therefore, the three differential waveforms AB, BC, and CA at the C-PHY receiver can have one, two, or three zero-crossings at each UI boundary. The trigger point refers to the first zero-crossing of any one of the three differential waveforms AB, BC, and CA at each UI. Trigger points on all UIs are aligned at the same point, and the waveforms are superimposed at the appropriate position relative to the trigger point. For a fully centered eye diagram, this invention places the trigger point at the 1.5 UI position of the 2UI eye diagram. The calculation steps for the C-PHY trigger eye diagram are: at each UI, for the three differential waveforms at the receiver... , , The first zero-crossing point detected is used as the trigger point. A 1.5UI segment is truncated forward and a 0.5UI segment is truncated backward relative to the trigger point to obtain a differential waveform of length 2UI. These waveforms are then superimposed onto a 2UI eye diagram matrix and finally divided by the total number of bits to obtain the C-PHY trigger eye diagram. Figure 5 This is a schematic diagram of a trigger point for an example of the present invention. In one example, the obtained C-PHY trigger eye diagram is as follows. Figure 7 As shown, it can be used with Figure 6 The traditional eye diagram shown is compared to the one shown to better evaluate the signal integrity of the MIPI C-PHY interface.

[0096] This scheme first generates a three-phase mapping code for ports A, B, and C of the C-PHY transmitter based on the NRZ code signal generated by the C-PHY transmitter. Then, it generates the transmitter output waveform based on the three-phase mapping code of the three ports. Through transient simulation calculation, it obtains the single-edge response signals of the C-PHY single-ended receivers A, B, and C. By superimposing the single-edge response signals bit by bit, combined with the C-PHY's unique three-wire differential architecture and symbol encoding rules, it obtains the first waveforms of the single-ended receivers A, B, and C, and the second waveforms of the differential receivers AB, BC, and CA. Then, based on the second waveforms of the differential receivers AB, BC, and CA, it achieves accurate simulation of the C-PHY's traditional eye diagram and triggered eye diagram, obtaining the accurate eye diagram of the MIPI C-PHY interface, which is beneficial for evaluating the signal integrity of the MIPI C-PHY interface.

[0097] In one embodiment, this application provides a computer device including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the eye diagram simulation method of the foregoing embodiments.

[0098] In one embodiment, this application provides a computer storage medium storing a computer program or instructions thereon, which, when executed by a processor, implements the steps of the eye diagram simulation method of the foregoing embodiments.

[0099] In one embodiment, this application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps of the eye diagram simulation method of the foregoing embodiments.

[0100] The MIPI C-PHY eye diagram simulation method of this application can be implemented using computer-executable program code. Therefore, these code snippets can be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this invention is not limited to any particular hardware and software combination.

[0101] It should be noted that the above embodiments can be freely combined as needed. The above description is only a preferred embodiment of the present invention. It should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A MIPI C-PHY eye diagram simulation method, characterized in that, The application relates to a method for generating a C-PHY trigger eye diagram. The method comprises the following steps: generating three-phase mapping codes of three ports A, B and C of a C-PHY transmitting end according to an NRZ code type signal generated by the C-PHY transmitting end; generating a transmitting end output waveform according to the three-phase mapping codes of the three ports, and calculating a single-edge response signal of a C-PHY single-end receiving end A, B and C through transient simulation; calculating a first waveform of the single-end receiving end A, B and C by bit-by-bit superposition of the single-edge response signal, and calculating a second waveform of a differential receiving end AB, BC and CA according to the first waveform; calculating a traditional eye diagram by continuously intercepting 1UI length of the second waveform of the differential receiving end AB, BC and CA and performing superposition processing, and calculating a C-PHY trigger eye diagram by aligning a trigger point of each UI of the second waveform of the differential receiving end AB, BC and CA, wherein the trigger point is a first zero-crossing point of any one of the three second waveforms detected in each UI; the method for calculating the first waveform of the single-end receiving end A, B and C by bit-by-bit superposition of the single-edge response signal comprises the following steps: , , , wherein, , , are the first waveforms of single-ended receiving ends A, B, C, respectively, represents the kth bit, N represents the total number of bits, and T is the time interval per bit, , , are the step responses of single-ended receiving ends A, B, C, respectively, , , are the code patterns of the kth bit of single-ended receiving ends A, B, C, respectively.

2. The eye diagram simulation method of claim 1, wherein performing linear bit-by-bit superposition on the single-edge response signal by utilizing linear time-invariant characteristics of a channel, and the calculation formula is as follows: the method for generating the three-phase mapping codes of the three ports A, B and C of the C-PHY transmitting end according to the NRZ code type signal generated by the C-PHY transmitting end comprises the following steps: converting a 16-bit sequence of the NRZ code type signal into seven continuous symbols by a mapper, wherein each symbol is 3 bits long, has five possible values, and is one of the following five values: 000, 001, 010, 011 and 100; 3. The eye diagram simulation method of claim 1, wherein converting the symbols into a line state sequence according to a C-PHY coding rule to generate three-phase mapping codes of the three ports A, B and C. the method for generating the transmitting end output waveform according to the three-phase mapping codes of the three ports and calculating the single-edge response signal of the C-PHY single-end receiving end A, B and C through transient simulation comprises the following steps: generating a C-PHY transmitting end output waveform according to preset parameters and the three-phase mapping codes of the three ports, wherein the preset parameters comprise a preset bit rate, a voltage level, a rise time and a fall time; calculating a step response of the single-end receiving end A, B and C according to the C-PHY transmitting end output waveform and an analog channel through transient simulation; 4. The eye diagram simulation method of claim 1, wherein generating the single-edge response signal of the C-PHY single-end receiving end A, B and C according to the step response. , , , wherein , , are the second waveforms of the differential receiving ends AB, BC, CA, respectively, the differential receiving end having 4 DC levels, denoted by , , , , respectively, , , , , wherein, is a high level for a single-ended receiving end, is a low level for a single-ended receiving end, is a middle level for a single-ended receiving end.

5. The eye diagram simulation method of claim 1, wherein the calculation formula of the second waveform of the differential receiving end AB, BC and CA is as follows: the method for calculating the traditional eye diagram by continuously intercepting 1UI length of the second waveform of the differential receiving end AB, BC and CA and performing superposition processing comprises the following steps: intercepting 1UI length of the second waveform of the differential receiving end AB, BC and CA each time, superposing the second waveform into an eye diagram matrix, and dividing the eye diagram matrix by a total bit number to obtain an eye diagram probability matrix; 6. The eye diagram emulation method of claim 1, wherein copying the eye diagram probability matrix to obtain a 2UI length traditional eye diagram. the method for calculating the C-PHY trigger eye diagram by aligning the trigger point of each UI of the second waveform of the differential receiving end AB, BC and CA comprises the following steps: Taking the trigger point of each UI of the second waveform of the differential receiving end AB, BC, CA as the starting point, 1.5UI length is cut forward and 0.5UI length is cut backward, and a differential waveform of 2UI length is obtained; The differential waveform is sequentially superimposed on a 2UI eye diagram matrix, and then divided by the total number of bits to obtain a C-PHY trigger eye diagram.

7. A computer device comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program comprises instructions that, when executed by the processor, cause the processor to perform the method of any one of claims 1-6. The processor executes the computer program to implement the steps of the eye diagram simulation method of any one of claims 1-6.

8. A computer program product comprising computer programs or instructions, characterized in that, The computer program or instructions are executed by the processor to implement the steps of the eye diagram simulation method of any one of claims 1-6.

9. A computer storage medium having stored thereon a computer program or instructions, characterized in that, The computer program or instructions are executed by the processor to implement the steps of the eye diagram simulation method of any one of claims 1-6.

Citation Information

Patent Citations

  • Open-loop, ultrafast, half-rate clock and data recovery for next generation C-PHY interfaces

    CN114787788A