Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
64b/66b CODING APPARATUS AND METHOD
Document Type and Number:
WIPO Patent Application WO/2007/047733
Kind Code:
A1
Abstract:
A system and method for transmitting digital data over a transmission medium includes receiving digital values representing a plurality of N-bit characters to be output over the transmission medium, each N-bit character being either a data character or a control character. A determination is made as to which of the plurality of N-bit characters are control characters. The digital values represented by the plurality of N-bit characters are encoded to provide an encoded codeword (510, ...58O) , the encoded codeword being (Mx(N-I) + P} bits having M fields of N-I bits, each of the M fields corresponding to one of the N-bit characters being encoded. The encoding further includes: designating, for each data character, the respective field of the M fields as a data field (D0...D7), designating, for each control character, the respective field of the M fields as a control field (C0...C7) , and ordering the M fields to position any control fields at predetermined positions with respect to each other in the encoded codeword and to position any data fields at other remaining positions within the encoded codeword. The encoded codeword is then transmitted over the transmission medium. A system and method that receives such an encoded codeword over a transmission medium is also contemplated.

Inventors:
HOYER CLAUS F (DK)
Application Number:
PCT/US2006/040653
Publication Date:
April 26, 2007
Filing Date:
October 17, 2006
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ENIGMA SEMICONDUCTOR INC (US)
HOYER CLAUS F (DK)
International Classes:
H04L25/03; H04L25/49
Foreign References:
US20030185251A12003-10-02
Other References:
WALKER R ET AL: "64B/66B CODING UPDATE", ANNOUNCEMENT AGILENT TECHNOLOGIES, 2000, pages 1 - 19, XP002953617
Attorney, Agent or Firm:
AGARWAL, Pavan, K. et al. (Washington Harbour 3000 K Street, NW, Suite 50, Washington DC, US)
Download PDF:
Claims:
What Is Claimed Is:

1. A method of transmitting digital data over a transmission medium, the method comprising: receiving digital values representing a plurality of N-bit characters to be output over the transmission medium, each of the N-bit characters being either a data character or a control character; determining which, if any, of the plurality of N-bit characters are control characters; encoding the digital values represented by the plurality of N-bit characters to provide an encoded codeword, the encoded codeword being (Mx(N-I) + P} bits having M fields of N-I bits, each of said M fields corresponding to one of the N-bit characters being encoded, wherein the encoding further comprises: designating, for each data character, the respective field of the M fields as a data field, designating, for each control character, the respective field of the M fields as a control field, and ordering the M fields to position any control fields at predetermined positions with respect to each other in the encoded codeword and to position any data fields at other remaining positions within the encoded codeword; and transmitting the encoded codeword over the transmission medium, wherein M and N are integer values greater than 1 , and wherein P is an integer value greater than or equal to 1 ,

2. The method according to claim 1, wherein each of control fields in the encoded codeword includes a first subfield providing information indicating an actual position of the corresponding control character of the control field before the order step, and a second subfield providing information of a type of control character.

3. The method according to claim 2, wherein the first subfield is 3 bits in size and the second subfield is 4 bits in size, and wherein N equals 9 and M equals 8.

WASH_1684955.1 J Q .

4. The method according to claim 2, wherein a total number of different types of control characters is less than or equal to 16.

5. The method according to claim 2, wherein a total number of different types of control characters is equal to 13.

6. The method according to claim 2, wherein each of the control fields in the encoded codeword includes a third subfield providing information indicating whether or not a next field in position within the encoded codeword is a control field.

7. The method according to claim 6, wherein the third subfield is 1 bit in size.

8. The method according to claim 1, wherein each of the N-bit characters comprises a single control bit, and the determining step comprises checking the control bit to determine whether the corresponding N-bit character is a data character or a control character.

9. The method according to claim 1 , wherein the step of encoding further comprising scrambling the digital values to provide DC balancing.

10. The method according to claim 6, further comprising serializing the encoded codeword as serial data after the encoding step and before the transmitting step, such that the encoded codeword transmitted over the transmission medium in the transmitting step is serial data.

1 1. The method according to claim 1 , wherein the P bits of the (Mx(N-I) + P}-bit codeword represent control bits that are set to a first value that indicates that none of the M fields of N-I -bits in the codeword is a control field, and that are set to a second value that indicates that at least one of the M fields of N-I -bits in the codeword is a control field.

WASH_1684955.1 20

12. The method according to claim 11, wherein M equals 4, 8 or 16, N equals 8 or 9, and P equals 1 or 2, and wherein the first value corresponds to a bit sequence of O', '1 ', '01 ' or ' 10', and wherein the second value corresponds to a bit sequence of c 1 ', 8 O', ' 10' or '01 '.

