Encoding method, decoding method, and display device

By performing logical operations on the initial data stream to generate target encoding feature values, the problems of low encoding efficiency and low bandwidth utilization in the 8B/10B encoding scheme are solved, achieving more efficient encoding and more stable signal transmission.

CN120980247BActive Publication Date: 2026-06-12TCL CHINA STAR OPTOELECTRONICS TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TCL CHINA STAR OPTOELECTRONICS TECHNOLOGY CO LTD
Filing Date
2024-05-15
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

The existing 8B/10B encoding scheme has low encoding efficiency and low bandwidth utilization, which leads to incorrect decoding problems in signal transmission.

Method used

By performing pre-defined logical operations on the initial data stream, target encoding feature values ​​are generated. Logical AND, logical NOT, and logical OR operations are then performed on the feature values ​​to encode the eight-bit data stream into a nine-bit data stream, reducing encoding complexity and improving bandwidth utilization.

Benefits of technology

It improves coding efficiency and bandwidth utilization, reduces the probability of signal conversion errors, and enhances the stability and accuracy of signal transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120980247B_ABST
    Figure CN120980247B_ABST
Patent Text Reader

Abstract

The application provides an encoding method, a decoding method and a display device. The encoding method comprises the following steps: obtaining a first initial data stream; performing operation on the first initial data stream according to a preset logical operation relationship formula; outputting a target encoding characteristic value obtained through the operation; judging whether the target encoding characteristic value meets a first preset condition; in the case that the target encoding characteristic value meets the first preset condition, assigning a bit number of an i-th bit of the first initial data stream as a bit number of an i+1-th bit of a first target data stream to be outputted, and assigning a first target bit number obtained through logical NOT operation on the bit number of the first bit of the first initial data stream as the bit number of the first bit of the first target data stream; and outputting the first target data stream. In this way, the first target data stream with nine bits after encoding can be obtained through the logical NOT operation, the bandwidth utilization is improved, and the logical operation complexity required for encoding is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data transmission technology, specifically to an encoding method, a decoding method, and a display device. Background Technology

[0002] In serial synchronous communication and high-speed signal transmission, when multiple consecutive logic "1"s or logic "0"s appear in the data stream on the channel, the signal conversion may cause incorrect decoding due to the voltage level relationship, affecting the accuracy of information transmission.

[0003] To address this, related technologies propose an 8B / 10B encoding scheme that encodes an eight-bit data stream into a ten-bit data stream. This scheme ensures that the number of logic "1"s and logic "0"s transmitted on the signal transmission bus remains essentially consistent, thereby achieving DC balance. This makes the DC offset in the channel zero or approximately zero, thus reducing signal decoding errors caused by voltage level relationships during signal conversion.

[0004] However, the 8B / 10B encoding scheme requires representing an original eight-bit data stream with a ten-bit data stream, resulting in high encoding computation complexity, low encoding efficiency, and low bandwidth utilization (only 80%). Summary of the Invention

[0005] This application provides an encoding method, a decoding method, and a display device, aiming to solve the technical problem of low bandwidth utilization in encoding schemes of related technologies.

[0006] Firstly, this application provides an encoding method, including:

[0007] Acquire a first initial data stream, wherein the first initial data stream is an eight-bit digital signal;

[0008] The first initial data stream is processed according to a preset logical operation formula, and the target encoded feature value obtained by the operation is output.

[0009] Determine whether the target encoded feature value satisfies the first preset condition;

[0010] When the target encoding feature value satisfies the first preset condition, the number of bits of the i-th bit of the first initial data stream is assigned to the number of bits of the (i+1)-th bit of the first target data stream to be output, and the number of bits of the first target data stream obtained by performing a logical NOT operation on the number of bits of the first bit of the first initial data stream is assigned to the number of bits of the first bit of the first target data stream, where i is an integer greater than or equal to 1 and less than or equal to 8.

[0011] Output the first target data stream.

[0012] In the encoding method provided in this application, when the target encoding feature value does not meet the first preset condition, the number of bits of the first preset bit position of the first initial data stream and the number of bits of the second preset bit position of the first initial data stream are obtained, wherein the first preset bit position is the j-th bit position of the first initial data stream, the second preset bit position is the (j+1)-th bit position of the first initial data stream, and j is an integer greater than or equal to 1 and less than or equal to 7.

[0013] Determine whether the number of bits in the first preset bit position and the number of bits in the second preset bit position satisfy the second preset condition;

[0014] When the number of bits in the first preset bit position and the number of bits in the second preset bit position satisfy the second preset condition, the number of bits in the m-th bit position of the first initial data stream is assigned to the number of bits in the (m+1)-th bit position of the first target data stream, the second target bit position obtained by performing a logical NOT operation on the number of bits in the n-th bit position of the first initial data stream is assigned to the number of bits in the (n+1)-th bit position of the first target data stream, and the first target bit position is assigned to the number of bits in the first bit position of the first target data stream, where m∈{2,3,4,6,8}, n∈{1,5,7}.

[0015] In the encoding method provided in this application, the second preset condition is that the number of bits in the first preset bit position is the same as the number of bits in the second preset bit position.

[0016] In the encoding method provided in this application, when the number of bits of the first preset bit and the number of bits of the second preset bit do not satisfy the second preset condition, the number of bits of the p-th bit of the first initial data stream is assigned to the number of bits of the (p+1)-th bit of the first target data stream, the third target bit obtained by performing a logical NOT operation on the number of bits of the q-th bit of the first initial data stream is assigned to the number of bits of the (q+1)-th bit of the first target data stream, and the number of bits of the first bit of the first initial data stream is assigned to the number of bits of the first bit of the first target data stream, where p∈{1, 2, 3, 4, 7, 8}, q∈{5, 6}.

