NEAR-OPTIMAL TRANSITION ENCODING CODES
20230041347 · 2023-02-09
Inventors
Cpc classification
H03M5/14
ELECTRICITY
H03M7/46
ELECTRICITY
International classification
H03M7/00
ELECTRICITY
H03M7/30
ELECTRICITY
Abstract
A method of encoding input data includes dividing the input data into a plurality of data packets, an input packet of the plurality of data packets including a plurality of digits in a first base system, base-converting the input packet from the first base system to generate a base-converted packet including a plurality of converted digits in a second base system, the second base system having a base value lower than that of the first base system, and incrementing the converted digits to generate a coded packet for transmission through a communication channel.
Claims
1. A method of encoding input data, the method comprising: dividing the input data into a plurality of data packets, an input packet of the plurality of data packets comprising a plurality of digits in a first base system; base-converting the input packet from the first base system to generate a base-converted packet comprising a plurality of converted digits in a second base system, the second base system having a base value lower than that of the first base system; and incrementing the converted digits to generate a coded packet for transmission through a communication channel.
2. The method of claim 1, wherein a number of the plurality of converted digits in the base-converted packet is one more than a number of the plurality of digits in the input packet.
3. The method of claim 1, wherein the incrementing the converted digits comprises: incrementing each of the converted digits by one to generate coded digits, the coded packet comprising the coded digits.
4. The method of claim 1, wherein the coded packet has a run-length less than or equal to a set run-length value.
5. The method of claim 1, wherein the input packet comprises N digits, each of the N digits comprising q bits, wherein the first base system is a base 2.sup.q system, and the second base system is a base 2.sup.q-2 system, and wherein the coded packet has a run-length less than or equal to 2q-2.
6. The method of claim 1, wherein the input packet comprises N digits, each of the N digits comprising q bits, and wherein the first base system is a base 2.sup.q system, and the second base system is a base 2.sup.q-3 or less system.
7. The method of claim 1, wherein the input packet is an N-digit base-2.sup.q number expressed as X = [x.sub.1x.sub.2 ... x.sub.N].sub.2.sup.q, wherein each of digits x.sub.1, x.sub.2, ... x.sub.N has a value from 0 to 2.sup.q-1, wherein the base-converted packet is an (N+1)-digit base-(2.sup.q-2) number expressed as X = [y.sub.0y.sub.1y.sub.2 ... y.sub.N]2.sup.q-2, and wherein each of the plurality of digits y.sub.1,... y.sub.N has a value from 0 to 2.sup.q-3.
8. The method of claim 7, wherein an overhead digit yo has a value from 0 to 2.sup.q-3, and wherein values N and q have a relationship expressed as:
9. The method of claim 7, wherein an overhead digit yo is a single binary bit, and wherein values N and q have a relationship expressed as:
10. The method of claim 7, wherein the coded packet is expressed as
11. The method of claim 1, wherein the base-converting the input packet comprises an iterative process comprising only shift, addition, and subtraction operations.
12. The method of claim 1, wherein the coded packet comprises at least one bit transition.
13. The method of claim 1, further comprising: transmitting transmission data to a receiver through the communication channel, the transmission data comprising the coded packet.
14. A transition encoder for encoding input data, the transition encoder comprising: a processor; and a processor memory local to the processor, wherein the processor memory has stored thereon instructions that, when executed by the processor, cause the processor to perform: dividing the input data into a plurality of data packets, an input packet of the plurality of data packets comprising a plurality of digits in a first base system; base-converting the input packet from the first base system to generate a base-converted packet comprising a plurality of converted digits in a second base system, the second base system having a base value lower than that of the first base system; and incrementing the converted digits to generate a coded packet for transmission through a communication channel.
15. A method of decoding transmission data, the method comprising: dividing the transmission data into a plurality of coded packets, a coded packet of the plurality of coded packets comprising a plurality of coded digits in a first base system; decrementing the plurality of coded digits to generate a converted packet; and base-converting the converted packet from the first base system to generate a decoded packet comprising a plurality of decoded digits in a second base system, the second base system having a base value greater than that of the first base system.
16. The method of claim 15, wherein a number of the plurality of coded digits in the coded packet is one more than a number of the plurality of decoded digits in the decoded packet.
17. The method of claim 15, wherein the decrementing the coded digits comprises: decrementing each of the coded digits by one to generate converted digits, the converted packet comprising the converted digits.
18. The method of claim 15, wherein each of the coded packets has a run-length less than or equal to a set run-length value.
19. The method of claim 15, further comprising: receiving the transmission data from a transmitter through a communication channel.
20. A transition decoder for decoding a transmission data, the transition decoder comprising: a processor; and a processor memory local to the processor, wherein the processor memory has stored thereon instructions that, when executed by the processor, cause the processor to perform: dividing the transmission data into a plurality of coded packets, a coded packet of the plurality of coded packets comprising a plurality of coded digits in a first base system; decrementing the plurality of coded digits to generate a converted packet; and base-converting the converted packet from the first base system to generate a decoded packet comprising a plurality of decoded digits in a second base system, the second base system having a base value greater than that of the first base system.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, together with the specification, illustrate example embodiments of the present disclosure, and, together with the description, serve to explain the principles of the present disclosure.
[0029]
[0030]
[0031]
[0032]
[0033]
DETAILED DESCRIPTION
[0034] The detailed description set forth below is intended as a description of example embodiments of a system and method for transition encoding/decoding data in serial data communication, provided in accordance with the present disclosure, and is not intended to represent the only forms in which the present disclosure may be constructed or utilized. The description sets forth the features of the present disclosure in connection with the illustrated embodiments. It is to be understood, however, that the same or equivalent functions and structures may be accomplished by different embodiments that are also intended to be encompassed within the scope of the disclosure. As denoted elsewhere herein, like element numbers are intended to indicate like elements or features.
[0035]
[0036] Referring to
[0037] According to some embodiments, the transmitter 10 includes a transition encoder 100 configured to encode the transmission data stream by ensuring that transitions occur with at least a particular frequency that enables the receiver 20 to extract the clock signal from the coded data stream (e.g., transition-encoded) transmitted over the communication channel 15. That is, the transition encoder 100 limits the run-length of the coded data stream.
[0038] As shown in
[0039]
[0040] Referring to
[0041] where X.sub.1, X.sub.2, X.sub.N represent the N words/digits making up the input packet, and each has a value between 0 to 2.sup.q-1. In the example of
[0042] In some embodiments, the transition encoder 100 guarantees transitions in every word/digit by encoding the stream in a way to eliminate words/digits with all zeros (digit value of 0) or all ones (digit value of 2.sup.q-1). This limits the run-length of the transition-encoded stream to 2q-2. As an example, in the case of a 6-bit word (i.e., q = 6), the worst case scenario for runs in two consecutive words/digits is 100000 000001 or 011111 111110, which translates to a run-length of 10 (=2x6-2).
[0043] According to some embodiments, the transition encoder 100 treats the input packet as an N-digit base-2.sup.q number, where X.sub.1 is in the most significant digit (MSD) and x.sub.N is in the least significant digit (LSD) of the base-2.sup.q number. Thus, the packet X may be expressed as:
[0044] Where each of the digits X.sub.1, X.sub.2, ... X.sub.N has a value ranging from 0 to 2.sup.q-1. In the example of q=6, the packet is an N-digit base-64 number X = [.sub.X1X2 ... X.sub.N].sub.64. The transition encoder 100 then converts this number to base 2.sup.q-2 (e.g., base 62 for q=6). The base 2.sup.q-2 number (i.e., the base-converted packet) may be expressed as:
[0045] Where each of the converted digits y.sub.0, Y.sub.1,... y.sub.N has a value ranging from 0 to 2.sup.q-3. In the example of q=6, the base-converted packet may be expressed as X = [y.sub.0y.sub.1y.sub.2 ... Y.sub.N].sub.62, where each of converted digits y.sub.0, Y.sub.1,... y.sub.N has a value ranging from 0 to 61. Given that the value range of the converted digits y is less than the digits x, more converted digits y may be used than the digits x to represent the data packet X. As such, the value of N (i.e., the number of base-2.sup.q digits in the data packet) may be chosen such that only one additional digit (i.e., the overhead digit), y.sub.0, is used to represent the data packet. The transition encoder 100 then increments the converted digits by one and generates a coded packet X′ as:
[0046] As such, the coded words/digits, y.sub.0+1 ... y.sub.N+1 that are transmitted to the receiver 20 do not include all zeros or all ones. That is the coded digits exclude 0 and 2.sup.q-1 (e.g., 63, when q=6). Therefore, the transmitter 10 can guarantee a transition in every coded digit being transmitted and ensure a limited run-length of 2q-2 (e.g., 10 in the case of q=6).
[0047] The maximum value that the base-converted data packet X can represent in base 2.sup.q-2 and with N+1 digits (i.e, y.sub.0, y.sub.1, y.sub.2 ... y.sub.N) is (2.sup.q-2).sup.N+1. The maximum value that original data packet X (i.e., the unconverted data packet) can represent in the original base 2.sup.q and with N digits (i.e, X.sub.1, X.sub.2 ... X.sub.N) is (2.sup.q).sup.N. To ensure that the base-converted data packet can represent at least all values of the input packet (i.e., the unconverted-base packet) X, the following relationship holds:
[0048] from which the upper limit for the number of words N in the data packet X can be derived as
[0049] In the example of a 6-bit word (i.e., q=6), the upper limit for N is
[0050] Therefore, if the original data packet size (i.e., the number of words in the input packet) N ≤ 129, the converted data packet, and thus the coded data packet, has only one additional word/digit. In other words, the overhead of this transition-encoding scheme is one word. In the example of q=6, this leads to a code efficiency of
[0051] Efficiency = 6x129/(6+6x129) = 99.2%
[0052] The less than 1 % overhead of the encoding performed by the transition encoder 100 is near optimal and is a significant improvement over the packet encoding schemes of the related art, which may be able to achieve a code efficiency of less than 97% for q=6.
[0053] The transmitter 10 (e.g., the transition encoder 100) transmits the coded packets as a transmitted data stream to the receiver 20. When recovering the clock signal from the coded packets received through the communication channel 15, the clock recovery circuit 24 of the receiver 20 may update the coded packet N times (e.g., once for each word/digit/symbol). For large values of N, this may be a computationally intensive process and may introduce processing delays.
[0054] Thus, in some embodiments, to simplify the receiver implementation, the transition encoder 100 limits N to lower values by setting the overhead digit y.sub.0 to either 0 or 1 (i.e., limiting y.sub.0 to be a single binary bit, rather than a q-bit word/digit). With y.sub.0 as a 1-bit code overhead, the maximum number that X can represent is 2*(2.sup.q-2).sup.N. Therefore, to ensure that the base-converted data packet can represent at least all values of the input packet (i.e., the unconverted-base packet) X, the following relationship holds:
[0055] as a result:
[0056] For the example of a 6-bit word (q=6), Equations 7 and 8 become
[0057] In other words, for a packet size of N ≤ 21, there is only one bit overhead. Thus, the code efficiency is
[0058] In some embodiments, the transition encoder 100 pools together the overhead bits of a number of packets (e.g., q-1 packets) to form an overhead word of q bits and transmits the overhead word after the corresponding packets. The overhead word includes q-1 overhead bits from the corresponding q-1 packets and one transition bit for the overhead word (for a total of q bits). Using this scheme, for q=6, the code efficiency can be calculated as
[0059] which is still nearly optimal coding efficiency.
[0060] According to some embodiments, the transition decoder 200 of the receiver 20 retrieves the original data packet from the coded data packet X′, which is transmitted over the communication channel 15, by performing the reverse of the operations described above with respect to the transition encoder 100.
[0061] According to some examples, the transition encoder 100 and the transition decoder 200 utilize an iterative process for performing base conversion, which is based on the insight that the original data packet in base 2.sup.q can be written in base 10 as
[0062] In the example of q=6,
[0063] Initially, in the first iteration of the base-conversion process, the transition encoder 100 calculates an initial value A that is defined as
[0064] In some examples, the transition encoder 100 may determine Z.sub.0 and Z.sub.1 by setting Z.sub.0 = 1 and Z.sub.1 = X.sub.1 - (2.sup.q-2) when X.sub.1 is greater than 2.sup.q-3 (e.g., 61 for q=6), and by setting Z.sub.0 = 0 and Z.sub.1 = X.sub.1 otherwise.
[0065] In each iteration, the transition encoder 100 computes new A = ( A *2.sup.q + .sub.Xn).sub.10 in base 2.sup.q-2, where we have base 2.sup.q-2 of old A = [z.sub.0, z.sub.1, ..., z.sub.n]. The output is new A = [z.sub.0, z.sub.1, ..., z.sub.n, z.sub.n+.sub.i].sub.2.sup.q.sub.-2 (where these may be all new z.sub.i)
[
[0066] Here, that the notation [z.sub.0, z.sub.1, ..., z.sub.n, 0].sub.2.sup.q.sub.-2 is used as the decimal value of A *(2.sup.q-2), and [2z.sub.0, 2.sub.Z1, ..., 2.sub.zn].sub.2.sup.q.sub.-2 is used as the decimal value of A*2. The former is a true base (2.sup.q-2) notation, but the latter is just a fictitious notation that provides the true value for A*2 when weighed by the (2.sup.q-2) base system.
[0067] Next, the transition encoder 100 converts x.sub.n to base (2.sup.q-2) (similar to the initialize step of the first iteration), x.sub.n = [y.sub.0,y.sub.1].sub.2.sup.q-.sub.2 = (y.sub.0 *(2.sup.q-2)+ y.sub.1).sub.10
[0068] The variables z.sub.i and y.sub.i are q-bit numbers. Thus far, all the operations may be performed using shift and addition. The additions may be performed in the base 2.sup.q-2 system. [0088]
[0069] where c.sub.n+.sub.1 is the carry coming from z.sub.n calculation ( divisor of y.sub.1 + 2.sub.Zn divided by (2.sup.q-2)).
[0070] After N iterations, one can obtain X = A = [z.sub.0, z.sub.1, ... , z.sub.N].sub.2.sup.q.sub.-2
[0071] In the arithmetic operations above, additions may be implemented as binary addition, irrespective of the base. Further, the 2x z.sub.i operation may be performed using shifting binary implementation. Also, mod (2.sup.q-2) may be performed using comparison (i.e., comparing with 2.sup.q-3 and 2.sup.q+1-5) and subtracting afterward. The carry is also obtained here, which has a value of 0, 1, or 2. As such the iterative process described above may be implemented with shift, addition, and subtraction operations.
[0072] Similarly, at the receiver 20, the y digits with base 2.sup.q-2 are converted to base 2.sup.q. The decoded packet X may be expressed as:
[0073] This allows the receiver 20 to recover the decoded packet X in binary format. As noted above, only shift, addition, and subtraction operations are utilized (e.g., y*62 = .sub.Y<<6 - y<<1).
[0074] While a particular low-complexity base-conversion technique is described herein, embodiments of the present disclosure are not limited thereto, and as will be recognized by a person of ordinary skill in the art, any suitable base conversion technique may be utilized by the transition encoder 100 and transition decoder 200. For example, in converting the data packet from base 64 to base 62, the transition encoder 100 may convert the data packet from base 64 to base 10, and then convert from base 10 to base 62.
[0075]
[0076] In some embodiments, the transition encoder 100 divides the input data into a plurality of data packets (S302). Each of the input packets includes a plurality of digits (e.g., N digits) in a first base system. Each of the N digits may include q bits, and the first base system may be a base 2.sup.q system. The N-digit base-2.sup.q input packet mat be expressed as X = [.sub.X1X2 ... x.sub.N].sub.2.sup.q, where each of digits x.sub.1, x.sub.2, ... x.sub.N has a value from 0 to 2.sup.q-1.
[0077] The transition encoder 100 then performs a base-conversion on each of the input packets to generate a base-converted packet that includes a plurality of converted digits in a second base system (S304). The second base system has a base value lower than that of the first base system by two. For example, the second base system may be a base 2.sup.q-2 system. The number of converted digits in the base-converted packet is one more than a number of the plurality of digits in the input packet. In other words, the converted digits have one overhead digit (y.sub.0). The (N+1 )-digit base-(2.sup.q-2) base-converted packet may be expressed as X = [y.sub.0y.sub.1y.sub.2 ... y.sub.N].sub.2.sup.q.sub.-2, where each of the plurality of digits Y.sub.1,... y.sub.N has a value from 0 to 2.sup.q-3.
[0078] In some examples, the overhead digit y.sub.0 may have a value from 0 to 2.sup.q-3, and the values N and q have a relationship expressed as N <= ⅟(log(2q)/log(2q-2) -1). In other examples, the overhead digit y.sub.0 may be a single binary bit, and the values N and q have a relationship expressed as N <= log2 / (log(2q) - log(2q-2)).
[0079] The transition encoder 100 then increments the converted digits of each converted packet by one to generate a coded packet for transmission through the communication channel 15 (S306). The transmitter 10 (e.g., transition encoder 100) transmits transmission data that includes the coded packets through the communication channel 15. The coded packets have a run-length less than or equal to a set run-length value or limit (e.g., less than or equal to 2q-2), which permits the receiver 10 to perform clock recovery on the received transmission data. Each coded packet may be expressed as X′ = {y.sub.0+1, y.sub.1+1, y.sub.2+1, ... , y.sub.N+1}, where each of coded digits y.sub.0+1 ... y.sub.N+1 do not include all zeros or all ones. In other words, each coded packet includes at least one bit transition
[0080]
[0081] In some embodiments, the receiver 20 (e.g., the transition decoder 200) decodes the transmission data received through the communication channel 15.
[0082] The transition decoder 200 divides the received transmission data into a plurality of coded packets (S402). Each coded packet of the plurality of coded packets includes a plurality of coded digits (e.g., N digits) in a first base system. Each of the coded packets has a run-length less than or equal to a set run-length value, which allows the receiver 200 to extract a clock signal from the transmission data.
[0083] The transition decoder 200 then decrements the plurality of coded digits of each coded packet by one to generate a converted packet (S404) including converted digits.
[0084] The transition decoder 200 then performs base-conversion on the converted packet from the first base system to generate a decoded packet comprising a plurality of decoded digits in a second base system (S406). The second base system has a base value greater than that of the first base system by two. In some examples, the number of coded digits in each coded packet is one more than the number of decoded digits in each decoded packet.
[0085] Accordingly, as described above, the transition encoder 100 is capable of efficiently encoding a transmission stream to enable clock recovery at the receiver 20. In some embodiments, the transition encoder 100 losslessly encodes the data stream using very-low-overhead and high-code-efficiency run-length-limited transition codes.
[0086] It will be understood that, although the terms “first”, “second”, “third”, etc., may be used herein to describe various elements, components, regions, layers, and/or sections, these elements, components, regions, layers, and/or sections should not be limited by these terms. These terms are used to distinguish one element, component, region, layer, or section from another element, component, region, layer, or section. Thus, a first element, component, region, layer, or section discussed below could be termed a second element, component, region, layer, or section, without departing from the scope of the inventive concept.
[0087] The terminology used herein is for the purpose of describing particular embodiments and is not intended to be limiting of the inventive concept. As used herein, the singular forms “a” and “an” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “include”, “including”, “comprises”, and/or “comprising”, when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items. Further, the use of “may” when describing embodiments of the inventive concept refers to “one or more embodiments of the inventive concept”. Also, the term “exemplary” is intended to refer to an example or illustration.
[0088] As used herein, the terms “use”, “using”, and “used” may be considered synonymous with the terms “utilize”, “utilizing”, and “utilized”, respectively.
[0089] Further, the use of “may” when describing embodiments of the inventive concept refers to “one or more embodiments of the inventive concept.” Also, the term “exemplary” is intended to refer to an example or illustration.
[0090] While this disclosure has been described in detail with particular references to illustrative embodiments thereof, the embodiments described herein are not intended to be exhaustive or to limit the scope of the disclosure to the exact forms disclosed. Persons skilled in the art and technology to which this disclosure pertains will appreciate that alterations and changes in the described structures and methods of assembly and operation can be practiced without meaningfully departing from the principles, and scope of this disclosure, as set forth in the following claims and equivalents thereof.