13. The method according to claim 1 , wherein the encoder has no restrictions on the respective number or ordering of any control and data characters.

14. The method according to claim 1, further comprising: allocating bit values in the M fields of N-I -bits to have a maximal Hamming distance, in order to improve error detection performance.

15. A system for transmitting digital data over a transmission medium, the system comprising: a receiver configured to receive digital values representing a plurality of N-bit characters to be output over the transmission medium, each of the N-bit characters being either a data character or a control character; a controller configured to determine which, if any, of the plurality of N-bit characters are control characters; an encoder configured to encode the digital values represented by the plurality of N-bit characters to provide an encoded codeword, the encoded codeword being (Mx(N-I) + P} bits having M fields of N-I bits, each of said M fields corresponding to one of the N-bit characters being encoded, wherein the encoder is further configured to: designate, for each data character, the respective field of the M fields as a data field, designate, for each control character, the respective field of the M fields as a control field, and

WASH_1684955.1 21

order the M fields to position any control fields at predetermined positions with respect to each other in the encoded codeword and to position any data fields at other remaining positions within the encoded codeword; and a transmitter configured to transmit the encoded codeword over the transmission medium, wherein M and N are integer values greater than I 5 and wherein P is an integer value greater than or equal to 1.

16. The system according to claim 15, wherein each of control fields in the encoded codeword includes a first subfield providing information indicating an actual position of the corresponding control character of the control field before encoder orders the M fields, and a second subfield providing information of a type of control character.

17. The system according to claim 16, wherein the first subfield is 3 bits in size, and the second subfield is 4 bits in size, and wherein N equals 9 and M equals 8.

18. The system according to claim 16, wherein a total number of different types of control characters is less than or equal to 16.

19. The system according to claim 16, wherein a total number of different types of control characters is equal to 13.

20. The system according to claim 16, wherein each of the control fields in the encoded codeword includes a third subfield providing information indicating whether or not a next field in position within the encoded codeword is a control field.

21. The system according to claim 20, wherein the third subfield is 1 bit in size.

22. The system according to claim 15, wherein each of the N-bit characters comprises a single control bit, and wherein the controller is configured to check the

WASH 1684955.1 22

control bit to determine whether the corresponding N-bit character is a data character or a control character.

23. The system according to claim 15, wherein the encoder is further configured to scramble the digital values to provide DC balancing.

24. The system according to claim 20, further comprising a serializer that is configured to serialize the encoded codeword as serial data, such that the encoded codeword transmitted over the transmission medium in the transmitting step is serial data.

25. The system according to claim 15, wherein the P bits of the (Mx(N-I) + P}-bit codeword represent control bits that are set to a first value that indicates that none of the M fields of N-I -bits in the codeword is a control field, and wherein the P-control bits are set to a second value that indicates that at least one of the M fields of N-I -bits in the codeword is a control field.

26. The system according to claim 25, wherein M equals 4, 8 or 16, N equals 8 or 9, and P equals 1 or 2, and wherein the first value corresponds to a bit sequence of O', T, Ol ' or '10', and wherein the second value corresponds to a bit sequence of ' 1 ', '0', ' 10' or '01 '.

27. The system according to claim 15, wherein the encoder has no restrictions on the respective number or ordering of any control and data characters.

28. The system according to claim 15, further comprising: an allocation unit for allocating bit values in the M fields of N-l-bits to have a maximal Hamming distance, in order to improve error detection performance.

29. A system for receiving digital data over a transmission medium, the system comprising:

WASHJ 684955.1 23

a receiving unit configured to receive a (Mx(N-I) + P}-bit codeword that has been output over the transmission medium, the (Mx(N-I) + P}-bit codeword including M fields of N-I bits; a determining unit configured to determine whether any of the M fields included in the (Mx(N-I) + P}-bit codeword represent control characters; a decoding unit configured to decode the (Mx(N-I) + P}-bit codeword to obtain digital values that represent M consecutive N-bit characters that respectively correspond to the M fields of N-I bits included in the (Mx(N-I) + P}-bit codeword, each of the M fields being either a data field or a control field, wherein the decoding unit performs re-ordering the M fields of N-I bits based on position information provided within any control fields of the M fields of N-I bits, wherein M and N are integer values greater than 1 , and wherein P is an integer value greater than or equal to 1.

30. The system according to claim 29, wherein each of control fields in the (Mx(N- 1)+P} -bit codeword includes a first subfield providing information indicating an actual position of the corresponding control character of the control field before the order step, and a second subfield providing information of a type of control character.

31. The system according to claim 30, wherein each of the control fields in the (Mx(TSf- 1)+P} -bit codeword includes a third subfield providing information indicating whether or not a next field in position within the encoded codeword is a control field.