[0017] In the encoding method provided in this application, the first preset condition is that the target encoding feature value is equal to a preset feature value, wherein the preset feature value is 0.

[0018] In the encoding method provided in this application, the step of performing operations on the first initial data stream according to a preset logical operation formula and outputting the target encoded feature value obtained by the operation includes:

[0019] The first initial data stream is subjected to a logical AND operation based on the first preset logical operation relation, and the reference encoded feature value obtained by the logical AND operation is output.

[0020] The reference encoded feature value is subjected to a logical OR operation based on the second preset logical operation relation of the preset logical operation relation, and the target encoded feature value obtained by the logical OR operation is output.

[0021] In the encoding method provided in this application, the step of performing a logical AND operation on the first initial data stream according to the first preset logical operation relation and outputting the reference encoded feature value obtained by the logical AND operation includes:

[0022] The first initial data stream is subjected to a logical AND operation based on eight first preset logical operation relationships, and eight reference encoded feature values ​​obtained by the logical AND operation are output; wherein...

[0023] The first pre-defined logical operation relation is:

[0024] M1 = A[7]&A[6]&A[5]&A[4];

[0025] The second pre-defined logical operation relation is:

[0026] M2=A[6]&A[5]&A[4]&A[3]&A[2]&A[1];

[0027] The third first logical presupposition is:

[0028] M3=A[5]&A[4]&A[3]&A[2]&A[1]&A[0];

[0029] The fourth pre-defined logical operation relation is:

[0030] M4=A[7]&A[6]&~A[4]&~A[3]&~A[2]&~A[1]&~A[0];

[0031] The fifth pre-defined logical operation relation is:

[0032] M5=~A[7]&~A[6]&~A[4]&~A[3]&~A[2]&A[1];

[0033] The sixth pre-defined logical operation relation is:

[0034] M6=~A[7]&~A[6]&~A[5]&~A[4];

[0035] The seventh pre-defined logical operation relation is:

[0036] M7=~A[6]&~A[5]&~A[4]&~A[3]&~A[2]&~A[1];

[0037] The eighth pre-defined logical operation relation is:

[0038] M8=~A[5]&~A[4]&~A[3]&~A[2]&~A[1]&~A[0];

[0039] Wherein, M1 is the first reference coding feature value, M2 is the second reference coding feature value, M3 is the third reference coding feature value, M4 is the fourth reference coding feature value, M5 is the fifth reference coding feature value, M6 is the sixth reference coding feature value, M7 is the seventh reference coding feature value, M8 is the eighth reference coding feature value, A[7] to A[0] are the number of bits from the eighth bit to the first bit of the first initial data stream, ~ indicates performing a logical NOT operation, and & indicates performing a logical AND operation.

[0040] In the encoding method provided in this application, the step of performing a logical OR operation on the reference encoded feature value according to the second preset logical operation relation of the preset logical operation relation, and outputting the target encoded feature value obtained by the logical OR operation, includes:

[0041] According to the second preset logical operation relation, a logical OR operation is performed on the R reference encoded feature values, and the target encoded feature value obtained by the logical OR operation is output, wherein the second preset logical operation relation is:

[0042] Mtar = M1|…|MR;

[0043] Where Mtar is the target coding feature value, M1 is the first reference coding feature value, MR is the Rth reference coding feature value, R is an integer greater than or equal to 2, and | indicates performing a logical OR operation.

[0044] Secondly, this application also provides a decoding method, including:

[0045] Acquire a second initial data stream, which is a digital signal with nine bits.

[0046] The second target data stream to be output is obtained from a preset lookup table according to the second initial data stream, wherein the preset lookup table includes the first initial data stream in the encoding method according to any one of claims 1 to 8 and the first target data stream mapped to the first initial data stream, and the second initial data stream is one of a plurality of the first target data streams;

[0047] Output the second target data stream.

[0048] Thirdly, this application also provides a display device, comprising: an encoder, the encoder being used to implement the encoding method as described in any one of claims 1 to 8;

[0049] A decoder, the decoder being used to implement the decoding method as described in claim 9;

[0050] The display panel displays data based on a first target data stream output by the encoder and / or a second target data stream output by the decoder.

[0051] The encoding method provided in this application first obtains the target encoding feature value by performing operations on the first initial data stream according to a preset logical operation relationship, then determines whether the target encoding feature value meets the first preset condition, and finally, based on the case that the target encoding feature value meets the first preset condition, the first initial data stream with eight bits before encoding is converted into the first target data stream with nine bits after encoding by using only logical NOT operations. This improves bandwidth utilization while reducing the complexity of logical operations required for the encoding process. Attached Figure Description

[0052] Figure 1 A schematic diagram illustrating the application environment of the encoding / decoding method provided in the embodiments of this application;

[0053] Figure 2 A schematic diagram of the first step of the encoding method provided for an embodiment of this application;

[0054] Figure 3 for Figure 2 A schematic diagram of one step of step S20 of the encoding method shown;

[0055] Figure 4 A schematic diagram of the second step of the encoding method provided in the embodiments of this application;

[0056] Figure 5 A schematic diagram of the third step of the encoding method provided in the embodiments of this application;

[0057] Figure 6 A schematic diagram illustrating one step of a decoding method provided in an embodiment of this application;

[0058] Figure 7 A block diagram of a display device provided for an embodiment of this application. Detailed Implementation

[0059] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. The described embodiments are only used to explain the ideas of the present invention and should not be regarded as limiting the scope of protection of this application.

[0060] It should also be noted that the symbols or expressions appearing in the embodiments of this application have the following meanings:

