Encoding method, decoding method, and display device
By generating target encoding feature values through logical operations on the initial data stream, the problem of low encoding efficiency in the 8B/10B encoding scheme is solved, achieving higher bandwidth utilization and lower signal transmission error rate, thus improving the stability and accuracy of signal transmission.
Patent Information
- Application Number
- CN202410606141.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-05-15
AI Technical Summary
The existing 8B/10B encoding scheme has low encoding efficiency and low bandwidth utilization, resulting in a high signal transmission error rate.
By processing the initial data stream with a preset logical operation relation, 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.
It improved bandwidth utilization to 88.8%, reduced signal transmission error rate, and improved the stability and accuracy of signal transmission.
Smart Images

Figure CN120980247A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data transmission, in particular to an encoding method, a decoding method and a display device. BACKGROUND
[0002] In serial synchronous communication and high-speed signal transmission, when multiple consecutive logical "1" or logical "0" appear in the data stream on the channel, the signal conversion will cause signal error decoding due to the voltage level relationship, affecting the accuracy of information transmission.
[0003] To this end, the related technology proposes an 8B / 10B encoding scheme (an encoding scheme for encoding an eight-bit data stream into a ten-bit data stream to keep the number of logical "1" and logical "0" transmitted on the signal transmission bus substantially consistent to achieve DC Balance, so that the DC offset in the channel is zero or approximately zero, thereby reducing signal error decoding caused by the voltage level relationship of signal conversion.
[0004] However, the 8B / 10B encoding scheme needs to represent an originally eight-bit data stream with a ten-bit data stream, and the encoding operation complexity is high, not only the encoding efficiency is low, but also the bandwidth utilization rate is not high (the bandwidth utilization rate is only 80%). SUMMARY
[0005] The present application provides an encoding method, a decoding method and a display device, aiming to solve the technical problem of low bandwidth utilization rate of the encoding scheme of the related technology.
[0006] In a first aspect, the present application provides an encoding method, comprising:
[0007] obtaining a first initial data stream, the first initial data stream being a digital signal having eight-bit positions;
[0008] performing operation on the first initial data stream according to a preset logical operation relationship, and outputting a target encoding feature value obtained by operation;
[0009] determining whether the target encoding feature value meets a first preset condition;
[0010] in a case where the target encoding feature value meets the first preset condition, assigning a bit number of an i-th bit position of the first initial data stream as a bit number of an i+1-th bit position of a first target data stream to be output, and assigning a first target bit number obtained by performing logical NOT operation on a bit number of a first bit position of the first initial data stream as a bit number of the first bit position of the first target data stream, wherein i is an integer greater than or equal to 1 and less than or equal to 8;
[0011] outputting the first target data stream.
[0012] In the encoding method provided in the present application, in the case that the target encoding characteristic value does not satisfy the first preset condition, the bit number of the first preset bit of the first initial data stream and the bit number of the second preset bit of the first initial data stream are obtained, wherein the first preset bit is the jth bit of the first initial data stream, the second preset bit is the (j+1)th bit 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] It is judged whether the bit number of the first preset bit and the bit number of the second preset bit satisfy a second preset condition;
[0014] In the case that the bit number of the first preset bit and the bit number of the second preset bit satisfy the second preset condition, the bit number of the mth bit of the first initial data stream is assigned as the bit number of the (m+1)th bit of the first target data stream, the second target bit number obtained by performing logical NOT operation on the bit number of the nth bit of the first initial data stream is assigned as the bit number of the (n+1)th bit of the first target data stream, and the first target bit number is assigned as the bit number of the first bit of the first target data stream, wherein m∈{2, 3, 4, 6, 8}, and n∈{1, 5, 7}.
[0015] In the encoding method provided in the present application, the second preset condition is that the bit number of the first preset bit is the same as the bit number of the second preset bit.
[0016] In the encoding method provided in the present application, in the case that the bit number of the first preset bit and the bit number of the second preset bit do not satisfy the second preset condition, the bit number of the pth bit of the first initial data stream is assigned as the bit number of the (p+1)th bit of the first target data stream, the third target bit number obtained by performing logical NOT operation on the bit number of the qth bit of the first initial data stream is assigned as the bit number of the (q+1)th bit of the first target data stream, and the bit number of the first bit of the first initial data stream is assigned as the bit number of the first bit of the first target data stream, wherein p∈{1, 2, 3, 4, 7, 8}, and q∈{5, 6}.
[0017] In the encoding method provided in the present application, the first preset condition is that the target encoding characteristic value is equal to a preset characteristic value, wherein the preset characteristic value is 0.
[0018] In the encoding method provided in the present application, the step of performing operation on the first initial data stream according to a preset logical operation relationship and outputting a target encoding characteristic value obtained by the operation comprises:
[0019] performing logical AND operation on the first initial data stream according to a first preset logical operation relationship of the preset logical operation relationship, and outputting a reference encoding feature value obtained through the logical AND operation;
[0020] performing logical OR operation on the reference encoding feature value according to a second preset logical operation relationship of the preset logical operation relationship, and outputting the target encoding feature value obtained through the logical OR operation.
[0021] In the encoding method provided in the present application, the step of performing logical AND operation on the first initial data stream according to a first preset logical operation relationship of the preset logical operation relationship, and outputting a reference encoding feature value obtained through the logical AND operation includes:
[0022] performing logical AND operation on the first initial data stream according to eight first preset logical operation relationships respectively, and outputting eight reference encoding feature values obtained through the logical AND operation; wherein,
[0023] the first first preset logical operation relationship is:
[0024] M1=A[7]&A[6]&A[5]&A[4];
[0025] the second first preset logical operation relationship is:
[0026] M2=A[6]&A[5]&A[4]&A[3]&A[2]&A[1];
[0027] the third first preset logical operation relationship is:
[0028] M3=A[5]&A[4]&A[3]&A[2]&A[1]&A[0];
[0029] the fourth first preset logical operation relationship is:
[0030] M4=A[7]&A[6]&~A[4]&~A[3]&~A[2]&~A[1]&~A[0];
[0031] the fifth first preset logical operation relationship is:
[0032] M5=~A[7]&~A[6]&~A[4]&~A[3]&~A[2]&A[1];
[0033] the sixth first preset logical operation relationship is:
[0034] M6=~A[7]&~A[6]&~A[5]&~A[4];
[0035] The seventh first preset logical operation relationship is:
[0036] M7 = ~A[6] & ~A[5] & ~A[4] & ~A[3] & ~A[2] & ~A[1];
[0037] The eighth first preset logical operation relationship is:
[0038] M8 = ~A[5] & ~A[4] & ~A[3] & ~A[2] & ~A[1] & ~A[0];
[0039] Wherein, M1 is the first reference encoding characteristic value, M2 is the second reference encoding characteristic value, M3 is the third reference encoding characteristic value, M4 is the fourth reference encoding characteristic value, M5 is the fifth reference encoding characteristic value, M6 is the sixth reference encoding characteristic value, M7 is the seventh reference encoding characteristic value, M8 is the eighth reference encoding characteristic value, A[7] to A[0] are respectively the bit number of the eighth bit to the first bit of the first initial data stream, ~ represents performing logical NOT operation, & represents performing logical AND operation.
[0040] In the encoding method provided in the application, the step of performing logical OR operation on the reference encoding characteristic values according to the second preset logical operation relationship of the preset logical operation relationship and outputting the target encoding characteristic value obtained by the logical OR operation includes:
[0041] According to the second preset logical operation relationship, R reference encoding characteristic values are logically ORed, and the target encoding characteristic value obtained by the logical OR operation is outputted, wherein the second preset logical operation relationship is:
[0042] Mtar = M1 | … | MR;
[0043] Wherein, Mtar is the target encoding characteristic value, M1 is the first reference encoding characteristic value, MR is the Rth reference encoding characteristic value, R is an integer greater than or equal to 2, and | represents performing logical OR operation.
[0044] In a second aspect, the application further provides a decoding method, comprising:
[0045] Obtaining a second initial data stream, the second initial data stream being a digital signal with nine bits;
[0046] According to the second initial data stream, a second target data stream to be outputted is obtained from a preset lookup table, wherein the preset lookup table comprises the first initial data stream in the encoding method of any one of claims 1 to 8 and the first target data stream mapped with the first initial data stream, and the second initial data stream is one of a plurality of 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 in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. The described embodiments are only used to explain the ideas of the present application and should not be regarded as limitations on the protection scope of the present application.
[0060] Meanwhile, it needs to be noted that the symbols or expressions appearing in the embodiments of the present application represent the following meanings:
[0061] In the data stream, the lowest bit of the data stream is the first bit N[1], the next lowest bit is the second bit N[2], and so on until the highest bit. For example, assuming that the data stream is "0101", then the first bit N[1] of "0101" corresponds to the bit number "1", the second bit N[2] corresponds to the bit number "0", the third bit N[3] corresponds to the bit number "1", and the fourth bit N[4] corresponds to the bit number "0". Wherein, the bit number represents the content corresponding to the bit, and in the case of binary data before and after encoding, the bit number is "0" or "1".
[0062] Please refer to Figure 1 , Figure 1 is the application environment schematic diagram of the encoding method and the decoding method provided by the embodiments of the present application, as Figure 1 shown, the encoding method and the decoding method are applied in the display device 100, and the display device 100 includes a timing controller TCON, a plurality of source drive chips SDIC, and a plurality of first signal transmission lines a.
[0063] One end of the plurality of first signal transmission lines a is in one-to-one correspondence with and electrically connected to the plurality of source drive chips SDIC, and the other end of the plurality of first signal transmission lines a is in one-to-one correspondence with and electrically connected to a plurality of pins of the timing controller TCON.
[0064] In addition, as Figure 1 shown, the source drive chip SDIC can be fixed on a chip on film COF (Chip On Film), which is a technology well known to those skilled in the art and will not be described here.
[0065] In addition, the display device 100 further includes a plurality of second signal transmission lines b, and the plurality of source drive chips SDIC are in one-to-one correspondence with and electrically connected to one end of the plurality of second signal transmission lines b, and the other end of the plurality of second signal transmission lines b is electrically connected to one pin of the timing controller TCON.
[0066] The transmission rate of the first signal transmission line a is less than the transmission rate of the second signal transmission line b. The first signal transmission line a can be a low-speed signal line, and the low-speed signal line is used to identify a level state. The second signal transmission line b can be a high-speed signal line, and the high-speed signal line is used to transmit a high-speed differential signal.
[0067] In the embodiments of the present application, a new encoding method is provided for 8B / 9B (encoding an eight-bit data stream into a nine-bit data stream) encoding, so that the bandwidth utilization rate can be improved from 80% to 88.8%. The eight-bit data stream before encoding and the nine-bit data stream after encoding are both binary data. The data stream transmitted between the timing controller TCON and the source driving chip SDIC can be encoded by using the encoding method provided by the present application. The data stream transmitted between the timing controller TCON and the source driving chip SDIC can be the data stream transmitted by the first signal transmission line a, or the data stream transmitted by the second signal transmission line b, and the embodiments of the present application do not limit this.
[0068] In some embodiments provided by the present application, Figure 2 The encoding method 200 shown can be applied to Figure 1 The environment shown. The encoding method 200 includes steps S10, S20, S30, S40 and S50.
[0069] In step S10, a first initial data stream is obtained.
[0070] In this step S10, the "first initial data stream" refers to the data stream before encoding, and the "first initial data stream" is a digital signal with eight bits.
[0071] In step S20, the first initial data stream is operated according to a preset logical operation relationship, and a target encoding feature value obtained by operation is output.
[0072] Specifically, as Figure 3 shown, in some embodiments provided by the present application, step S20 includes steps S21 and S22.
[0073] In step S21, the first initial data stream is logically AND operated according to a first preset logical operation relationship of the preset logical operation relationship, and a reference encoding feature value obtained by logical AND operation is output.
[0074] Specifically, step S21 includes logically AND operating the first initial data stream according to eight first preset logical relationships respectively, and outputting eight reference encoding feature values obtained by logical AND operation.
[0075] The first first preset logical operation relationship is:
[0076] M1 = A[7] & A[6] & A[5] & A[4] (1-1);
[0077] wherein the second first preset logical operation relationship is:
[0078] M2 = A[6] & A[5] & A[4] & A[3] & A[2] & A[1] (1-2);
[0079] wherein the third first preset logical operation relationship is:
[0080] M3 = A[5] & A[4] & A[3] & A[2] & A[1] & A[0] (1-3);
[0081] wherein the fourth first preset logical operation relationship is:
[0082] M4 = A[7] & A[6] & ~A[4] & ~A[3] & ~A[2] & ~A[1] & ~A[0] (1-4);
[0083] wherein the fifth first preset logical operation relationship is:
[0084] M5 = ~A[7] & ~A[6] & ~A[4] & ~A[3] & ~A[2] & A[1] (1-5);
[0085] wherein the sixth first preset logical operation relationship is:
[0086] M6 = ~A[7] & ~A[6] & ~A[5] & ~A[4] (1-6);
[0087] wherein the seventh first preset logical operation relationship is:
[0088] M7 = ~A[6] & ~A[5] & ~A[4] & ~A[3] & ~A[2] & ~A[1] (1-7);
[0089] wherein the eighth first preset logical operation relationship is:
[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 relationship formulas, M1 is a first reference encoding characteristic value, M2 is a second reference encoding characteristic value, M3 is a third reference encoding characteristic value, M4 is a fourth reference encoding characteristic value, M5 is a fifth reference encoding characteristic value, M6 is a sixth reference encoding characteristic value, M7 is a seventh reference encoding characteristic value, M8 is an eighth reference encoding characteristic value, A[7] is a bit number of an eighth bit of the first initial data stream, A[6] is a bit number of a seventh bit of the first initial data stream, A[5] is a bit number of a sixth bit of the first initial data stream, A[4] is a bit number of a fifth bit of the first initial data stream, A[3] is a bit number of a fourth bit of the first initial data stream, A[2] is a bit number of a third bit of the first initial data stream, A[1] is a bit number of a second bit of the first initial data stream, A[0] is a bit number of a first bit of the first initial data stream, “~” represents performing logical NOT operation, and “&” represents performing logical AND operation.
[0092] In this way, based on the eight first preset logical operation relationship formulas, the eight reference encoding characteristic values can be obtained through logical AND operation and logical NOT operation. Since only simple logical AND operation and logical NOT operation are required in this step, the amount of operation involved in the encoding process is reduced, and the complexity of operation is lowered, thereby improving the encoding efficiency.
[0093] In step S22, the reference encoding characteristic values are subjected to logical OR operation according to a second preset logical operation relationship formula of the preset logical operation relationship formulas, and a target encoding characteristic value obtained through the logical OR operation is output.
[0094] Specifically, step S22 includes subjecting the R reference encoding characteristic values to logical OR operation according to the second preset logical operation relationship formula, and outputting a target encoding characteristic value obtained through the logical OR operation.
[0095] The second preset logical operation relationship formula is:
[0096] Mtar = M1 |…| MR (2);
[0097] In the second preset logical operation relationship formula (2), Mtar is a target encoding characteristic value, M1 is a first reference encoding characteristic value, and MR is an Rth reference encoding characteristic value. R is an integer greater than or equal to 2, and “|” represents performing logical OR operation.
[0098] For example, taking the eight reference encoding characteristic values obtained through the foregoing step S21 as an example, the second preset logical operation relationship formula is specifically:
[0099] Mtar = M1 | M2 | M3 | M4 | M5 | M6 | M7 | M8 (2-1);
[0100] In the second preset logical operation relationship (2-1), R is equal to 8, Mtar is a target coding feature value, M1 is a first reference coding feature value, M2 is a second reference coding feature value, M3 is a third reference coding feature value, M4 is a fourth reference coding feature value, M5 is a fifth reference coding feature value, M6 is a sixth reference coding feature value, M7 is a seventh reference coding feature value, and M8 is an eighth reference coding feature value.
[0101] It is worth mentioning that according to the first preset logical operation relationship (1-1) to the eighth preset logical operation relationship (1-8), the specific value of any one of the eight reference coding feature values M1 to M8 is “1” if the specific value is not “0”. In this way, the specific value of the target coding feature value obtained by logical or operation according to the second preset logical operation relationship (2-1) is “1” if the specific value 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 coding feature value can be obtained by logical or operation on the reference coding feature values according to the above-mentioned second preset logical operation relationship, the amount of logical operation involved in the coding process for obtaining the target coding feature value is small and the complexity of the logical operation is low, which is convenient to execute and is conducive to improving the coding efficiency.
[0104] In step S30, it is determined whether the target coding feature value satisfies the first preset condition.
[0105] Specifically, the first preset condition is that the target coding feature value is equal to a preset feature value. The preset feature value is 0.
[0106] That is, in the case where the target coding feature value is equal to 0, the determination result that the target coding feature value satisfies the first preset condition is output. In the case where the target coding feature value is not equal to 0 (i.e., the target coding feature value is equal to 1), the determination result that the target coding feature value does not satisfy the first preset condition is output.
[0107] In step S40, if the target encoding characteristic value meets the first preset condition, the bit number of the i-th bit position of the first initial data stream is assigned as the bit number of the i+1-th bit position of the first target data stream to be output, and the first target bit number obtained by performing logical NOT operation on the bit number of the first bit position of the first initial data stream is assigned as the bit number of the first bit position of the first target data stream.
[0108] It is worth mentioning 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 digital signal with nine bit positions.
[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] Where "~" represents performing logical NOT operation (i.e., represents performing negation operation). For example, the operation result output after performing logical NOT operation on the bit number "0" is "1", and the operation result output after performing logical NOT operation on the bit number "1" is "0".
[0120] Where Enc[0] is the bit number of the first bit position of the first target data stream, Enc[1] is the bit number of the second bit position of the first target data stream, Enc[2] is the bit number of the third bit position of the first target data stream, Enc[3] is the bit number of the fourth bit position of the first target data stream, Enc[4] is the bit number of the fifth bit position of the first target data stream, Enc[5] is the bit number of the sixth bit position of the first target data stream, Enc[6] is the bit number of the seventh bit position of the first target data stream, Enc[7] is the bit number of the eighth bit position of the first target data stream, and Enc[8] is the bit number of the ninth bit position of the first target data stream.
[0121] Wherein, A[0] is the bit number of the first bit of the first initial data stream, A[1] is the bit number of the second bit of the first initial data stream, A[2] is the bit number of the third bit of the first initial data stream, A[3] is the bit number of the fourth bit of the first initial data stream, A[4] is the bit number of the fifth bit of the first initial data stream, A[5] is the bit number of the sixth bit of the first initial data stream, A[6] is the bit number of the seventh bit of the first initial data stream, and A[7] is the bit number of the eighth bit of the first initial data stream.
[0122] In this way, in the case where the target encoding feature value satisfies the first preset condition, the first target data stream with nine bits can be obtained based on the 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 operation, logical NOT operation and logical OR operation are used in steps S20 and S40, the amount of logical operation involved in the encoding process of the first initial data stream into the first target data stream is small and the complexity of logical operation 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 digital signal with nine bits.
[0124] In the first target data stream obtained by the encoding method 200 provided in this embodiment, the number of consecutive five-bit bits with a bit number of "0" or "1" is further reduced. Compared with the 8B / 10B encoding method of the related art, the 8B / 9B encoding method provided in this embodiment can further reduce the probability of the occurrence of consecutive five-bit bits with a bit number of "0" or "1" in the first target data stream obtained after encoding, thereby further reducing the probability of signal conversion error, improving the accuracy of signal conversion, and further improving the stability of signal transmission.
[0125] In some other embodiments provided in the present application, as shown in Figure 4 the difference between the encoding method 200 and Figure 4 the encoding method 200 shown in Figure 2 is that, before step S50, Figure 4 the encoding method 200 further includes steps S60, S70 and S80.
[0126] In step S60, in the case where the target encoding feature value does not satisfy the first preset condition, the bit number of the first preset bit of the first initial data stream and the bit number of the second preset bit of the first initial data stream are obtained.
[0127] wherein the first preset bit position is a jth bit position of the first initial data stream, the second preset bit position is a (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. That is, in the step S60, the first preset bit position and the second preset bit position are two consecutive bit positions of the eight bit positions of the first initial data stream.
[0128] In some specific embodiments of the present application, the first preset bit position is a second bit position of the first initial data stream, and the second preset bit position is a third bit position of the first initial data stream.
[0129] In some specific embodiments of the present application, the first preset bit position is a third bit position of the first initial data stream, and the second preset bit position is a fourth bit position of the first initial data stream.
[0130] In the step S70, it is determined whether the bit number of the first preset bit position and the bit number of the second preset bit position satisfy a second preset condition.
[0131] Specifically, the second preset condition is that the bit number of the first preset bit position is the same as the bit number of the second preset bit position.
[0132] For example, in the case where the bit number of the first preset bit position and the bit number of the second preset bit position are both "0", the second preset condition is satisfied. In the case where the bit number of the first preset bit position and the bit number of the second preset bit position are both "1", the second preset condition is satisfied. In the case where one of the bit number of the first preset bit position and the bit number of the second preset bit position is "0" and the other is "1", the second preset condition is not satisfied.
[0133] In the step S80, in the case where the bit number of the first preset bit position and the bit number of the second preset bit position satisfy the second preset condition, a bit number of an mth bit position of the first initial data stream is assigned as a bit number of an (m+1)th bit position of the first target data stream, a second target bit number obtained by performing a logical NOT operation on a bit number of an nth bit position of the first initial data stream is assigned as a bit number of an (n+1)th bit position of the first target data stream, and a first target bit number is assigned as a bit number of a first bit position of the first target data stream.
[0134] wherein the first target bit number is obtained by performing a logical NOT operation on a bit number of a first bit position of the first initial data stream. m∈{2, 3, 4, 6, 8}, n∈{1, 5, 7}.
[0135] That is, in the 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] wherein, "~" represents performing logical NOT operation (i.e. represents performing negation operation). For example, the operation result output after performing logical NOT operation on bit number "0" is "1", and the operation result output after performing logical NOT operation on bit number "1" is "0".
[0146] wherein, Enc[0] is the bit number of the first bit of the first target data stream, Enc[1] is the bit number of the second bit of the first target data stream, Enc[2] is the bit number of the third bit of the first target data stream, Enc[3] is the bit number of the fourth bit of the first target data stream, Enc[4] is the bit number of the fifth bit of the first target data stream, Enc[5] is the bit number of the sixth bit of the first target data stream, Enc[6] is the bit number of the seventh bit of the first target data stream, Enc[7] is the bit number of the eighth bit of the first target data stream, and Enc[8] is the bit number of the ninth bit of the first target data stream.
[0147] wherein, A[0] is the bit number of the first bit of the first initial data stream, A[1] is the bit number of the second bit of the first initial data stream, A[2] is the bit number of the third bit of the first initial data stream, A[3] is the bit number of the fourth bit of the first initial data stream, A[4] is the bit number of the fifth bit of the first initial data stream, A[5] is the bit number of the sixth bit of the first initial data stream, A[6] is the bit number of the seventh bit of the first initial data stream, and A[7] is the bit number of the eighth bit of the first initial data stream.
[0148] In this way, in the case that the target code feature value does not satisfy the first preset condition and satisfies the second preset condition, a one-to-one mapping relationship between the first initial data stream with partial eight bits and the first target data stream with nine bits can be established based on the logical NOT operation. Since only logical AND operation, logical NOT operation and logical OR operation are used in step S20 and step S80, the amount of logical operation and the complexity of logical operation involved in the encoding process of encoding the first initial data stream into the first target data stream are small, thereby improving the encoding efficiency. In addition, compared with the encoded data stream obtained by the 8B / 10B encoding method, the probability of the number of consecutive five bits being "0" or "1" in the first target data stream obtained by the encoding according to the present step S80 is reduced. The 8B / 9B encoding method provided in the present embodiment can further reduce the probability of signal conversion error and improve the accuracy of signal conversion, thereby improving the stability of signal transmission.
[0149] After step S80 is performed, step S50 is performed to output the first target data stream to be output obtained based on steps S60 to S80.
[0150] In some other embodiments provided in the present application, as shown in Figure 5 , Figure 5 , Figure 2 and Figure 4 , the difference between the encoding method 200 and the encoding method shown in Figure 5 is that, before step S50 and after step S70, ,
[0151] the encoding method 200 further includes step S90.
[0152] In step S90, in the case that 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 pth bit of the first initial data stream is assigned to the number of bits of the p+1th bit of the first target data stream, the third target bit number obtained by performing logical NOT operation on the number of bits of the qth bit of the first initial data stream is assigned to the number of bits of the q+1th 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.
[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] wherein, "~" represents performing logical NOT operation (i.e. represents performing negation operation). For example, the operation result output after performing logical NOT operation on bit number "0" is "1", and the operation result output after performing logical NOT operation on bit number "1" is "0".
[0164] wherein, Enc[0] is the bit number of the first bit of the first target data stream, Enc[1] is the bit number of the second bit of the first target data stream, Enc[2] is the bit number of the third bit of the first target data stream, Enc[3] is the bit number of the fourth bit of the first target data stream, Enc[4] is the bit number of the fifth bit of the first target data stream, Enc[5] is the bit number of the sixth bit of the first target data stream, Enc[6] is the bit number of the seventh bit of the first target data stream, Enc[7] is the bit number of the eighth bit of the first target data stream, and Enc[8] is the bit number of the ninth bit of the first target data stream.
[0165] wherein, A[0] is the bit number of the first bit of the first initial data stream, A[1] is the bit number of the second bit of the first initial data stream, A[2] is the bit number of the third bit of the first initial data stream, A[3] is the bit number of the fourth bit of the first initial data stream, A[4] is the bit number of the fifth bit of the first initial data stream, A[5] is the bit number of the sixth bit of the first initial data stream, A[6] is the bit number of the seventh bit of the first initial data stream, and A[7] is the bit number of the eighth bit of the first initial data stream.
[0166] In this way, in the case that the target encoding feature value does not satisfy the first preset condition and does not satisfy 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 based on the logical NOT operation. Since only logical AND operation, logical NOT operation and logical OR operation are used in steps S20 and S90, the logical operation involved in the encoding process of encoding the first initial data stream into the first target data stream is small and the complexity of the logical operation is low, thereby improving the encoding efficiency.
[0167] In addition, compared with the 8B / 10B encoding method of the related art, the number of bits with five continuous bits being "0" or "1" in the first target data stream obtained by the encoding of step S90 is further reduced, so that the 8B / 9B encoding method provided in the embodiment can further reduce the probability of the number of bits with five continuous bits being "0" or "1" in the first target data stream obtained after encoding, thereby further reducing the probability of signal conversion error, improving the accuracy of signal conversion, and further improving the stability of signal transmission.
[0168] After step S90 is performed, step S50 is performed to output the first target data stream to be output obtained based on steps S60, S70 and S90.
[0169] In the above, based on performing step S40 in the case that the first preset condition is satisfied, performing step S80 in the case that the first preset condition is not satisfied but the second preset condition is satisfied, and performing step S90 in the case that the first preset condition is not satisfied and the second preset condition is not satisfied, each first initial data stream with eight bits has a corresponding first target data stream with nine bits, that is, 256 first initial data streams with eight bits and 256 first target data streams with nine bits are in a one-to-one mapping relationship.
[0170] In addition, compared with the related art, in order to realize 8B / 10B encoding, ten bits of bandwidth are required, so that the encoding efficiency of the 8B / 10B encoding method is 80% ((8 / 10) x 100%). In the embodiment, 8B / 9B encoding only requires nine bits of bandwidth, so that the encoding efficiency of the 8B / 9B encoding method is 88.8% ((8 / 9) x 100%). In this way, compared with 8B / 10B encoding, the 8B / 9B encoding provided in the embodiment reduces the bandwidth sacrificed for realizing the encoding result, reduces the additional energy loss of the transmitting end transmitting the first target data stream after encoding, reduces the additional energy loss of the receiving end receiving the first target data stream after encoding, and reduces the circuit size for realizing the encoding structure.
[0171] Specifically, as shown in Table 1-1, each first initial data stream (8B in Table 1-1) having eight bits has a corresponding first target data stream (9B in Table 1-1) having nine bits.
[0172]
[0173]
[0174]
[0175]
[0176]
[0177]
[0178]
[0179] Table 1-1
[0180] Embodiments of the present application also provide a decoding method, as shown in Figure 6 The decoding method 300 includes steps S301, S302 and S303.
[0181] In step S301, a second initial data stream is obtained.
[0182] In step S301, the second initial data stream is a digital signal having nine bits.
[0183] In step S302, a second target data stream to be output is obtained from a preset lookup table according to the second initial data stream.
[0184] In step S302, the "preset lookup table" includes the first initial data stream and the first target data stream mapped to the first initial data stream in any of the encoding methods provided by the present application. The second initial data stream is one of the plurality of first target data streams. The second target data stream is one of the plurality of first initial data streams, and the second target data stream is the first initial data stream mapped to the second initial data stream.
[0185] In step S303, the second target data stream is output.
[0186] In step S303, the second target data stream is a digital signal having eight bits.
[0187] The decoding method 300 provided in this embodiment has 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, which can effectively ensure that the encoded first target data stream transmitted can be correctly restored to the first initial data stream before encoding at the receiving end, and effectively reduce signal transmission errors.
[0188] As shown in Figure 7 The display device 100 provided in this embodiment includes an encoder 401, a decoder 402, and a display panel Panel.
[0189] The encoder 401 is configured to implement the encoding method in any of the preceding embodiments.
[0190] In some embodiments provided in this application, the encoder 401 is a system on chip SOC of the display device 100, and the decoder 402 is a timing controller TCON of the display device 100. In this way, the system on chip SOC encodes the received first initial data stream with eight bits into a first target data stream with nine bits to complete 8B / 9B encoding.
[0191] In some embodiments provided in this application, the encoder 401 is a timing controller TCON of the display device 100, and the decoder 402 is a source driver chip SDIC of the display device 100. In this way, the timing controller TCON encodes the received first initial data stream with eight bits into a first target data stream with nine bits to complete 8B / 9B encoding.
[0192] The decoder 402 is configured to implement the decoding method in any of the preceding embodiments.
[0193] In some embodiments provided in this application, the decoder 402 is a system on chip SOC of the display device. In this way, the system on chip SOC decodes the second initial data stream with nine bits sent by an external device into a second target data stream with eight bits to complete 9B / 8B decoding.
[0194] In some embodiments provided in this application, the decoder 402 is a 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 chip SOC into a second target data stream with eight bits to complete 9B / 8B decoding.
[0195] In some embodiments provided in the present application, the decoder 402 is a source driving chip SDIC of the display device 100. In this way, the source driving 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 the present application, the decoder 402 is a power management chip PMIC of the display device 100. In this way, the power management chip PMIC 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.
[0197] The display panel Panel displays based on the first target data stream output by the encoder 401 and / or based on the second target data stream output by the decoder 402.
[0198] For example, the first target data stream can be an instruction signal output by the timing controller TCON as the encoder 401 to the power management chip PMIC, and the power management chip PMIC adjusts the voltage value of the analog power supply voltage AVDD and the bind point gamma voltage VGAM output to the source driving chip SDIC according to the received first target data stream, and the display panel Panel is driven to display by the source driving chip SDIC according to the analog power supply voltage AVDD and the bind point gamma voltage VGAM.
[0199] Correspondingly, the second initial data stream can be an instruction signal received by the power management chip PMIC as the decoder 402, and the power management chip PMIC adjusts the voltage value of the analog power supply voltage AVDD and the bind point gamma voltage VGAM output to the source driving chip SDIC according to the decoded instruction signal, to drive the display panel Panel to display.
[0200] For example, the first target data stream can be display image data RGB output by the timing controller TCON as the encoder 401 to the source driving chip SDIC, and the display panel Panel is driven to display by the source driving chip SDIC according to the display image data RGB.
[0201] Correspondingly, the second initial data stream can be display image data RGB received by the source driving chip SDIC as the decoder 402, and the display panel Panel is driven to display by the source driving chip SDIC according to the decoded display image data RGB.
[0202] The display device 100 provided in the embodiment uses a coding and decoding method. In the encoding process, the eight-bit data stream (first initial data stream) is encoded into a nine-bit data stream (first target data stream), so that the probability of signal conversion error in the encoding process can be further reduced, the accuracy of signal conversion is improved, and the stability of signal transmission in the display device 100 is further improved. In the decoding process, the nine-bit data stream is decoded into an eight-bit data stream, so that the transmitted data can be correctly recovered at the receiving end. The encoding logic performed by the encoder in the embodiment is simple, and the decoding logic performed by the decoder is simple. Therefore, the logical operation resources of the display device 100 occupied by the encoding and / or decoding are small, and the encoding and / or decoding can be implemented with high feasibility.
[0203] Of course, the present application can have other various embodiments. Those skilled in the art can make various corresponding changes and modifications according to the present application without departing from the spirit and essential characteristics of the present application. These corresponding changes and modifications shall all belong to the protection scope of the claims appended to the present application.
Claims
1. An encoding method, characterized in that, 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.
2. The encoding method according to claim 1, characterized in that, 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}.
3. The encoding method according to claim 2, characterized in that, 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.
4. The encoding method according to claim 2, characterized in that, 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}.
5. 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.
6. 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.
7. The encoding method according to claim 6, 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.
8. The encoding method according to claim 6, 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.
9. 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 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; Output the second target data stream.
10. 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 8; A decoder, the decoder being used to implement the decoding method as described in claim 9; 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
Cryptographic algorithm data flow diagram generation method and device
CN117406993A
Method and apparatus for a high bandwidth stream cipher
US20120076296A1