32. The system according to claim 31, wherein the first subfield is 3 bits in size, the second subfield is 4 bits in size, and the third subfield is 1 bit in size, and wherein N equal 9 and M equal 8.

33. The system according to claim 29, wherein the determining unit determines whether the P bits of the (Mx(N-I) + P}-bit codeword represent control bits that are set to a first value that indicates that none of the M fields of N-I -bits in the codeword

WASHJ 684955 1 24

is a control field, or are set to a second value that indicates that at least one of the M fields of N-I -bits in the codeword is a control field,

34. The system according to claim 33, wherein M equals 4, 8 or 16, N equals 8 or 9, and P equals 1 or 2, and wherein the first value corresponds to a bit sequence of O', ' 1 ', '01 ' or ' 10', and wherein the second value corresponds to a bit sequence of ' 1 ', '0', '10' or '01 '.

35. The system according to claim 29, wherein the decoding unit has no restrictions on the respective number or ordering of any control and data characters.

36. A method of receiving digital data over a transmission medium, the method comprising: receiving a (Mx(N-I) + P}-bit codeword that has been output over the transmission medium, the (Mx(N-I) + P}-bit codeword including M fields of N-I bits; determining whether any of the M fields included in the (Mx(N-I) + P}-bit codeword represent control characters; and decoding the (Mx(N-I) + P}-bit codeword to obtain digital values that represent M consecutive N-bit characters that respectively correspond to the M fields of N-I bits included in the (Mx(N-I) + P } -bit codeword, each of the M fields being either a data field or a control field, wherein the decoding step includes re-ordering the M fields of N-I bits based on position information provided within any control fields of the M fields of N-I bits, wherein M and N are integer values greater than 1 , and wherein P is an integer value greater than or equal to 1.

37. The method according to claim 36, wherein each of control fields in the (Mx(N- 1)+P} -bit codeword includes a first subfield providing information indicating an actual position of the corresponding control character of the control field before the order step, and a second subfield providing information of a type of control character.

WASH 1684955.1 25

38. The method according to claim 37, wherein each of the control fields in the (Mx(N- 1)+P} -bit codeword includes a third subfield providing information indicating whether or not a next field in position within the encoded codeword is a control field.

39. The method according to claim 38, wherein the first subfield is 3 bits in size, the second subfield is 4 bits in size, and the third subfield is 1 bit in size, and wherein N equal 9 and M equal 8.

40. The method according to claim 36, wherein the determining step determines whether the P bits of the (Mx(N-I) + P } -bit codeword represent control bits that are set to a first value that indicates that none of the M fields of N-I -bits in the codeword is a control field, or are set to a second value that indicates that at least one of the M fields of N-I -bits in the codeword is a control field

41. The method according to claim 36, wherein M equals 4, 8 or 16, N equals 8 or 9, and P equals 1 or 2, and wherein the first value corresponds to a bit sequence of '0', ' 1 ', '01 ' or ' 10', and wherein the second value corresponds to a bit sequence of ' 1 ', '0', '10' or Ol '.

42. The method according to claim 36, wherein the decoding step has no restrictions on the respective number or ordering of any control and data characters.

WASH 1684955.1 26

Description:

64b/66b CODING APPARATUS AND METHOD

BACKGROUND OF THE INVENTION

A, Field of the Invention

[0001] The invention relates generally to coding, and, more particularly, to a 64b/66b coding scheme that is used to send and receive data and control information over a serial transmission medium.

B. Description of the Related Art

[0002] In modern communication systems, unidirectional high-speed serial links using Non Return to Zero (NRZ) signaling are often employed for communication between chips on a board or between boards in a modular system. [0003] Before being transmitted on a high-speed serial link, data needs to be encoded to obtain certain properties required for reliable communication:

• A certain bit transition density is required to ensure the receiving clock-data- recovery circuitry is capable of extracting a suitable receive clock from the bit stream.

• Since data is presented to the receiver as a continuous stream of bits, some information is needed for the receiver to be able to infer boundaries to differentiate one data word from another in the bit stream.

• As most high-speed serial links operate in an AC-coupled manner, i.e., employing a DC-blocking cap in the path between a transmitter and a receiver, the transmitted bit stream needs to be DC-balanced.

[0004] For high-speed serial links using NRZ signaling, the 8b/10b coding scheme has provided a coding scheme that "guarantees" all of these properties. Such an 8b/10b coding scheme is described in the IBM Journal of Research and Development,

WASH 1684955.1

Vol. 27, No. 5, September 1983, "A DC-Balanced, Partitioned-Block 8B/10B Transmission Code" by Widmer and Franaszek.