[0061] In a data stream, the lowest bit is the first bit N[1], the second lowest bit is the second bit N[2], and so on, up to the highest bit. For example, assuming the data stream is “0101”, then the first bit N[1] of “0101” corresponds to “1”, the second bit N[2] corresponds to “0”, the third bit N[3] corresponds to “1”, and the fourth bit N[4] corresponds to “0”. The number of bits represents the content of the bit, which is “0” or “1” when both the data stream before and after encoding are binary data.

[0062] Please refer to Figure 1 , Figure 1 This is a schematic diagram illustrating the application environment of the encoding and decoding methods provided in the embodiments of this application, such as... Figure 1 As shown, the encoding method and decoding method are applied in the display device 100, which includes a timing controller TCON, multiple source driver chips SDIC, and multiple first signal transmission lines a.

[0063] One end of each of the multiple first signal transmission lines a corresponds to and is electrically connected to multiple source driver chips SDIC, and the other end of each of the multiple first signal transmission lines a corresponds to and is electrically connected to multiple pins of the timing controller TCON.

[0064] In addition, such as Figure 1 As shown, the source driver chip SDIC can be fixed on a chip-on-film (COF) film, which is a well-known technology to those skilled in the art and will not be described in detail here.

[0065] In addition, the display device 100 also includes multiple second signal transmission lines b, multiple source driver chips SDIC correspond one-to-one with one end of the multiple second signal transmission lines b and are electrically connected, and the other end of the multiple second signal transmission lines b is electrically connected to a pin of the timing controller TCON.

[0066] In this configuration, the transmission rate of the first signal transmission line a is lower than that of the second signal transmission line b. The first signal transmission line a can be a low-speed signal line, used to indicate the level state. The second signal transmission line b can be a high-speed signal line, used to transmit high-speed differential signals.

[0067] In the embodiments of this application, a novel encoding method is provided for 8B / 9B (encoding an eight-bit data stream into a nine-bit data stream) encoding, thereby improving bandwidth utilization from 80% to 88.8%. Both the eight-bit data stream before encoding and the nine-bit data stream after encoding are binary data. The data stream transmitted between the timing controller TCON and the source driver chip SDIC can be encoded using the encoding method provided in this application. The data stream transmitted between the timing controller TCON and the source driver chip SDIC can be the data stream transmitted via the first signal transmission line a or the data stream transmitted via the second signal transmission line b; the embodiments of this application do not limit this.

[0068] In some embodiments provided in this application, Figure 2 The encoding method 200 shown can be applied to Figure 1 The environment shown. Encoding method 200 includes steps S10, S20, S30, S40, and S50.

[0069] In step S10, the first initial data stream is obtained.

[0070] In this step S10, "first initial data stream" refers to the data stream before encoding, and "first initial data stream" is a digital signal with eight bits.

[0071] In step S20, the first initial data stream is processed according to a preset logical operation formula, and the target encoded feature value obtained by the operation is output.

[0072] Specifically, such as Figure 3 As shown, in some embodiments provided in this application, step S20 includes steps S21 and S22.

[0073] Step S21: Perform a logical AND operation on the first initial data stream according to the first preset logical operation relation, and output the reference encoded feature value obtained by the logical AND operation.

[0074] Specifically, step S21 includes performing a logical AND operation on the first initial data stream according to eight first preset logical relationships, and outputting eight reference encoded feature values ​​obtained by the logical AND operation.

[0075] The first preset logical operation relation is:

[0076] M1=A[7]&A[6]&A[5]&A[4](1-1);

[0077] The second pre-defined logical operation relation is as follows:

[0078] M2=A[6]&A[5]&A[4]&A[3]&A[2]&A[1](1-2);

[0079] The third pre-defined logical operation relation is as follows:

[0080] M3=A[5]&A[4]&A[3]&A[2]&A[1]&A[0](1-3);

[0081] The fourth pre-defined logical operation relation is as follows:

[0082] M4=A[7]&A[6]&~A[4]&~A[3]&~A[2]&~A[1]&~A[0](1-4);

[0083] The fifth pre-defined logical operation relation is as follows:

[0084] M5=~A[7]&~A[6]&~A[4]&~A[3]&~A[2]&A[1](1-5);

[0085] The sixth pre-defined logical operation relation is as follows:

[0086] M6=~A[7]&~A[6]&~A[5]&~A[4](1-6);

[0087] The seventh pre-defined logical operation relation is as follows:

[0088] M7=~A[6]&~A[5]&~A[4]&~A[3]&~A[2]&~A[1](1-7);

[0089] The eighth pre-defined logical operation relation is as follows:

[0090] M8=~A[5]&~A[4]&~A[3]&~A[2]&~A[1]&~A[0](1-8);

[0091] In the first to eighth first preset logical operation relations (1-1), M1 is the first reference coding feature value, M2 is the second reference coding feature value, M3 is the third reference coding feature value, M4 is the fourth reference coding feature value, M5 is the fifth reference coding feature value, M6 is the sixth reference coding feature value, M7 is the seventh reference coding feature value, M8 is the eighth reference coding feature value, A[7] is the number of bits in the eighth bit of the first initial data stream, A[6] A[5] is the number of bits in the seventh bit of the first initial data stream, A[4] is the number of bits in the sixth bit of the first initial data stream, A[3] is the number of bits in the fourth bit of the first initial data stream, A[2] is the number of bits in the third bit of the first initial data stream, A[1] is the number of bits in the second bit of the first initial data stream, A[0] is the number of bits in the first bit of the first initial data stream, "~" indicates performing a logical NOT operation, and "&" indicates performing a logical AND operation.

[0092] In this way, based on the above eight first preset logical operation relations, eight reference coding feature values ​​can be obtained through logical AND and logical NOT operations. Since only simple logical AND and logical NOT operations are required in this step, the amount of computation involved in the coding process is reduced and the complexity of the computation is reduced, which is conducive to improving coding efficiency.

