A deflection elimination method, system and electronic equipment
By designing a data detection and processing unit at the DPHY receiving end, the data is written into the FIFO and sent synchronously when all FIFOs are not empty. This solves the problem of data misalignment caused by skew between multiple data lines and achieves correct data transmission. sex and stability.
Patent Information
- Application Number
- CN202410917450.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-10
AI Technical Summary
Existing technology cannot effectively eliminate the skew between multiple DPHY data lines, resulting in misalignment of data transmission and affecting the accuracy and stability of data transmission.
A skew elimination system is designed, including a DPHY receiving end, a skew elimination device and a target terminal. The skew elimination device consists of a data detection unit and a data processing unit. The data detection unit writes valid data into the target FIFO, and the data processing unit The unit sends data synchronously when all FIFOs are not empty, ensuring data alignment.
Through this system, the target terminal can receive the aligned data, ensuring the correctness and stability of data transmission.
Smart Images

Figure CN118473628B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated chips, and in particular to a deflection elimination method, system and electronic equipment. Background Art
[0002] MIPI (Mobile Industry Processor Interface) is the mainstream video transmission protocol specification in the mobile field. Its protocol layer is mainly DSI (Display Serial Interface) and CSI (Camera Serial Interface), and its physical layer mostly uses DPHY. DPHY can use one clock line (clock lane) and multiple data lines (data lane). The design of multiple data lines can increase bandwidth. The DPHY receiver uses the clock recovered from the clock line to sample the data recovered from multiple data lines.
[0003] However, as bandwidth requirements continue to increase, the clock frequency of DPHY is also increasing, and the number of DPHY data lines is also increasing. This leads to a greater impact of skew between multiple data lines. Skew elimination technology is needed to reduce the impact of skew, thereby ensuring the accuracy and stability of data transmission.
[0004] However, current technology can only eliminate the skew between the clock lane and a single data lane, and can only ensure that the data collected on each data lane is correct, but cannot ensure that the data between data lanes is aligned, which will affect subsequent data processing. Summary of the invention
[0005] The object of the present invention is to provide a de-skew method, system and electronic device to at least partially improve the above-mentioned problem.
[0006] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:
[0007] In a first aspect, an embodiment of the present invention provides a skew elimination system, the skew elimination system comprising a DPHY receiving end, a skew elimination device and a target terminal, the skew elimination device comprising a data detection unit and a data processing unit, M data lines are arranged between the data detection unit and the DPHY receiving end, and the data processing unit is connected to the data detection unit and the target terminal respectively;
[0008] The data detection unit is used to write the valid data transmitted by the DPHY receiving end through the i-th target data line into the i-th target FIFO;
[0009] Wherein, the target data line is any one of the M data lines, the target FIFO is a FIFO deployed in the data detection unit, and the number of the target data lines is the same as the number of the target FIFOs;
[0010] The data processing unit is used for synchronously sending the data in all target FIFOs to the target terminal when all target FIFOs are not empty.
[0011] In a second aspect, an embodiment of the present invention provides a deflection elimination method, which is applied to a deflection elimination device, and the method includes:
[0012] Write the valid data transmitted by the DPHY receiver through the i-th target data line into the i-th target FIFO;
[0013] Wherein, the target data line is any data line between the deskew device and the DPHY receiving end, the target FIFO is a FIFO deployed in the deskew device, and the number of the target data lines is the same as the number of the target FIFOs;
[0014] When all target FIFOs are not empty, the data in all target FIFOs are synchronously sent to the target terminal.
[0015] In a third aspect, an embodiment of the present invention provides an electronic device, wherein the electronic device includes the above-mentioned de-skew elimination system.
[0016] Compared with the prior art, the embodiment of the present invention provides a skew elimination method, system and electronic device, wherein the skew elimination system includes a DPHY receiving end, a skew elimination device and a target terminal, wherein the skew elimination device includes a data detection unit and a data processing unit, wherein M data lines are arranged between the data detection unit and the DPHY receiving end, and the data processing unit is connected to the data detection unit and the target terminal respectively; the data detection unit is used to write the valid data transmitted by the DPHY receiving end through the i-th target data line into the i-th target FIFO; wherein the target data line is any one of the M data lines, the target FIFO is a FIFO deployed in the data detection unit, and the number of target data lines is the same as the number of target FIFOs; the data processing unit is used to synchronously send the data in all target FIFOs to the target terminal when all target FIFOs are not empty. It can ensure that the target terminal receives the aligned data, that is, completes the data alignment work on multiple target data lines to ensure the correctness and stability of data transmission.
[0017] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 This is one of the structural schematic diagrams of the de-skew system provided in the embodiment of the present invention.
[0020] Figure 2 A timing diagram of data line alignment provided by an embodiment of the present invention.
[0021] Figure 3 A timing diagram of data line misalignment provided by an embodiment of the present invention.
[0022] Figure 4 The second structural schematic diagram of the deflection elimination system provided in the embodiment of the present invention.
[0023] Figure 5 This is a flow chart of a method for eliminating skew provided in an embodiment of the present invention.
[0024] Figure 6 The second flowchart of the skew elimination method provided in the embodiment of the present invention.
[0025] Figure 7 The third flowchart of the skew elimination method provided in the embodiment of the present invention.
[0026] In the figure: 10-skew elimination device; 11-data detection unit; 12-data processing unit; 13-configuration unit; 20-DPHY receiving end; 30-target terminal; 40-control unit. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0028] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0030] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0031] In the description of the present invention, it should be noted that the terms "upper", "lower", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, or are directions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.
[0032] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "disposed" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0033] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0034] The embodiment of the present invention provides a deflection elimination system, please refer to Figure 1 , Figure 1 This is one of the structural schematic diagrams of the de-skew system provided in the embodiment of the present invention.
[0035] The skew elimination system includes a DPHY receiving end 20, a skew elimination device 10 and a target terminal 30. The skew elimination device 10 includes a data detection unit 11 and a data processing unit 12. M data lines are arranged between the data detection unit 11 and the DPHY receiving end 20. The data processing unit 12 is connected to the data detection unit 11 and the target terminal 30 respectively.
[0036] The target terminal 30 is a CSI receiving end or a DSI receiving end. The data transmitted by the DPHY receiving end 20 is image data or control data, and M is greater than or equal to 2. Figure 1 Four data lines are taken as an example, but the number of data lines is not limited.
[0037] Please refer to Figure 2 , Figure 2 A timing diagram of data line alignment provided by an embodiment of the present invention. Figure 2 In the example, 4 target data lines and 1 clock line are used. The 4 target data lines are data_lane_0, data_lane_1, data_lane_2 and data_lane_3. data_lane_i represents the target data line number i. Data data_i is divided into 4 parts: data_i_0, data_i_1, data_i_2 and data_0_3. data_i_0, data_i_1, data_i_2 and data_0_3 are transmitted on data_lane_0, data_lane_1, data_lane_2 and data_lane_3 respectively. When the data on data_lane_0, data_lane_1, data_lane_2 and data_lane_3 are aligned, the correctness and stability of data transmission can be guaranteed.
[0038] However, in some scenarios, there will be skew between multiple data lines, resulting in data mismatch, affecting the accuracy and stability of data transmission. For details, please refer to Figure 3 , Figure 3 A timing diagram of data line misalignment provided by an embodiment of the present invention. Figure 3In the case shown, the order of data transmission may change, thereby affecting the correctness and stability of data transmission.
[0039] In order to overcome the above problems, the embodiment of the present invention provides an optional implementation method, please refer to the following.
[0040] The data detection unit 11 is used to write the valid data transmitted by the DPHY receiving end 20 through the i-th target data line into the i-th target FIFO.
[0041] The target data line is any one of the M data lines, and the target FIFO is the FIFO deployed in the data detection unit 11, such as Figure 1 As shown, a plurality of FIFOs are deployed in the data detection unit 11. The number of target data lines is the same as the number of target FIFOs, and the valid data may be image data. The number of target data lines may be greater than or equal to 2.
[0042] The data processing unit 12 is used to synchronously send the data in all target FIFOs to the target terminal 30 when all target FIFOs are not empty.
[0043] It should be noted that the data processing unit 12 can detect the state of the target FIFO. When there is data in all target FIFOs, the data processing unit 12 sends data to the next level, that is, the data in all target FIFOs is synchronously sent to the target terminal 30. In this way, it is ensured that the target terminal 30 receives the aligned data, that is, the data alignment work on multiple target data lines is completed to ensure the correctness and stability of data transmission.
[0044] Please continue to refer to Figure 1 In an optional implementation, M valid identification lines are further provided between the data detection unit 11 and the DPHY receiving end 20. Wherein, valid_lane_i represents the valid identification line number i.
[0045] The data detection unit 11 is used to receive valid data transmitted by the ith target data line when the ith target identification line is set high, wherein the ith target identification line is a valid identification line corresponding to the ith target data line.
[0046] Optionally, when the i-th target identification line is set high, the i-th target data line is sampled based on the clock signal on the clock line, so as to obtain valid data transmitted by the i-th target data line and write it into the i-th target FIFO.
[0047] Please refer to Figure 4 , Figure 4The second structural diagram of the de-skew system provided by the embodiment of the present invention. In an optional implementation, the de-skew system further includes a control unit 40, and the de-skew device 10 further includes a configuration unit 13, and the configuration unit 13 is connected to the data detection unit 11 and the control unit 40 respectively. Optionally, the control unit 40 is also connected to the data detection unit 11 (not shown in the figure). The configuration unit 13 can be but is not limited to a configuration register, and the control unit 40 can be understood as a host computer.
[0048] The data detection unit 11 is also used to obtain the height setting time point of each target identification line in the current stage.
[0049] The high time point indicates the start time point when the signal starts to be valid.
[0050] The data detection unit 11 is also used to determine the current deflection value according to the height setting time point of each target identification line.
[0051] Optionally, the current skew value is the maximum clock difference among the high-setting time points of all target identification lines. The maximum clock difference can be understood as the difference between the earliest high-setting time point and the latest high-setting time point.
[0052] The data detection unit 11 is further configured to write the current skew value into the configuration unit 13 .
[0053] The control unit 40 is used to adjust the depth of each target FIFO according to the current skew value.
[0054] The control unit 40 may call the current skew value in the configuration unit 13. Optionally, the depth value of the target FIFO is equal to the current skew value, or the depth value of the target FIFO is equal to the sum of the current skew value and a first preset value. The first preset value may be 1, 2, 3, and the like. When the skew changes, if the depth of the FIFO is insufficient, data alignment may be affected. By setting the first preset value, the FIFO depth has a certain reserved space and does not occupy too many resources.
[0055] In an optional implementation, the M data lines will not transmit data simultaneously. In order for the data detection unit 11 to monitor the target data line transmitting data, the embodiment of the present invention further provides an optional implementation, please refer to the following.
[0056] The control unit 40 is further configured to write the configuration unit 13 according to the configuration instruction, where the configuration instruction includes identification information of the target data line and identification information of the target FIFO.
[0057] The data detection unit 11 is used to determine a target data line and its corresponding target FIFO according to a configuration instruction.
[0058] The embodiment of the present invention also provides a deflection elimination method, which is applied to the deflection elimination device mentioned above. Figure 5 , Figure 5 This is a flow chart of a method for eliminating skew provided by an embodiment of the present invention. Specifically, the method for eliminating skew includes: S102 and S103, which are described in detail as follows.
[0059] S102, writing the valid data transmitted by the DPHY receiving end through the i-th target data line into the i-th target FIFO.
[0060] The target data line is any data line between the deskew device and the DPHY receiving end, the target FIFO is a FIFO deployed in the deskew device, and the number of the target data lines is the same as the number of the target FIFOs.
[0061] S103, when all target FIFOs are not empty, synchronously sending the data in all target FIFOs to the target terminal.
[0062] Optionally, M valid identification lines are provided between the de-skew elimination device and the DPHY receiving end. Figure 6 , Figure 6 The second flowchart of the skew elimination method provided by the embodiment of the present invention is as follows: Specifically, the skew elimination method further includes: S101, which is described in detail as follows.
[0063] S101, when the i-th target identification line is set high, receiving valid data transmitted by the i-th target data line, wherein the i-th target identification line is a valid identification line corresponding to the i-th target data line.
[0064] Please refer to Figure 7 , Figure 7 The third flowchart of the skew elimination method provided by the embodiment of the present invention is as follows: Specifically, the skew elimination method further includes: S111, S112 and S113, which are described in detail as follows.
[0065] S111, obtaining the height setting time point of each target identification line in the current stage.
[0066] S112, determining the current deflection value according to the height setting time point of each target identification line.
[0067] S113, writing the current skew value into the configuration unit, where the current skew value is used to adjust the depth of each target FIFO.
[0068] It should be noted that the deflection elimination method provided in this embodiment can perform the functions and purposes shown in the above system embodiment to achieve the corresponding technical effects. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiment.
[0069] An embodiment of the present invention further provides an electronic device, which includes the above-mentioned deflection elimination system.
[0070] In summary, the embodiment of the present invention provides a method, system and electronic device for eliminating skew, wherein the skew elimination system includes a DPHY receiving end, a skew elimination device and a target terminal, wherein the skew elimination device includes a data detection unit and a data processing unit, wherein M data lines are arranged between the data detection unit and the DPHY receiving end, and the data processing unit is connected to the data detection unit and the target terminal respectively; the data detection unit is used to write the valid data transmitted by the DPHY receiving end through the i-th target data line into the i-th target FIFO; wherein the target data line is any one of the M data lines, the target FIFO is a FIFO deployed in the data detection unit, and the number of target data lines is the same as the number of target FIFOs; the data processing unit is used to synchronously send the data in all target FIFOs to the target terminal when all target FIFOs are not empty. It can ensure that the target terminal receives the aligned data, that is, completes the data alignment work on multiple target data lines, so as to ensure the correctness and stability of data transmission.
[0071] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0072] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A de-skew system, characterized in that: The de-skew system comprises a DPHY receiving end, a de-skew device and a target terminal, the de-skew device comprises a data detection unit and a data processing unit, M data lines are arranged between the data detection unit and the DPHY receiving end, and the data processing unit is connected to the data detection unit and the target terminal respectively; The data detection unit is used to write the valid data transmitted by the DPHY receiving end through the i-th target data line into the i-th target FIFO; Wherein, the target data line is any one of the M data lines, the target FIFO is a FIFO deployed in the data detection unit, and the number of the target data lines is the same as the number of the target FIFOs; The data processing unit is used for synchronously sending the data in all target FIFOs to the target terminal when all target FIFOs are not empty; M valid identification lines are also provided between the data detection unit and the DPHY receiving end; The data detection unit is used to receive valid data transmitted by the i-th target data line when the i-th target identification line is set high, wherein the i-th target identification line is a valid identification line corresponding to the i-th target data line; The de-skew system further includes a control unit, and the de-skew device further includes a configuration unit, and the configuration unit is connected to the data detection unit and the control unit respectively; The data detection unit is also used to obtain the height setting time point of each target identification line in the current stage; The data detection unit is also used to determine the current deflection value according to the height setting time point of each target identification line; The data detection unit is also used to write the current skew value into the configuration unit; The control unit is used to adjust the depth of each target FIFO according to the current skew value.
2. The deskew system of claim 1, wherein: The current skew value is the maximum clock difference among the high time points of all target identification lines.
3. The deskew system of claim 1, wherein: The depth value of the target FIFO is equal to the sum of the current skew value and a first preset value.
4. The deskew system of claim 1, wherein: The control unit is further used to write the configuration unit according to the configuration instruction, wherein the configuration instruction includes identification information of the target data line and identification information of the target FIFO; The data detection unit is used to determine the target data line and its corresponding target FIFO according to the configuration instruction.
5. A method for eliminating deflection, characterized in that: Applied to a de-skew device, the method comprises: Write the valid data transmitted by the DPHY receiver through the i-th target data line into the i-th target FIFO; Wherein, the target data line is any data line between the deskew device and the DPHY receiving end, the target FIFO is a FIFO deployed in the deskew device, and the number of the target data lines is the same as the number of the target FIFOs; When all target FIFOs are not empty, the data in all target FIFOs are synchronously sent to the target terminal; M valid identification lines are also arranged between the de-skew device and the DPHY receiving end, and the method further comprises: when the i-th target identification line is set high, receiving valid data transmitted by the i-th target data line, wherein the i-th target identification line is a valid identification line corresponding to the i-th target data line; The method also includes: obtaining the time point of each target identification line being raised in the current stage; determining the current skew value according to the time point of each target identification line being raised; and writing the current skew value into a configuration unit, wherein the current skew value is used to adjust the depth of each target FIFO.
6. An electronic device, characterized in that: The deskew system comprises the deskew system as claimed in any one of claims 1 to 4.
Citation Information
Patent Citations
Method for aligning multichannel data based on system synchronizing and reference channel
CN102820964A
Flow control method and device, storage medium and electronic equipment
CN113472674A
Interface bridge device and conversion method thereof
CN115129636A
MIPI DPHY skew elimination circuit and skew elimination method
CN115834805A
HDMI system based on MIPIDPHY output
CN116939134A