[0005] The coding overhead of the 8b/10b coding scheme is 25 %, i.e., the encoder adds 2 bits of extra information for every 8 user bits. As the bit rate of the high-speed serial links increases, this overhead grows immensely in terms of absolute bandwidth. For example, consider a serial link that is capable of transmitting data at a rate of 10 Gbps (Gigabits per second). If the 8b/10b coding scheme is used, only 8 Gbps would be available for actual user data, with the remaining 2 Gbps needed for the coding overhead.

[0006] Recently, a much-lower overhead coding scheme known as 'IEEE 64b/66b' has been devised. The IEEE 64b/66b coding scheme is described in various respects in the following references:

• IEEE Std 802.3ae 2002, Clause 49, "Physical Coding Sublayer (PCS) for 64B/66B, type 1 OGBASE-R".

• United States Patent No. 6,650,638, "Decoding Method and Decoder for 64b/66b Coded Packetized Serial", by Richard Walker et al.

• United States Patent No. 6,718,491 , "Coding Method and Coder for Coding Packetized Serial Data with Low Overhead", by Richard Walker et al.

• United States Patent Publication No. 2004/0228364 "Coding Method and Coder for Coding Packetized Serial Data with Low Overhead", by Richard Walker et al.

[0007] The IEEE 64b/66b coding scheme has been developed for transporting a 10

Gbps Ethernet data stream over a single high-speed serial link running 10.3125 Gbps, and thus it has a coding overhead of only 3.125 %.

WASH 1684955.1 . 2

[0008] While the IEEE 64b/66b coding scheme satisfies the three desirable properties described earlier, it has certain restrictions on the user data that can be carried. These restrictions may not adversely affect the intended application of carrying a XAUI data stream or a restricted XGMII data stream, as the IEEE 64b/66b coding scheme has been specifically designed with this application in mind. However, for other applications, the restrictions of the IEEE 64b/66b coding scheme can significantly limit its usefulness.

[0009] Hence, a new 64b/66b coding scheme is needed that is applicable to many different types of data streams.

SUMMARY OF THE INVENTION

[0010] According to at one aspect of the invention, there is provided a method of transmitting digital data over a transmission medium includes receiving digital values representing a plurality of N-bit characters to be output over the transmission medium, each N-bit character being either a data character or a control character. A determination is made as to which of the plurality of N-bit characters are control characters. The digital values represented by the plurality of N-bit characters are encoded to provide an encoded codeword, the encoded codeword being (Mx(N-I) + P} bits having M fields of N-I bits, each of the M fields corresponding to one of the N-bit characters being encoded. The encoding further includes: designating, for each data character, the respective field of the M fields as a data field, designating, for each control character, the respective field of the M fields as a control field, and ordering the M fields to position any control fields at predetermined positions with respect to each other in the encoded codeword and to position any data fields at other remaining

WASH 1684955.1 -J

positions within the encoded codeword. The encoded codeword is then transmitted over the transmission medium.

[0011] According to another aspect of the invention, there is provided a system for transmitting digital data over a transmission medium. The system includes a receiver configured to receive digital values representing a plurality of N-bit characters to be output over the transmission medium, each of the N-bit characters being either a data character or a control character. The system also includes a controller configured to determine which, if any, of the plurality of N-bit characters are control characters. The system further includes an encoder configured to encode the digital values represented by the plurality of N-bit characters to provide an encoded codeword, the encoded codeword being (Mx(N-I) + P} bits having M fields of N-I bits, each of said M fields corresponding to one of the N-bit characters being encoded. The encoder is further configured to: designate, for each data character, the respective field of the M fields as a data field, designate, for each control character, the respective field of the M fields as a control field, and order the M fields to position any control fields at predetermined positions with respect to each other in the encoded codeword and to position any data fields at other remaining positions within the encoded codeword. The system still further includes a transmitter configured to transmit the encoded codeword over the transmission medium. M and N are integer values greater than 1 , and P is an integer value greater than or equal to 1.

[0012] According to yet another aspect of the invention, there is provided a system for receiving digital data over a transmission medium, in which the system includes a receiving unit configured to receive a (Mx(N-I) + P}-bit codeword that has been output over the transmission medium, the (Mx(N-I) + P } -bit codeword including M

WASH 1684955.1 A

fields of N-I bits. The system also includes a determining unit configured to determine whether any of the M fields included in the (Mx(N-I) + P}-bit codeword represent control characters. The system further includes a decoding unit configured to decode the (Mx(N-I) + P}-bit codeword to obtain digital values that represent M consecutive N-bit characters that respectively correspond to the M fields of N-I bits included in the (Mx(N-I) + P}-bit codeword, each of the M fields being either a data field or a control field that corresponds to a data character or control character, respectively. The decoding unit performs re-ordering the M fields of N-I bits based on position information provided within any control fields of the M fields of N-I bits, wherein M and N are integer values greater than 1 , and wherein P is an integer value greater than or equal to 1.