[0093] Step S22: Perform a logical OR operation on the reference encoded feature value according to the second preset logical operation relation, and output the target encoded feature value obtained by the logical OR operation.

[0094] Specifically, step S22 includes performing a logical OR operation on the R reference encoded feature values ​​according to the second preset logical operation relation, and outputting the target encoded feature value obtained by the logical OR operation.

[0095] The second preset logical operation relation is:

[0096] Mtar = M1|…|MR (2);

[0097] In the second preset logical operation relation (2), Mtar is the target encoded feature value, M1 is the first reference encoded feature value, and MR is the Rth reference encoded feature value. R is an integer greater than or equal to 2, and "|" indicates performing a logical OR operation.

[0098] For example, taking the eight reference encoded feature values ​​obtained through the aforementioned step S21 as an example, the second preset logical operation relation is specifically as follows:

[0099] Mtar=M1|M2|M3|M4|M5|M6|M7|M8(2-1);

[0100] In the second preset logical operation relation (2-1), R equals 8, Mtar is the target coding feature value, M1 is the first reference coding feature value, M2 is the second reference coding feature value, M3 is the third reference coding feature value, M4 is the fourth reference coding feature value, M5 is the fifth reference coding feature value, M6 is the sixth reference coding feature value, M7 is the seventh reference coding feature value, and M8 is the eighth reference coding feature value.

[0101] It is worth mentioning that, according to the first first preset logical operation relation (1-1) to the eighth first preset logical operation relation (1-8), the specific value of any one of the eight reference coding feature values ​​M1 to M8 is "1" if it is not "0". In this way, the specific value of the target coding feature value obtained by performing a logical OR operation according to the second preset logical operation relation (2-1) is "1" if it is not "0".

[0102] For example, when the specific values ​​of the eight reference coding feature values ​​M1 to M8 are all "0", the specific value of the target coding feature value is "0"; when the specific value of at least one of the eight reference coding feature values ​​M1 to M8 is "1", the specific value of the target coding feature value is "1".

[0103] In this way, since the target encoding feature value can be obtained by performing a logical OR operation on the reference encoding feature value according to the above-mentioned second preset logical operation relationship, the amount of logical operation involved in the encoding process to obtain the target encoding feature value is small and the complexity of the logical operation is low, which is easy to execute and helps to improve encoding efficiency.

[0104] In step S30, it is determined whether the target encoded feature value meets the first preset condition.

[0105] Specifically, the first preset condition is that the target encoding feature value is equal to a preset feature value. The preset feature value is 0.

[0106] In other words, if the target encoding feature value is equal to 0, the output will indicate that the target encoding feature value satisfies the first preset condition. If the target encoding feature value is not equal to 0 (i.e., the target encoding feature value is equal to 1), the output will indicate that the target encoding feature value does not satisfy the first preset condition.

[0107] In step S40, if the target encoding feature value satisfies the first preset condition, the number of bits of the i-th bit of the first initial data stream is assigned to the number of bits of the (i+1)-th bit of the first target data stream to be output, and the number of first target bits obtained by performing a logical NOT operation on the number of bits of the first initial data stream is assigned to the number of bits of the first target data stream.

[0108] It is worth noting that i is an integer greater than or equal to 1 and less than or equal to 8. The first target data stream is a nine-bit digital signal.

[0109] That is, in step S40, the first initial data stream is encoded into the first target data stream in the following manner:

[0110] Enc[0] = ~A[0];

[0111] Enc[1] = A[0];

[0112] Enc[2] = A[1];

[0113] Enc[3] = A[2];

[0114] Enc[4] = A[3];

[0115] Enc[5] = A[4];

[0116] Enc[6] = A[5];

[0117] Enc[7] = A[6];

[0118] Enc[8] = A[7];

[0119] The "~" symbol indicates that a logical NOT operation is performed (i.e., a negation operation is performed). For example, performing a logical NOT operation on the number of bits "0" will result in a "1", while performing a logical NOT operation on the number of bits "1" will result in a "0".

[0120] Wherein, Enc[0] is the number of bits in the first bit of the first target data stream, Enc[1] is the number of bits in the second bit of the first target data stream, Enc[2] is the number of bits in the third bit of the first target data stream, Enc[3] is the number of bits in the fourth bit of the first target data stream, Enc[4] is the number of bits in the fifth bit of the first target data stream, Enc[5] is the number of bits in the sixth bit of the first target data stream, Enc[6] is the number of bits in the seventh bit of the first target data stream, Enc[7] is the number of bits in the eighth bit of the first target data stream, and Enc[8] is the number of bits in the ninth bit of the first target data stream.

[0121] Wherein, A[0] is the number of bits in the first bit of the first initial data stream, A[1] is the number of bits in the second bit of the first initial data stream, A[2] is the number of bits in the third bit of the first initial data stream, A[3] is the number of bits in the fourth bit of the first initial data stream, A[4] is the number of bits in the fifth bit of the first initial data stream, A[5] is the number of bits in the sixth bit of the first initial data stream, A[6] is the number of bits in the seventh bit of the first initial data stream, and A[7] is the number of bits in the eighth bit of the first initial data stream.

[0122] In this way, when the target encoding feature value meets the first preset condition, the first target data stream with nine bits can be obtained by performing the above-mentioned logical NOT operation, thereby establishing a one-to-one mapping relationship between the first initial data stream with eight bits and the first target data stream with nine bits. Since only logical AND, logical NOT and logical OR operations are required in steps S20 and S40, the amount of logical operations involved in the encoding process of encoding the first initial data stream into the first target data stream is small and the complexity of logical operations is low, thereby improving the encoding efficiency.