[0013] According to still another aspect of the invention, there is provided a method of receiving digital data over a transmission medium, which includes receiving a (Mx(N-I) + P}-bit codeword that has been output over the transmission medium, the (Mx(N-I) + P}-bit codeword including M fields of N-I bits. The method also includes determining whether any of the M fields included in the (Mx(N-I) + P } -bit codeword represent control characters. The method further includes decoding the (Mx(N-I) + P}-bit codeword to obtain digital values that represent M consecutive N- bit characters that respectively correspond to the M fields of N-I bits included in the (Mx(N-I) + P}-bit codeword, each of the M fields being either a data field or a control field that corresponds to a data character or control character, respectively.. The decoding step includes re-ordering the M fields of N-I bits based on position information provided within any control fields of the M fields of N-I bits, wherein M

WASH 1684955.1

and N are integer values greater than 1, and wherein P is an integer value greater than or equal to 1.

BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The foregoing advantages and features of the invention will become apparent upon reference to the following detailed description and the accompanying drawings, of which:

[0015] Figure 1 shows a 64b/66b encoding unit and a 64b/66b decoding unit communicatively coupled to a transmission channel, according to a first embodiment of the invention;

[0016] Figure 2 shows the fields of a 66-bit codeword according to the first embodiment of the invention;

[0017] Figure 3 shows a 66-bit codeword with eight data fields corresponding to eight data characters according to the first embodiment of the invention; [0018] Figure 4 shows three sub fields of a particular control field C n corresponding to a control character included in a 66-bit codeword according to the first embodiment of the invention;

[0019] Figure 5 shows eight different codeword sequences with 1-8 control fields and 7-0 data fields, respectively, corresponding to 1-8 control characters and 7-0 data characters, respectively, according to the first embodiment of the invention; [0020] Figure 6 shows a 66-bit codeword having three control fields and five data fields corresponding to three control characters and five data characters, respectively, according to the first embodiment of the invention; and

WASH 1684955.1

[0021] Figure 7 shows the arrangement of fields in a 66-bit codeword according to a second embodiment of the invention.

DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS [0022] At least one aspect of the present invention relates to a 64b/66b coding scheme that does not have the same restrictions on the user data stream to be transmitted while retaining the important properties of the IEEE 64b/66b coding scheme. [0023] To be able to transparently convey additional control information, such as data packet delimiters, in the same physical high-speed serial link that carries the data, it is necessary to encode additional control information that is readily distinguishable from the data. The term character is defined to mean either a data character (typically a byte with 256 possible values), or a control character (which has a relatively small number of possible values). Hence a high-speed serial link carries a sequence of encoded characters.

[0024] The well-known 8b/10b coding scheme defines 256 data characters and 13 control characters. The 64b/66b coding scheme according to the first embodiment is compatible with the 8b/ 1 Ob codec at the (unencoded) character level, thereby allowing protocols designed for 8b/ 1 Ob-style communication channels to be carried transparently on high-speed serial links using the 64b/66b coding scheme according to the first embodiment.

[0025] The ability to support an arbitrary sequence of control and data characters is one feature which sets the 64b/66b coding scheme according to the first embodiment apart from the IEEE 64b/66b coding scheme. The present concept can also be applied with having some restrictions of control and data characters. The design of the IEEE

WASH 1684955.1 7

64b/66b coding scheme relies heavily on the fact that the XAUI and (restricted) XGMII protocols only use a few, specific combinations of control characters and data characters. In fact, it appears to have been implied that a coding scheme capable of carrying any combination of control and data characters can not achieve less than 12.5 % coding overhead. See, for example, U.S. Patent Nos. 6,650,638 and 6,718,491, and U.S. Patent Publication No. 2004/0228364.

[0026] Figure 1 shows a block diagram of a 64b/66b encoder and decoder system 100 according to a first embodiment of the invention. The 64b/66b encoder and decoder system 100 includes a 64b/66b encoder 110, a 64b/66b decoder 120, a serializer 130, a deserializer 140, and a transmission channel 150. The 64b/66b encoder 110 includes an encoder 112 and a scrambler 114. The 64b/66b decoder 120 includes a decoder 122, a descrambler 124, and a block synchronizer 126. [0027] At the input to the 64b/66b encoder 110, 8 characters are input at a time (e.g., input in parallel to the encoder 112). Each character is represented by 8 data bits D and a single control bit Z. When Z=O, the D bits carry one of the 256 possible values for a data character. When Z=I, the D bits identifies one of the 13 possible control characters (as defined by the relevant IEEE standard for 8b/10b coding). [0028] The encoder 112 encodes the 8 characters into a 64 bit data frame and 2 frame header bits. The 64-bit data frame is then scrambled by the scrambler 114 to achieve statistical DC-balancing, and, at the output of the scrambler 114, the 64-bit data frame is concatenated with the 2 frame header bits, to obtain a 66-bit codeword. After being serialized by the serializer 130, the 66-bit codeword is transmitted over the transmission channel 150. The transmission channel 150 can be any form of