[0123] In step S50, the first target data stream is output. The first target data stream is a nine-bit digital signal.

[0124] In the first target data stream obtained by the encoding method 200 provided in this embodiment, the number of consecutive 5 bits with the number of bits "0" or "1" is further reduced. Compared with the 8B / 10B encoding method of related technologies, the 8B / 9B encoding method provided in this embodiment can further reduce the probability of consecutive 5 bits with the number of bits "0" or "1" in the first target data stream after encoding, thereby further reducing the probability of signal conversion errors, improving the accuracy of signal conversion, and further improving the stability of signal transmission.

[0125] In other embodiments provided in this application, such as Figure 4 As shown, Figure 4 and Figure 2 The difference in the encoding method 200 shown is that, before step S50, Figure 4 The encoding method 200 shown also includes steps S60, S70 and S80.

[0126] Step S60: If the target encoding feature value does not meet the first preset condition, obtain the number of bits of the first preset bit position of the first initial data stream and the number of bits of the second preset bit position of the first initial data stream.

[0127] Wherein, the first preset bit is the j-th bit of the first initial data stream, and the second preset bit is the (j+1)-th bit of the first initial data stream, where j is an integer greater than or equal to 1 and less than or equal to 7. That is to say, in this step S60, the first preset bit and the second preset bit are two consecutive bits out of the eight bits of the first initial data stream.

[0128] In some specific embodiments of this application, the first preset bit is the second bit of the first initial data stream, and the second preset bit is the third bit of the first initial data stream.

[0129] In some specific embodiments of this application, the first preset bit is the third bit of the first initial data stream, and the second preset bit is the fourth bit of the first initial data stream.

[0130] Step S70: Determine whether the number of bits in the first preset bit position and the number of bits in the second preset bit position satisfy the second preset condition.

[0131] Specifically, the second preset condition is that the number of bits in the first preset bit position is the same as the number of bits in the second preset bit position.

[0132] For example, if both the number of bits in the first preset bit position and the number of bits in the second preset bit position are "0", then the second preset condition is satisfied. If both the number of bits in the first preset bit position and the number of bits in the second preset bit position are "1", then the second preset condition is not satisfied.

[0133] Step S80: If the number of bits in the first preset bit position and the number of bits in the second preset bit position satisfy the second preset condition, the number of bits in the m-th bit position of the first initial data stream is assigned to the number of bits in the (m+1)-th bit position of the first target data stream, the second target bit position obtained by performing a logical NOT operation on the number of bits in the n-th bit position of the first initial data stream is assigned to the number of bits in the (n+1)-th bit position of the first target data stream, and the first target bit position is assigned to the number of bits in the first bit position of the first target data stream.

[0134] The first target number of bits is obtained by performing a logical NOT operation on the number of bits in the first bit of the first initial data stream. m∈{2,3,4,6,8}, n∈{1,5,7}.

[0135] That is, in step S80, the first initial data stream is encoded into the first target data stream in the following manner:

[0136] Enc[0] = ~A[0];

[0137] Enc[1] = ~A[0];

[0138] Enc[2] = A[1];

[0139] Enc[3] = A[2];

[0140] Enc[4] = A[3];

[0141] Enc[5] = ~A[4];

[0142] Enc[6] = A[5];

[0143] Enc[7] = ~A[6];

[0144] Enc[8] = A[7];

[0145] The "~" symbol indicates that a logical NOT operation is performed (i.e., a negation operation is performed). For example, performing a logical NOT operation on the number of bits "0" will result in a "1", while performing a logical NOT operation on the number of bits "1" will result in a "0".

[0146] Wherein, Enc[0] is the number of bits in the first bit of the first target data stream, Enc[1] is the number of bits in the second bit of the first target data stream, Enc[2] is the number of bits in the third bit of the first target data stream, Enc[3] is the number of bits in the fourth bit of the first target data stream, Enc[4] is the number of bits in the fifth bit of the first target data stream, Enc[5] is the number of bits in the sixth bit of the first target data stream, Enc[6] is the number of bits in the seventh bit of the first target data stream, Enc[7] is the number of bits in the eighth bit of the first target data stream, and Enc[8] is the number of bits in the ninth bit of the first target data stream.

[0147] Wherein, A[0] is the number of bits in the first bit of the first initial data stream, A[1] is the number of bits in the second bit of the first initial data stream, A[2] is the number of bits in the third bit of the first initial data stream, A[3] is the number of bits in the fourth bit of the first initial data stream, A[4] is the number of bits in the fifth bit of the first initial data stream, A[5] is the number of bits in the sixth bit of the first initial data stream, A[6] is the number of bits in the seventh bit of the first initial data stream, and A[7] is the number of bits in the eighth bit of the first initial data stream.

[0148] In this way, when the target encoding feature value does not meet the first preset condition but meets the second preset condition, a one-to-one mapping relationship between the first initial data stream with eight bits and the first target data stream with nine bits can be established by performing the above-mentioned logical NOT operation. Since only logical AND, logical NOT, and logical OR operations are required in steps S20 and S80, the amount of logical operations involved in the encoding process of encoding the first initial data stream into the first target data stream is small and the complexity of logical operations is low, thereby improving the encoding efficiency. Furthermore, compared with the encoded data stream obtained by the 8B / 10B encoding method, the probability of five consecutive bits being "0" or "1" in the first target data stream encoded according to step S80 is reduced. The 8B / 9B encoding method provided in this embodiment can further reduce the probability of signal conversion errors, improve the accuracy of signal conversion, and thus improve the stability of signal transmission.

[0149] After executing step S80, step S50 is executed to output the first target data stream to be output based on the encoding obtained from steps S60 to S80.

[0150] In some other embodiments provided in this application, such as Figure 5 As shown, Figure 5 and Figure 2 as well as Figure 4 The difference in the encoding method 200 shown is that, before step S50 and after step S70, Figure 5 The encoding method 200 shown also includes step S90.

[0151] In step S90, if the number of bits in the first preset bit position and the number of bits in the second preset bit position do not meet the second preset condition, the number of bits in the p-th bit position of the first initial data stream is assigned to the number of bits in the (p+1)-th bit position of the first target data stream, the third target bit position obtained by performing a logical NOT operation on the number of bits in the q-th bit position of the first initial data stream is assigned to the number of bits in the (q+1)-th bit position of the first target data stream, and the number of bits in the first bit position of the first initial data stream is assigned to the number of bits in the first bit position of the first target data stream.

[0152] Where p∈{1,2,3,4,7,8}, q∈{5,6}.

[0153] That is, in step S90, the first initial data stream is encoded into the first target data stream in the following manner:

[0154] Enc[0] = A[0];

[0155] Enc[1] = A[0];

[0156] Enc[2] = A[1];

[0157] Enc[3] = A[2];

[0158] Enc[4] = A[3];

[0159] Enc[5] = ~A[4];

[0160] Enc[6] = ~A[5];

[0161] Enc[7] = A[6];

[0162] Enc[8] = A[7];

[0163] The "~" symbol indicates that a logical NOT operation is performed (i.e., a negation operation is performed). For example, performing a logical NOT operation on the number of bits "0" will result in a "1", while performing a logical NOT operation on the number of bits "1" will result in a "0".

[0164] Wherein, Enc[0] is the number of bits in the first bit of the first target data stream, Enc[1] is the number of bits in the second bit of the first target data stream, Enc[2] is the number of bits in the third bit of the first target data stream, Enc[3] is the number of bits in the fourth bit of the first target data stream, Enc[4] is the number of bits in the fifth bit of the first target data stream, Enc[5] is the number of bits in the sixth bit of the first target data stream, Enc[6] is the number of bits in the seventh bit of the first target data stream, Enc[7] is the number of bits in the eighth bit of the first target data stream, and Enc[8] is the number of bits in the ninth bit of the first target data stream.

[0165] Wherein, A[0] is the number of bits in the first bit of the first initial data stream, A[1] is the number of bits in the second bit of the first initial data stream, A[2] is the number of bits in the third bit of the first initial data stream, A[3] is the number of bits in the fourth bit of the first initial data stream, A[4] is the number of bits in the fifth bit of the first initial data stream, A[5] is the number of bits in the sixth bit of the first initial data stream, A[6] is the number of bits in the seventh bit of the first initial data stream, and A[7] is the number of bits in the eighth bit of the first initial data stream.

[0166] In this way, if the target encoding feature value does not meet the first preset condition and the second preset condition, a one-to-one mapping relationship between the first initial data stream with eight bits and the first target data stream with nine bits can be established by performing the above-mentioned logical NOT operation. Since only logical AND, logical NOT and logical OR operations are required in steps S20 and S90, the logical operations involved in the encoding process of the first initial data stream into the first target data stream are small and the complexity of the logical operations is low, thereby improving the encoding efficiency.

[0167] Furthermore, compared to the 8B / 10B encoding method of related technologies, the number of consecutive 5 bits with the number of "0" or "1" bits in the first target data stream obtained by encoding according to step S90 is further reduced. Therefore, the 8B / 9B encoding method provided in this embodiment can further reduce the probability of consecutive 5 bits with the number of "0" or "1" bits in the first target data stream obtained after encoding, thereby further reducing the probability of signal conversion errors, improving the accuracy of signal conversion, and further improving the stability of signal transmission.

[0168] After executing step S90, step S50 is executed to output the first target data stream to be output, which is encoded based on steps S60, S70 and S90.

[0169] Based on the above, step S40 is executed when the first preset condition is met, step S80 is executed when the first preset condition is not met but the second preset condition is met, and step S90 is executed when neither the first preset condition nor the second preset condition is met. Each first initial data stream with eight bits has a corresponding first target data stream with nine bits. In other words, the 256 first initial data streams with eight bits and the 256 first target data streams with nine bits have a one-to-one mapping relationship.

[0170] Furthermore, compared to related technologies that require ten bits of bandwidth to achieve 8B / 10B encoding, resulting in an 80% ((8 / 10)×100%) encoding efficiency, this embodiment requires only nine bits of bandwidth to achieve 8B / 9B encoding, resulting in an 88.8% ((8 / 9)×100%) encoding efficiency. Thus, compared to 8B / 10B encoding, the 8B / 9B encoding provided in this embodiment sacrifices less bandwidth to achieve the encoding result, reduces the additional energy loss at the transmitting end of the first target data stream after transmission encoding, reduces the additional energy loss at the receiving end of the first target data stream after reception encoding, and reduces the circuit size required to achieve the encoding.

[0171] Specifically, as shown in Table 1-1 below, each first initial data stream with eight bits (8B in Table 1-1) has a corresponding first destination data stream with nine bits (9B in Table 1-1).

[0172]

[0173]

[0174]

[0175]

[0176]

[0177]

[0178]

[0179] Table 1-1

[0180] Embodiments of this application also provide a decoding method, such as... Figure 6 As shown, the decoding method 300 includes steps S301, S302 and S303.

[0181] Step S301: Obtain the second initial data stream.

[0182] In step S301, the second initial data stream is a digital signal with nine bits.

[0183] Step S302: Obtain the second target data stream to be output from the preset lookup table according to the second initial data stream.