WASH 1684955.1

communication channel capable of transmitting data, and may include several network or channel mediums.

[0029] At the receiving end, after deserialization by the deserializer 140, the 66 bits of the received codeword are presented to the block synchronizer 126, which establishes the correct 66-bit boundary by analyzing the frame header bits of the received data in order to achieve synchronization. The 64-bit data frame is descrambled by the self-synchronizing descrambler 124, and the result is fed together with the 2 frame header bits from synchronizer 126 to the decoder 122, which outputs 8 characters along with an indication of receive errors (if any). [0030] Compared to the IEEE 64b/66b coding scheme, only the encoder 112 and the decoder 122 of the first embodiment of the present invention operate and function differently than the 64b/66b coding scheme. The 64b/66b coding scheme according to the first embodiment preferably uses the same scrambling method in the scrambler 1 14 and the descrambler 124 and the same scrambling polynomial, G(x) = x 58 + x 39 + 1 , as used in the IEEE 64b/66b coding scheme.

[0031] Furthermore, the 64b/66b coding scheme according to the first embodiment preferably defines the frame header bits in a way compatible with the IEEE 64b/66b coding scheme for purposes of block synchronization, and hence uses the same definition for the block synchronizer 26. Accordingly, operation of the block synchronizer 126, the scrambler 1 14 and the descrambler 124 will not be described in detail herein. The typical exemplary structure and operation of those components are described in detail in IEEE Std 802.3ae 2002, Clause 49, 'Physical Coding Sublayer (PCS) for 64B/66B, type 1 OGBASE-R', which document is incorporated in its entirety herein by reference.

WASH_1684955.1 Q

[0032] The 8b/10b coding scheme includes the following 13 control characters in addition to the 256 data characters: K28.0; K28.1 ; K28.2; K28.3; K28.4; K28.5; K28.6; K28.7; K23.7; K27.7; K29.7; K30.7; K0.7. The K0.7 control character is an extension of the original 8b/10b character set that has only 12 control characters. KO.7 is only defined for the encoder and is not recognized by the decoder in the 8b/ 1 Ob coding scheme. It is used for deterministically introducing errors without otherwise jeopardizing the properties of the coding scheme.

[0033] Each of the 8 characters input to the encoder 110 can be an arbitrary one of the above set of control characters or it can be an arbitrary data character (e.g., one of 2 8 possible data characters).

[0034] The 64b/66b coding scheme according to the first embodiment divides the 66- bit code word into 9 fields in the codeword 200 as shown in Figure 2. In particular, the 66-bit code word is divided into an FH (Frame Header) field, an F 0 field, an Fi field, an F 2 field, an F 3 field, an F 4 field, an F 5 field, an F 6 field, and an F 7 field. Each of the Fo - F 7 fields is 8 bits in size, while the FH field is 2 bits in size. In an alternative construction, the FH field may be 1 bit in size, which can be utilized in cases where DC balancing is not a major issue.

[0035] The FH field, which occupies the highest two bit positions in the 66-bit codeword, is a 2-bit frame header field that determines the overall type of the 66-bit frame. Each of the eight 8-bit fields F 0 - F 7 describes one of the 8 characters represented by the 66-bit codeword. The codeword has the same structure at the output of the encoder 112 and at the output of the scrambler 114, but whereby the fields F 0 - F 7 are scrambled by the scrambler 114. To simplify the discussion below, only the output of the encoder 112 is considered.

WASH 1684955.1 10

[0036] The FH field is defined as follow:

[0037] The FH field is given two legal values, 01 and 10, which both have excellent DC balancing properties (e.g., the same number of zeros and ones) as well as contains a transition useful for clock-data-recovery (CDR).

[0038] When all 8 characters represented by the 66-bit codeword are data characters, FH = 01 and the 8 fields F 0 -F 7 are used as data fields D 0 -D 7 in the codeword 300 as shown in Figure 3, each data field carrying the data byte for one of the data characters . The most significant bit of each data byte is at the highest numbered bit within its data field of the codeword. Thus, for example, the most significant bit of the data byte in data field Do is placed in bit position 63 in the 66-bit codeword, the most significant bit of the data byte in data field D] is placed in bit position 55 of the 66-bit codeword, etc.