[0184] In step S302, the "preset lookup table" includes a first initial data stream and a first target data stream mapped to the first initial data stream in any of the encoding methods provided in this application. The second initial data stream is one of a plurality of first target data streams. The second target data stream is one of a plurality of first initial data streams, and the second target data stream is a first initial data stream mapped to the second initial data stream.

[0185] Step S303: Output the second target data stream.

[0186] In step S303, the second target data stream is an eight-bit digital signal.

[0187] The decoding method 300 provided in this embodiment establishes a one-to-one mapping relationship between the second initial data stream with nine bits before decoding and the second target data stream with eight bits after decoding. This effectively ensures that the transmitted encoded first target data stream can be correctly restored to the first initial data stream before encoding at the receiving end, and effectively reduces signal transmission errors.

[0188] like Figure 7 As shown, embodiments of this application also provide a display device 100, including an encoder 401, a decoder 402, and a display panel.

[0189] Encoder 401 is used to implement the encoding method described in any of the foregoing embodiments.

[0190] In some embodiments provided in this application, encoder 401 is a system-on-a-chip (SOC) of display device 100, and decoder 402 is a timing controller (TCON) of display device 100. In this way, the SOC encodes the received eight-bit initial data stream into a nine-bit first target data stream to perform 8B / 9B encoding.

[0191] In some embodiments provided in this application, encoder 401 is timing controller TCON of display device 100, and decoder 402 is source driver chip SDIC of display device 100. In this way, timing controller TCON encodes the received first initial data stream with eight bits into a first target data stream with nine bits to perform 8B / 9B encoding.

[0192] Decoder 402 is used to implement the decoding method described in any of the foregoing embodiments.

[0193] In some embodiments provided in this application, the decoder 402 is a system-on-a-chip (SOC) of the display device. In this way, the SOC decodes a second initial data stream with nine bits sent by an external device into a second target data stream with eight bits, thereby performing 9B / 8B decoding.

[0194] In some embodiments provided in this application, the decoder 402 is the timing controller TCON of the display device 100. In this way, the timing controller TCON decodes the second initial data stream with nine bits sent by the system-on-a-chip (SOC) into a second target data stream with eight bits to perform 9B / 8B decoding.

[0195] In some embodiments provided in this application, the decoder 402 is the source driver chip SDIC of the display device 100. In this way, the source driver chip SDIC decodes the second initial data stream with nine bits sent by the timing controller TCON into a second target data stream with eight bits to perform 9B / 8B decoding.

[0196] In some embodiments provided in this application, the decoder 402 is the power management chip (PMIC) of the display device 100. In this way, the power management chip (PMIC) decodes the nine-bit initial data stream sent by the timing controller (TCON) into an eight-bit target data stream to perform 9B / 8B decoding.

[0197] The display panel displays data based on the first target data stream output by the encoder 401 and / or the second target data stream output by the decoder 402.

[0198] For example, the first target data stream can be an instruction signal output from the timing controller TCON of the encoder 401 to the power management chip PMIC. The power management chip PMIC adjusts the voltage values ​​of the analog power supply voltage AVDD and the bound point gamma voltage VGAM output to the source driver chip SDIC according to the received first target data stream. The source driver chip SDIC then drives the display panel to display based on the analog power supply voltage AVDD and the bound point gamma voltage VGAM.

[0199] Correspondingly, the second initial data stream can be the instruction signal received by the power management chip PMIC, which acts as the decoder 402. The power management chip PMIC adjusts the voltage values ​​of the analog power supply voltage AVDD and the bound point gamma voltage VGAM output to the source driver chip SDIC according to the decoded instruction signal, so as to drive the display panel to display.

[0200] For example, the first target data stream can be the display image data RGB output by the timing controller TCON, which acts as the encoder 401, to the source driver chip SDIC. The source driver chip SDIC then drives the display panel to display based on the display image data RGB.

[0201] Correspondingly, the second initial data stream can be the display image data RGB received by the source driver chip SDIC, which acts as the decoder 402. The source driver chip SDIC drives the display panel to display based on the decoded display image data RGB.

[0202] In the display device 100 provided in this embodiment, the encoding and decoding method used, during encoding, encodes an eight-bit data stream (first initial data stream) into a nine-bit data stream (first target data stream), which further reduces the probability of signal conversion errors during encoding, improves the accuracy of signal conversion, and thus further improves the stability of signal transmission within the display device 100. During decoding, decoding the nine-bit data stream into an eight-bit data stream effectively ensures that the transmitted data can be correctly restored at the receiving end. The encoding logic executed by the encoder in this embodiment is simple, and the decoding logic executed by the decoder is simple, thus requiring less logic operation resources of the display device 100 for encoding and / or decoding, and making encoding and / or decoding highly feasible.

[0203] Of course, this application may have other various embodiments. Without departing from the spirit and essential points of this application, those skilled in the art can make various corresponding changes and modifications based on this application, but these corresponding changes and modifications should all fall within the protection scope of the appended claims.

Claims