[0039] If at least one of the 8 characters represented by the 66-bit codeword is a control character, then FH = 10. For each control character represented by the 66-bit codeword, one of the fields F 0 -F 7 , starting with F 0 , is used as a control field C n 400 for the n" 1 control character as shown in Figure 4. The most significant bit (bit 7) of a respective control field is placed at the highest numbered bit within the associated control field of the codeword. [0040] Each of the subfields in the control field C n is defined as follows.

WASH 1684955.1 11

N Definition

0 AU subsequent fields are data fields

1 Next field is a control field

POS Definition

000 Control character is in position 0 (first)

001 Control character is in position 1

010 Control character is in position 2 on Control character is in position 3

100 Control character is in position 4

101 Control character is in position 5

110 Control character is in position 6

111 Control character is in position 7 (last)

[0041] Figure 5 shows the various types of codeword structures 510, 520, 530, 540, 550, 560, 570 and 580 for the different possible number of control characters 1-8.

WASH 1684955.1 12

The first 66-bit codeword structure 510 shown in Figure 5 has one control field and seven data fields, representing one control character and seven data characters. The second 66-bit codeword structure 520 as outlined below has two control fields and six data fields. The third 66-bit codeword structure 530 has three control fields and five data fields, and so on. Lastly, the eighth 66-bit codeword structure 580 has eight control fields and no data fields, representing eight control characters and no data characters.

[0042] As explained above, the N subfield of each control field C n indicates whether or not the next field of the 66-bit codeword is a control field or a data field, thereby operating as a sort-of link list. The POS subfield of each control field C n indicates the actual position of its associated control character within the 8 characters input to the encoder and represented by the 66-bit codeword. Since the control fields are placed at a beginning portion of the 66-bit codeword, their current position within the 66-bit codeword is different from the associated control character true position with respect to the other 7 characters that are represented by the 66-bit codeword. The CTRL subfield of each control field C n indicates which of 16 possible control characters the control field C n represents. Because the 8b/10b coding standard, which this 64b/66b coding standard is designed to be compatible with, currently defines 13 possible control characters, the 4 bits reserved for the CTRL subfield are sufficient to make this determination, with three bit combinations reserved.

[0043] Independent of the position of the control characters within the block of 8 characters represented by the 66-bit codeword, the control fields C n are allocated left to right in the codeword, right next to each other. By way of the subfield N, a variable-length sequence of control fields is created to match the number of control

WASt-M 684955.1 J 3

characters. Hence, the position of a control character within the block of 8 characters input to the encoder and represented by the codeword is not implied by the position of its associated control field C n within the codeword, but is rather explicitly defined by the subfield POS in the control field C n . The positions of the data characters input to the encoder and represented by the codeword are in turn defined by the positions of the control characters: the first data character defined by D 0 is at the first (left-most) position within the block of 8 characters that is not occupied by a control character, the second data character defined by Di is at the second such position, etc. [0044] As shown in Figure 5, in one possible implementation of the first embodiment, the control fields within each 66-bit codeword are provided sequentially at a beginning position of the 66-bit codeword as encoded by the encoder 110, right after the FH field. In another possible implementation of the first embodiment, the control fields are provided sequentially from an end position of the 66-bit codeword (e.g., farthest away from the FH field).

[0045] To exemplify an implementation of the first embodiment, let the 8 characters input to the encoder 110 be: { 33 16 , AAi 6 , K28.5, 55 ]6 , K28.0, K29.7, EEi 6 , 66 ]6 }. There are 3 control characters (K28.5, K28.0 and K29.7) and 5 data characters (33 [6 , AAi 6 , 55i 6 , EEi 6 and 66] 6 ) in this 8 character sequence. The data character 33 ]6 is the first of the 8 characters. The resulting codeword at the output of the encoder 110 has the codeword structure 600 as shown in Figure 6, which is the same as third codeword structure 530 as shown in Figure 5.

[0046] The detailed individual fields of the codeword of the exemplary implementation are as follows:

WASH 1684955.1 14

[0047] Thus, the 66-bit codeword at the output of the encoder 112 in figure 1 is 2A5C05A33AA55EE66i 6 in hexadecimal notation, with the most significant bit corresponding to bit position 65. Note that this value is prior to scrambling being applied to bits 0-63 by the scrambler 114.

[0048] Because of the very low coding overhead of only 3.125 %, the 66b coding scheme according to the first embodiment, as also true for a similar 64b/66b coding scheme, inherently has somewhat poor error detection capabilities if bit errors occur in the transmission channel. Specifically, any bit error within a codeword data field cannot be detected. Furthermore, most bits errors in a codeword control field can not be detected either, as the Hamming distance between valid control fields is very low. To perform optimal error detection, the decoder 120 may, and preferably is designed to:

• Check that the FH field is either 01 or 10.

WASH 1684955.1 15

• Check that the POS subfϊelds within consecutive control fields are strictly increasing.

• Check that the CTRL subfield in a control field is valid (an application requiring fewer different control characters can optimize the error detection performance by allocating codes for the required control characters with maximum Hamming distance).

• Check that the N subfield in control field C 7 (if present) is 0.

[0049] If any of the above requirements are not met, then an error is determined to exist in the 66-bit codeword that has been decoded by the decoder 120. Accordingly, a scheme may be provided to have the encoder 110 re-transmit the 66-bit codeword that was determined to contain an error. A somewhat less strict scheme may have a decoder that checks some but not of the conditions listed above. [0050] In a second embodiment, as shown by the codeword 700 in Figure 7, the FH field is placed at a predetermined position in the 66-bit codeword other than a beginning portion of the 66-bit codeword. That predetermined position for the FH field corresponds to bit positions 24 and 25 of the 66-bit codeword, and both the encoder and the decoder of the second embodiment recognize ahead of receipt of the codeword that the FH field for each 66-bit codeword is located at the predetermined position. Accordingly, at the decoder, the bit positions 24 and 25 are checked to see whether or not any fields within the 66-bit codeword are control fields, in a manner similar to that discussed above with respect to the first embodiment. Alternatively, the FH field can be placed at any other predetermined position in the 66-bit codeword, as long as the encoder and the decoder recognize such placement. In the other respects, the second embodiment and these alternative implementations are the same as the first embodiment.

WASH_1684955.1 \ fi

[0051] In a third embodiment, the bits of each field in the 66-bit codeword do not have to be consecutive or in any particular order, whereby bits from different fields (F n , FH) can be mixed with each other, whereby this mixing is allowed based on the proviso that the encoder and decoder recognize this mixing of bits from different fields. For example, referring to the codeword 700 as shown in Figure 7, the FH field may be designated as having its LSB (least significant bit) corresponding to bit position 24 and its MSB (most significant bit) corresponding to bit position 58, whereby the F 6 field may be designated as having its LSB at bit position 25 and the remaining bits at bit positions 59-65. The encoder and decoder recognize this particular ordering of the bits in each field beforehand, and the decoder can rearrange the bits in order to obtain the information in each field of the 66-bit codeword. [0052] Thus, apparatuses and methods have been described according to the present invention. Many modifications and variations may be made to the techniques and structures described and illustrated herein without departing from the spirit and scope of the invention. For example, in a case whereby DC balancing is not a major issue, the FH field may be a single bit, thereby providing a 64b/65b coding scheme. Also, the placement of the control fields in the 66-bit or 65-bit codeword may be at the beginning or at the ending portion of the codeword, whereby the only proviso being that there are no data fields in between any two adjacently positioned control fields. Furthermore, the present invention may be expanded to cover any type of encoding/decoding scheme whereby the number of control character types is such that each can be definitively defined by a subfield in a control field, such as a subfield of 5 bits that can define up to 2 5 = 32 different control character types. In that case, a subfield for defining an actual position of the corresponding control character is

WASHJ 684955.1 j γ

limited to 2 bits to thereby allow for 2 2 = 4 possible positions for the control character to be designated in this field. A subfield for signifying whether or not the field is a control field or a data field is 1 bit in size (the same as in the previous embodiments). In that case, a 32b/34b or 32b/33b coding scheme (depending on whether or not the FH field is 1 or 2 bits in size) can be created in a manner similar to the description above with respect to the first embodiment, whereby this encoding scheme allows for more possible control character types as compared to the 64b/66b or 64b/65b schemes. Alternatively, if only 8 different control characters are needed, a subfield for defining the actual position of the control character can be 4 bits, thus enabling a 128b/129b or 128b/130b coding scheme (depending on whether or not the FH field is 1 or 2 bits in size) can be created in a manner similar to the description above with respect to the first embodiment, whereby this scheme allows for encoding 16 characters in a single codeword and even lower overhead (0.78% and 1.56%, respectively) as compared to the 64b/66b and 64b/65b schemes. Accordingly, it should be understood that the methods and apparatuses described herein are illustrative only and are not limiting upon the scope of the invention. Further, one or more aspects as described can be combined in any given system or method. Still further, one or more embodiments may be implemented in hardware, e.g., by a schematic design or a hardware description language (HDL), and/or implemented in a programmable logic device (FPGA/CPLD) or an ASIC, and/or they can be implemented in hardware using discrete hardware devices. Alternatively, one or more embodiments may be implemented either partially or entirely in software, such as by using a table-driven lookup mechanism for efficiency.

WASH 1684955.1 18