1. An encoding method characterized by comprising: include: Acquire a first initial data stream, wherein the first initial data stream is an eight-bit digital signal; The first initial data stream is processed according to a preset logical operation formula, and the target encoded feature value obtained by the operation is output. Determine whether the target encoded feature value satisfies the first preset condition; When the target encoding feature value satisfies the first preset condition, the number of bits of the i-th bit of the first initial data stream is assigned to the number of bits of the (i+1)-th bit of the first target data stream to be output, and the number of bits of the first target data stream obtained by performing a logical NOT operation on the number of bits of the first bit of the first initial data stream is assigned to the number of bits of the first bit of the first target data stream, where i is an integer greater than or equal to 1 and less than or equal to 8. Output the first target data stream; The encoding method further includes: When the target encoding feature value does not meet the first preset condition, the number of bits of the first preset bit position of the first initial data stream and the number of bits of the second preset bit position of the first initial data stream are obtained, wherein the first preset bit position is the j-th bit position of the first initial data stream, the second preset bit position is the (j+1)-th bit position of the first initial data stream, and j is an integer greater than or equal to 1 and less than or equal to 7. Determine whether the number of bits in the first preset bit position and the number of bits in the second preset bit position satisfy the second preset condition; When the number of bits in the first preset bit position and the number of bits in the second preset bit position satisfy the second preset condition, the number of bits in the m-th bit position of the first initial data stream is assigned to the number of bits in the (m+1)-th bit position of the first target data stream, the second target bit position obtained by performing a logical NOT operation on the number of bits in the n-th bit position of the first initial data stream is assigned to the number of bits in the (n+1)-th bit position of the first target data stream, and the first target bit position is assigned to the number of bits in the first bit position of the first target data stream, where m∈{2,3,4,6,8}, n∈{1,5,7}.

2. The encoding method of claim 1, wherein, The second preset condition is that the number of bits in the first preset bit position is the same as the number of bits in the second preset bit position.

3. The encoding method of claim 1, wherein, The encoding method further includes: If the number of bits in the first preset bit position and the number of bits in the second preset bit position do not meet the second preset condition, the number of bits in the p-th bit position of the first initial data stream is assigned to the number of bits in the (p+1)-th bit position of the first target data stream, the third target bit position obtained by performing a logical NOT operation on the number of bits in the q-th bit position of the first initial data stream is assigned to the number of bits in the (q+1)-th bit position of the first target data stream, and the number of bits in the first bit position of the first initial data stream is assigned to the number of bits in the first bit position of the first target data stream, where p∈{1, 2, 3, 4, 7, 8}, q∈{5, 6}.

4. The encoding method according to claim 1, characterized in that, The first preset condition is that the target encoding feature value is equal to a preset feature value, wherein the preset feature value is 0.

5. The encoding method according to claim 1, characterized in that, The step of performing operations on the first initial data stream according to a preset logical operation formula and outputting the target encoded feature value obtained by the operation includes: The first initial data stream is subjected to a logical AND operation based on the first preset logical operation relation, and the reference encoded feature value obtained by the logical AND operation is output. The reference encoded feature value is subjected to a logical OR operation based on the second preset logical operation relation of the preset logical operation relation, and the target encoded feature value obtained by the logical OR operation is output.

6. The encoding method according to claim 5, characterized in that, The step of performing a logical AND operation on the first initial data stream according to the first preset logical operation relation and outputting the reference encoded feature value obtained by the logical AND operation includes: The first initial data stream is subjected to a logical AND operation based on eight first preset logical operation relationships, and eight reference encoded feature values ​​obtained by the logical AND operation are output; wherein... The first pre-defined logical operation relation is: M1=A[7]&A[6]&A[5]&A[4]; The second pre-defined logical operation relation is: M2=A[6]&A[5]&A[4]&A[3]&A[2]&A[1]; The third first logical presupposition is: M3=A[5]&A[4]&A[3]&A[2]&A[1]&A[0]; The fourth pre-defined logical operation relation is: M4=A[7]&A[6]&~A[4]&~A[3]&~A[2]&~A[1]&~A[0]; The fifth pre-defined logical operation relation is: M5=~A[7]&~A[6]&~A[4]&~A[3]&~A[2]&A[1]; The sixth pre-defined logical operation relation is: M6 = ~A[7]&~A[6]&~A[5]&~A[4]; The seventh pre-defined logical operation relation is: M7 = ~A[6]&~A[5]&~A[4]&~A[3]&~A[2]&~A[1]; The eighth pre-defined logical operation relation is: M8 = ~A[5]&~A[4]&~A[3]&~A[2]&~A[1]&~A[0]; Wherein, M1 is the first reference coding feature value, M2 is the second reference coding feature value, M3 is the third reference coding feature value, M4 is the fourth reference coding feature value, M5 is the fifth reference coding feature value, M6 is the sixth reference coding feature value, M7 is the seventh reference coding feature value, M8 is the eighth reference coding feature value, A[7] to A[0] are the number of bits from the eighth bit to the first bit of the first initial data stream, ~ indicates performing a logical NOT operation, and & indicates performing a logical AND operation.

7. The encoding method according to claim 5, characterized in that, The step of performing a logical OR operation on the reference encoded feature value according to the second preset logical operation relation based on the preset logical operation relation, and outputting the target encoded feature value obtained by the logical OR operation, includes: According to the second preset logical operation relation, a logical OR operation is performed on the R reference encoded feature values, and the target encoded feature value obtained by the logical OR operation is output, wherein the second preset logical operation relation is: Mtar = M1|…|MR; Where Mtar is the target coding feature value, M1 is the first reference coding feature value, MR is the Rth reference coding feature value, R is an integer greater than or equal to 2, and | indicates performing a logical OR operation.

8. A decoding method, characterized in that, include: Acquire a second initial data stream, which is a digital signal with nine bits. The second target data stream to be output is obtained from a preset lookup table according to the second initial data stream, wherein the preset lookup table includes the first initial data stream in the encoding method according to any one of claims 1 to 7 and the first target data stream mapped to the first initial data stream, and the second initial data stream is one of a plurality of the first target data streams; Output the second target data stream.

9. A display device, characterized in that, include: An encoder, the encoder being used to implement the encoding method as described in any one of claims 1 to 7; A decoder, the decoder being used to implement the decoding method as described in claim 8; The display panel displays data based on a first target data stream output by the encoder and / or a second target data stream output by the decoder.

Citation Information

Patent Citations

  • Encoding method, decoding method, encoding device, and decoding device

    CN112953680A

  • Coding method and storage medium

    CN113630211A