# Patent

## Title
Methods and apparatus for improving minimum Hamming weights of a sequence

## Abstract

A communications channel includes a buffer that receives symbols of user data including a plurality of M-bit symbols. A seed selector receives the M-bit symbols of the user data, selectively removes symbols of the user data from a seed set, and selects a scrambling seed from symbols remaining in the seed set. A scrambling device that communicates with the seed selector and the data buffer generates scrambled user data using the user data and the selected scrambling seed. A Hamming weight coding device determines a Hamming weight of symbols of the scrambled user data and selectively codes the symbols depending upon the determined Hamming weight.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application claims the benefit of U.S. Provisional Application No. 60/430,904, filed on Dec. 4, 2002, which is incorporated herein by reference in its entirety.


FIELD OF THE INVENTION
The present invention relates to data coding in a communications channel, and more particularly to data coding that eliminates unwanted bit patterns in a communications channel.
BACKGROUND OF THE INVENTION
Magnetic storage systems such as disk drives include a magnetic medium or platter with a magnetic coating that is divided into data tracks. The data tracks are divided into data sectors that store fixed-size data blocks. A read/write head typically includes a write circuit and a write element such as an inductor that selectively generates positive and negative magnetic fields that are stored by the magnetic medium. The stored positive and negative fields represent binary ones and zeros. The read/write head includes an element such as a magneto-resistive element that senses the stored magnetic field to read data from the magnetic medium. A spindle motor rotates the platter and an actuator arm positions the read/write head relative to the magnetic medium.
Magnetic storage systems typically code user data using Run Length Limited (RLL) code. RLL coding eliminates sequences in the user data that may degrade the performance of timing circuits of the magnetic storage system. For example, an RLL code enforces constraints on the number of consecutive ones and/or zeros that are permitted in the data. The efficiency of the RLL code is typically measured in terms of a code rate. For every m bits of user data, an encoded word with n bits is written to the storage media. RLL codes are used to eliminate unwanted bit patterns in the original data and typically do not have error correction capability.
Referring now to FIG. 1, a write path 10 in a conventional data storage system includes an error correction coding (ECC) encoder (ENC) 12 that receives user data. ECC ENC 12 generates cyclic redundancy check (CRC) and/or ECC bits that are appended to the user data. The user data, CRC bits, and/or ECC bits are output by ECC ENC 12 to an input of XOR gate 14. Another input of XOR gate 14 receives an output of a data scrambler 16, which generates a pseudo-random binary sequence. The scrambler here is used here purely for the purpose of randomizing data and does not guarantee any sort of RLL constraint.
A scrambled output of XOR gate 14 is input to a run length limited (RLL) ENC 18. RLL ENC 18 encodes bit strings to prevent unwanted data patterns that violate the constraint and outputs a bit stream to a read channel (R/C). Typically, RLL ENC 18 converts a block of NRLL bits into (NRLL+1) bits to avoid the unwanted data patterns.
Referring to FIG. 2, a read path 20 of a data storage system includes an RLL decoder (DEC) 22 that receives the bit stream from the read channel and decodes the bit stream. An output of RLL DEC 22 is input to an XOR gate 24. A scrambler 26, which is the same as scrambler 16, generates the pseudo-random binary sequence that is input to another input of XOR gate 24. An output of XOR gate 24 is input to an ECC DEC 26, which performs ECC decoding and outputs the user data. RLL ENC 18 eliminates unwanted bit patterns. However, the RLL coding also reduces data storage capacity. In other words, RLL coding increases channel bit density (CBD), which reduces SNR and leads to lower reliability.
SUMMARY OF THE INVENTION
A communications channel includes a buffer that receives symbols of user data including a plurality of M-bit symbols. A seed selector receives the M-bit symbols of the user data, selectively removes symbols of the user data from a seed set, and selects a scrambling seed from symbols remaining in the seed set. A scrambling device that communicates with the seed selector and the data buffer generates scrambled user data using the user data and the selected scrambling seed. A Hamming weight coding device determines a Hamming weight of symbols of the scrambled user data and selectively codes the symbols depending upon the determined Hamming weight.
A write path in a communications channel according to the present invention includes an encoder that receives a scrambled user data symbol sequence. The encoder compares the user data to a seed set and selects a token from unused symbols in the seed set. The encoder passes pairs of adjacent symbols of the scrambled user data sequence unchanged or, utilizing the selected token, outputs a pair of symbols having an improved Hamming weight.
A write path in a communications channel according to the present invention includes an encoder that receives a scrambled user data symbol sequence. The encoder compares the user data to a seed set and selects a first token and a second token from unused symbols in the seed set. The encoder also passes pairs of adjacent user symbols of the user data sequence unchanged or, utilizing either the first token or the second token dependent upon the adjacent user symbols, encodes an output having an equal number of bits as a pair of adjacent user symbols, depending upon a total Hamming weight of the pairs of adjacent user symbols.
Further areas of applicability of the present invention will become apparent from the detailed description provided hereinafter. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.



BRIEF DESCRIPTION OF THE DRAWINGS
The present invention will become more fully understood from the detailed description and the accompanying drawings, wherein:
FIG. 1 is a block diagram of a write path in a data storage system according to the prior art;
FIG. 2 is a block diagram of a read path in a data storage system according to the prior art;
FIG. 3 is a block diagram of a data dependent scrambler according to the present invention;
FIG. 4 is a block diagram representative of a write path according to the present invention;
FIG. 5 is a block diagram representative of a read path according to the present invention;
FIG. 6 is a flowchart illustrating steps for achieving a minimum Hamming weight of 15% when used with 10-bit symbols; and
FIG. 7 is a flowchart illustrating steps for achieving a minimum Hamming weight of 20% when used with 10-bit symbols.



DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
The following description of the preferred embodiment(s) is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses. For purposes of clarity, the same reference numbers will be used in the drawings to identify similar elements.
Hamming weight refers to the number of non-zero symbols in a symbol sequence. For binary signaling, Hamming weight refers to the number of “1” bits in the binary sequence. Low Hamming weight sequences (sequences with many zeros) adversely affect synchronization times and timing loops. Likewise, high Hamming weights cause similar problems. Therefore, there have been attempts to improve the Hamming weight of scrambled sequences. However, a trade-off between efficiency and effectiveness usually must be made.
Referring to FIG. 3, a write path 30 for a data storage system loads user data into storage buffer 32. It will be appreciated that write path 30 may be a serial path or a parallel path. A data dependent scrambling device 33 searches for a suitable scrambling sequence based on the user data stored in buffer 32 and outputs the selected scrambling sequence to an input of XOR device 34. The term data buffer as used herein is defined as any device that stores blocks of user data while data dependent scrambling device 33 identifies the scrambling sequence or seed that is used to scramble the user data. The scrambling sequence is data dependent in that it depends upon the user data portion on the data buffer 32. In some implementations, the blocks of user data may include 4096 bits.
A delayed output of data buffer 32 is also output to XOR device 34 when the scrambling sequence is found. The delay of data buffer 32 is sufficient to allow the scrambling sequence to be generated by the data dependent scrambler 33. An output of XOR device 34 and overhead bits that are output by scrambler 33 are input to an ECC ENC 36, which appends any scrambler overhead bits to the scrambled user data. ECC ENC 36 generates ECC and/or CRC bits based on the scrambled user data and/or the overhead bits.
In some configurations of the present invention, a 10-bit symbol user data sequence D={DN−1, DN−2, . . . , D0} of size N is scrambled. For example, when the block of user data includes 4096 bits, there are 410 symbols. A scrambling seed A is found that is different from any symbols in data sequence D={DN−1,DN−2, . . . , D0). Finding such a seed is always possible if N<210. More generally, if the number of bits in a symbol is M, it is always possible to find such a seed if N<2M, simply because not all of the 2M different possible symbols can be included in a data sequence of fewer than 2M symbols. Because scrambling seed A is different from each symbol in the data sequence, it will differ from each symbol in the data sequence in at least one bit position. A scrambling sequence is then formed by repeating symbol A for N times. A bit-wise XOR of scrambling sequence {A, A, . . . , A} with data sequence D={DN−1, DN−2, . . . , D0} is performed to obtain a scrambled sequence C={CN−1, CN−2, . . . , C0}.
Referring again to FIG. 3, user data input to data buffer 32 is immediately passed on to data dependent scrambler 33 to analyze so that seed A can be determined. Data buffer 32 also stores this user data. After seed A is determined, data buffer 32 releases the stored data to XOR device 34 while data dependent scrambler 33 repeats the seed pattern A until the stored data in data buffer 32 is exhausted.
The above method produces a scrambled sequence C in which every ten bit symbol Ci, (i=N−1, . . . , 0} is non-zero, every ten bit symbol Ci, (i=N−1, . . . , 0) has a minimum Hamming weight of one, and the scrambled sequence C has a minimum Hamming weight of 10%. Each ten bit symbol Ci is non-zero because scrambling seed A is different from each symbol Di in the data sequence by at least one bit. When A is XORed with any Di, the result will have a “1” in any bit position in which A differs from Di, and there is at least one such bit position in every Di. Thus, every ten bit symbol Ci has a Hamming weight of at least one, which is 10% of the bits in each Ci. Because no symbol in the entire sequence C has a Hamming weight less than the minimum 10%, the scrambled sequence has a minimum Hamming weight of 10%. The procedure for generating scrambled sequence C can readily be generalized for any symbol size M, provided that N<2M. The resulting scrambled sequence will have a minimum Hamming weight of 1/M.
For a ten bit symbol size, i.e., M=10, there are 210 possible binary symbols. These symbols form a seed set S. Given a data sequence D={DN−1, DN−2, . . . , D0} with N<210, a scrambling seed A can be produced from S by designating every Di in S as a “used symbol,” and picking an unused symbol in S as the scrambling seed A. This procedure works for any symbol length M, provided that N<2M.
Because each symbol in the scrambled sequence has a Hamming weight of at least 1, the worst case run of zeros occurs when a symbol with Hamming weight 1 having the “1” at the beginning of the symbol is adjacent a symbol with Hamming weight 1 having the “1” at the end of the symbol. The worst case run of zeros thus cannot be greater than two less than twice the number of bits in a symbol, or 18 (for 10-bit symbols). In some applications, including at least some storage systems, it is required that the scrambled sequence also not contain long runs of ones. This requirement can be met by disallowing the all-ones symbol from appearing in scrambled sequence C. The scrambling seed search is thus modified as follows, with the requirement 2N<2M, where M is 10 for ten-bit symbols. For every Di, designate Di and Di in S as a “used symbol,” and select an unused symbol in S as the scrambling seed A.
Designating both Di and Di as used symbols explains the requirement 2N<2M; more particularly, twice as many symbols are designated as used for the same number of symbols in D. Thus, there can be fewer symbols in a data sequence D. However, the procedure avoids long runs of both ones and zeros by making it impossible for the all-zeroes symbol to occur (by the elimination of all Di from the universe of possible scrambling seeds) and by making it impossible for the all-ones symbol to occur (by the elimination of all Di from the universe of possible scrambling seeds). Thus, each symbol Ci must include a zero and a one. The longest possible all-ones sequence and the longest possible all-zeros sequence are both two bits shorter than twice the symbol length.
The above steps are suitable for producing a scrambled sequence C where every 10-bit symbol Ci, (i=N−1, . . . ,0) is non-zero, where every 10-bit symbol Ci has a minimum Hamming weight of 1, and the scrambled sequence C has a minimum Hamming weight of 10%. The scrambler overhead is M bits in this example.
Referring now to FIGS. 4 and 5, a write path 200 is utilized in conjunction with a read path 202. Write path 200 comprises a scrambler 204, an H-code encoder 206, a P-code encoder 208, and an ECC encoder 210. A table storing a seed set is shown at 211. Read path 202 comprises an ECC decoder 212, a P-code decoder 214, an H-code decoder 216, and a descrambler 218. In these configurations, an “H-code” is a code that improves the Hamming weight of a scrambled sequence and that has H-code overhead as shown. “P-code” is a post-coding that performs bit interleaving, segmenting and inversion, and/or all-zero symbol replacement and that has P-code overhead as shown. “P”-code encoding and decoding is described further in “Improved Data Coding for Enforcing Constraints on Ones and Zeros in a Communications Channel,”, U.S. patent application Ser. No. 10/423,552, which was filed on Apr. 25, 2003 and which is hereby incorporated by reference in its entirety.
To improve the worst case Hamming weights to 15% in some configurations, a token is selected and used to indicate H-coding 206 for low weight two-symbol code groups. This token is unique when the data gets to H-code decoder 216 even though bit interleaving in P-code encoder 208 may generate symbols equal to the token, there is no ambiguity because P-code decoder 214 processes data in read path 202 prior to H-code decoder 216. In some configurations in which the all-zero symbol and the all-one symbol are used as indicators in the P-code, neither of these two symbols is used as the token.
Referring now to FIG. 6, for a data sequence C={CN−1, CN−2, . . . , C0} of size N, where each Ci is an M-bit symbol and 2N<2M−3, at 302, a table of possible seeds S and a loop index i are initialized.
In step 304, each Di in D and Di are removed from S as a possible seed. This step may be performed by looping through all N members of data sequence D and setting bits in the table of possible seeds S to indicate that the symbols encountered in data sequence D are not available for use as a seed. At least three seeds must remain.
In step 306, one of the available seeds in S is selected to be the seed of the scrambling sequence, which is designated here as seed a. In step 308, another valid seed, b, which is not a one's complement of the true seed a, is selected. Because at least two seeds in S other than a remain, it is always possible to select a remaining seed b that is not a one's complement of a. The scrambled data sequence C={CN−1, CN−2, . . . , C0} is generated by XOR the data sequence D={DN−1, DN−2, . . . , D0} with the scrambling sequence {a, a, . . . , a}.
In step 310, the symbol a⊕b is determined, where the typographic symbol ⊕ denotes the XOR operator, and the symbols so determined is stored as the token. Because of the manner in which it is selected, the token has a Hamming weight of at least one and is not the all-one symbol. Both a and b shall be protected by ECC meaning that the CRC/ECC redundancy symbols should be generated based on a and b and the processed user data.
Starting at the first two symbols Ci−1, Ci−2 in step 312, where i=N−1, the Hamming weight of the two-symbol group of 10-bit symbols is determined. If the Hamming weight is at least three (15%) in step 314, H-code encoder 206 passes its input data unmodified to P-code encoder 208 in step 316. Otherwise, it is necessarily the case that both symbols of the two symbol group have Hamming weight one. In this case, an 18-bit string is generated in step 318 utilizing the 10-bits of the stored token in combination with two four-bit indications of the positions of the ones in each of the two data symbols. For example, an ordered concatenation of the token and the two four-bit indications can be used. And the two four-bit indications can be made nonzero by numbering the position of the bit “1” in a weight-1 symbol from 1 to 10.
The combination of the token and the two four-bit representations is only 18 bits, which is less than the original total of 20 bits occupied by the two original two-symbol group of 10-bit symbols. Therefore, in step 320, the remaining two bits are set to one or zero in a consistent manner, thereby filling up all 20 bits. In step 320, if the entire data sequence C is exhausted, the procedure is complete, until another data sequence is provided. Otherwise, in step 322, the next two data symbols are repeated and processed, starting in step 312.
As a result, at very small computational and component cost, the worst case Hamming weight is 15% in these configurations of the present invention, because at least three of the 20 bits are “1”s. More particularly, any two-symbol group having a Hamming weight greater than 15% is passed through unchanged, and any group having a lower weight is coded to have at least three “1”s: a token having a Hamming weight not less than 1 and two four-bit indications each having a Hamming weight at least 1.
The mapping of 10-bit symbols of Hamming weight 1 into four bits each is explained by the following example. A symbol such as 0010000000 has only one “1” bit in it. A four-bit code is sufficient to represent the bit position of the “1” bit, because there are only ten bit positions (more particularly, there are fewer than 2J=16 bit positions, where J=4 is the length of the bit-position mapping code). Any consistent mapping can be used to indicate the bit position provided that the four-bit indication is not all-zero. For example, a simple binary representation of the bit position can be used, counting the bit position consistently either from the left (thus mapping into 0011) or from the right (thus mapping into 1000).
Skilled artisans will understand that the configuration described above can be modified to work with different M (the number of bits in the symbols), J (the length of the bit-position mapping code), and/or K (the number of symbols in a group, which in the case of the above example, is 2). Not all of these modifications will result in minimum Hamming weights of exactly 15%.
Some configurations of the present invention utilize an alternate and presently preferred H-code that is shown in FIG. 7 to provide a worst case Hamming weight of 20% with 10-bit symbols. Some of these configurations utilize a 10-bit to 6-bit lookup table that maps all 10-bit symbols of weight one or two into 6-bit patterns having weight of at least two. The 10-bit to 6-bit lookup table can be provided in a permanent memory such as a ROM, because the table does not depend upon any data sequence and there is no need for the table to change. There are 10 10-bit symbols having weight one and 45 10-bit symbols having weight two. Thus, there are 55 10-bit symbols to map. There are 15 6-bit patterns of weight 2, 20 6-bit patterns of weight 3, 15 6-bit patterns of weight 4, 6 6-bit patterns of weight 5, and 16-bit pattern of weight 6. Thus, the 55 10-bit symbols of weight one or two can be mapped into 55 of the 57 possible 6-bit patterns of weight two or more. As a result, a reversible correspondence, such as a one-to-one correspondence, is possible.
Referring now to FIG. 7, in steps 402, 404, and 406, a token is selected in a manner essentially similar to that described above in steps 302, 304, and 306. This token is stored as Token-1. In step 408, a bit-wise inversion of Token-1 is performed and the result is stored as Token-2.
H-code encoder 16 encodes as follows: The Hamming weight of a two-symbol group is determined in step 410. If the total Hamming weight is at least four at 412, the data is passed unchanged to P-code encoder 208 at 414. The resulting two-symbol group has a Hamming weight of at least 20%, i.e., at least four bits out of 20 are “1”s.
If the Hamming weight of the two symbols is either (1,1) or (1,2) in step 416, then in step 418, H-code encoder 16 inserts Token-1 in a consistent manner, for example, on the left. The first four bits of the second symbol are set to indicate the position of the 1 in the weight one symbol, for example, using a positional mapping such as that described above. Any mapping can be used, but the 4-bit all zero pattern is excluded. A six bit pattern is found by determining which of the 6-bit patterns of weight 2 or more corresponds to the second data symbol. For example, a look-up table can be used to make this determination. The six-bit pattern is concatenated or otherwise included with Token-1 and the four bits indicating the position of the 1 in the weight one symbol so that a string of 20 bits is created. These 20 bits have at least two “1” bits from inclusion of the 6-bit pattern, at least one “1” bit from the token, and at least one “1” bit from the 4-bit code representing the bit position in the weight one symbol. The resulting 20 bits include at least 4 “1”s, so the Hamming weight is at least 20%. It will be appreciated that the presence of Token-1 at a specific position within the 20-bit pattern identifies this case to the decoder.
Because zero-weight symbols are not used, the only remaining possibility is that the Hamming weight of the two symbols is (2,1). In step 420, Token-2 is inserted on the left. The first four bits of the second symbol are used to indicate the position of the 1 in the weight one symbol, and the second symbol is converted to a six bit symbol. It will be recognized that the resulting 20 bits can be identified by a decoder from the presence of Token-2 at a specific position within the 20-bit pattern instead of Token-1, or some other pattern of bits. It will also be recognized that the minimum Hamming weight in this case is also 20% for reasons quite similar to the case above in which the two symbols have Hamming weight (1,2).
If the data sequence is exhausted in step 422, the procedure is done, and can be restarted when new data is available. Otherwise, the next to data symbols are selected in step 424 and the procedure loops back to step 410.
Application specific integrated circuits, dedicated circuits, software and a processor, discrete circuits, and/or any other suitable manner can be used to implement configurations described herein. Thus, items referred to as “devices” in the examples described above can be, but are not necessarily discrete components.
It will thus be appreciated that methods and apparatus of the present invention provide increased Hamming code weights for communications channels, and/or provide coded symbol sequences on such channels without excessively long strings of “1”s and/or “0”s. Moreover, computational overhead is very small and simple buffers can be used, as no more than four consecutive symbols are needed in any iteration or step that takes place in configurations of the present invention. In some configurations, only two consecutive symbols are needed.
Those skilled in the art can now appreciate from the foregoing description that the broad teachings of the present invention can be implemented in a variety of forms. Therefore, while this invention has been described in connection with particular examples thereof, the true scope of the invention should not be so limited since other modifications will become apparent to the skilled practitioner upon a study of the drawings, the specification and the following claims.

## Claims

1. A communications channel that includes a buffer that receives symbols of user data including a plurality of M-bit symbols, comprising:
a seed selector that receives the M-bit symbols of the user data, that selectively removes symbols of the user data from a seed set, and that selects a scrambling seed from symbols remaining in said seed set;
a scrambling device that communicates with said seed selector and the data buffer and that generates scrambled user data using the user data and said selected scrambling seed; and
a Hamming weight coding device that determines a Hamming weight of symbols of said scrambled user data and that selectively codes said symbols depending upon said determined Hamming weight.

2. The communications channel of claim 1 wherein said communications channel is implemented in a data storage system.

3. The communications channel of claim 1 wherein said Hamming weight coding device determines a Hamming weight of two adjacent symbols in said scrambled user data.

4. The communications channel of claim 1 wherein said seed selector removes inverses of symbols in the user data from said seed set.

5. The communications channel of claim 3 wherein said Hamming weight coding device selects an unused seed S as a first token and a bit-wise inversion of S as a second token.

6. The communications channel of claim 5 wherein said Hamming weight coding device passes said two adjacent symbols unchanged when said Hamming weight of said two adjacent symbols is greater than or equal to 4.

7. The communications channel of claim 6 wherein when said Hamming weight of said two adjacent symbols is one of (1,1) and (1,2), said Hamming weight coding device replaces a first of said two adjacent symbols with said first token and replaces a second of said two adjacent symbols with a bit indicator of said first of said two adjacent symbols and a mapping of said second of said two adjacent symbols.

8. The communications channel of claim 7 wherein said bit indicator indicates a position of a one bit in said first of said two adjacent symbols.

9. The communications channel of claim 8 wherein said bit indicator includes I bits and said mapping maps M bits of said second of said two adjacent symbols to M-I bits.

10. The communications channel of claim 9 wherein when said Hamming weight of said two adjacent symbols is (2,1), said Hamming weight coding device replaces a first of said two adjacent symbols with said second token and a second of said two adjacent symbols with a bit indicator of said second of said two adjacent symbols and a mapping of said first of said two adjacent symbols.

11. The communications channel of claim 10 wherein said bit indicator indicates a position of a one bit in said first of said two adjacent symbols.

12. The communications channel of claim 10 wherein said bit indicator includes I bits and said mapping maps M bits of said first of said two adjacent symbols to M-I bits.

13. The communications channel of claim 1 wherein said Hamming weight coding device selects a first unused seed A and a second unused seed B, wherein A is not the one's complement of B, and determines a token as A XOR B.

14. The communications channel of claim 13 wherein said Hamming weight coding device passes said two adjacent symbols unchanged when said Hamming weight of said two adjacent symbols is greater than or equal to 3.

15. The communications channel of claim 14 wherein when said Hamming weight of said two adjacent symbols is less than 3, said Hamming weight coding device replaces a first of said two adjacent symbols with said first token, replaces a second of said two adjacent symbols with bit indicators for said two adjacent symbols, and fills remaining bit positions with 1's.

16. A write path in a communications channel, comprising:
a scrambler; and
an encoder that:
communicates with said scrambler,
compares a user data symbol sequence to a seed set,
selects a token from unused symbols in said seed set, and
at least one of passes pairs of adjacent user symbols of said user data sequence unchanged and, utilizing said selected token, encodes an output having an equal number of bits as a pair of adjacent user symbols, depending upon a total Hamming weight of said pairs of adjacent user symbols.

17. The write path of claim 16 wherein said communications channel is implemented in a data storage system.

18. The write path of claim 16 wherein to utilize said unused symbols from said received user data symbol sequence to select said token, said encoder selects a first unused symbol a and a second unused symbol b, wherein a and b are not one's complements of one another, and determines said token as a XOR b.

19. The write path of claim 16 wherein said encoder passes a pair of adjacent user symbols of said user data sequence unchanged when a total Hamming weight of said pair of adjacent user symbols is greater than or equal to 3, and generates a bit string utilizing the token and bit position indicators for “1”-bits in said pair of adjacent user symbols of said user data sequence and fills remaining bits to “1” so that a generated bit string and said pair of adjacent user symbols have the same number of bits.

20. The write path of claim 16 wherein said user symbols are 10-bit symbols.

21. The write path in a communications channel, comprising:
a scrambler; and
an encoder that:
communicates with said scrambler,
compares a user data symbol sequence to a seed set,
selects a first token and a second token from unused symbols in the seed set, and
at least one of passes pairs of adjacent user symbols of said user data sequence unchanged and, utilizing one of said first token and said second token dependent upon said adjacent user symbols, encodes an output having an equal number of bits as a pair of adjacent user symbols, depending upon a total Hamming weight of said pairs of adjacent user symbols.

22. The write path of claim 21 wherein said communications channel is implemented in a data storage system.

23. The write path of claim 21 wherein said encoder selects an unused symbol as said first token, and selects a bitwise inversion of said first token as said second token.

24. The write path of claim 21 wherein said encoder passes a pair of adjacent user symbols of said user data sequence unchanged when a total Hamming weight of said pair of adjacent user symbols is greater than or equal to 4, and generates a bit string utilizing one of said first token and said second token, depending upon Hamming weights of said adjacent user symbols in said pair of adjacent user symbols, and bit position indicators for “1”-bits in one of said pair of adjacent user symbols of said user data sequence, so that a generated bit string and said pair of adjacent user symbols have the same number of bits.

25. The write path of claim 21 wherein said user symbols are 10-bit symbols.

26. A communications channel that includes a buffer that receives symbols of user data including a plurality of M-bit symbols, comprising:
seed selecting means for receiving the M-bit symbols of the user data, for selectively removing symbols of the user data from a seed set, and for selecting a scrambling seed from symbols remaining in said seed set;
scrambling device means for communicating with said seed selector and the data buffer and for generating scrambled user data using the user data and said selected scrambling seed; and
Hamming weight coding means for determining a Hamming weight of symbols of said scrambled user data and for selectively coding said symbols depending upon said determined Hamming weight.

27. The communications channel of claim 26 wherein said communications channel is implemented in a data storage system.

28. The communications channel of claim 26 wherein said Hamming weight coding means determines a Hamming weight of two adjacent symbols in said scrambled user data.

29. The communications channel of claim 26 wherein said seed selecting means removes inverses of symbols in the user data from said seed set.

30. The communications channel of claim 28 wherein said Hamming weight coding means selects an unused seed S as a first token and a bit-wise inversion of S as a second token.

31. The communications channel of claim 30 wherein said Hamming weight coding means passes said two adjacent symbols unchanged when said Hamming weight of said two adjacent symbols is greater than or equal to 4.

32. The communications channel of claim 31 wherein when said Hamming weight of said two adjacent symbols is one of (1,1) and (1,2), said Hamming weight coding means replaces a first of said two adjacent symbols with said first token and replaces a second of said two adjacent symbols with a bit indicator of said first of said two adjacent symbols and a mapping of said second of said two adjacent symbols.

33. The communications channel of claim 32 wherein said bit indicator indicates a position of a one bit in said first of said two adjacent symbols.

34. The communications channel of claim 33 wherein said bit indicator includes I bits and said mapping maps M bits of said second of said two adjacent symbols to M-I bits.

35. The communications channel of claim 34 wherein when said Hamming weight of said two adjacent symbols is (2,1), said Hamming weight coding means replaces a first of said two adjacent symbols with said second token and a second of said two adjacent symbols with a bit indicator of said second of said two adjacent symbols and a mapping of said first of said two adjacent symbols.

36. The communications channel of claim 35 wherein said bit indicator indicates a position of a one bit in said first of said two adjacent symbols.

37. The communications channel of claim 35 wherein said bit indicator includes I bits and said mapping maps M bits of said first of said two adjacent symbols to M-I bits.

38. The communications channel of claim 26 wherein said Hamming weight coding means selects a first unused seed A and a second unused seed B, wherein A is not the one's complement of B, and determines a token as A XOR B.

39. The communications channel of claim 38 wherein said Hamming weight coding means passes said two adjacent symbols unchanged when said Hamming weight of said two adjacent symbols is greater than or equal to 3.

40. The communications channel of claim 39 wherein when said Hamming weight of said two adjacent symbols is less than 3, said Hamming weight coding means replaces a first of said two adjacent symbols with said first token, replaces a second of said two adjacent symbols with bit indicators for said two adjacent symbols, and fills remaining bit positions with 1's.

41. A write path in a communications channel, comprising:
scrambling means for scrambling data; and
encoding means for communicating with said scrambling means, for comparing a user data symbol sequence to a seed set, for selecting a token from unused symbols in said seed set and for at least one of passing pairs of adjacent user symbols of the user data sequence unchanged and, utilizing said selected token, encoding an output having an equal number of bits as a pair of adjacent user symbols, depending upon a total Hamming weight of said pairs of adjacent user symbols.

42. The write path of claim 41 wherein said communications channel is implemented in a data storage system.

43. The write path of claim 41 wherein to utilize said unused symbols from the received user data symbol sequence to select said token, said encoding means selects a first unused symbol a and a second unused symbol b, wherein a and b are not one's complements of one another, and determines said token as a XOR b.

44. The write path of claim 41 wherein said encoding means passes a pair of adjacent user symbols of the user data sequence unchanged when a total Hamming weight of said pair of adjacent user symbols is greater than or equal to 3, and generates a bit string utilizing the token and bit position indicators for “1”-bits in said pair of adjacent user symbols of the user data sequence and fills remaining bits to “1” so that the generated bit string and said pair of adjacent user symbols have the same number of bits.

45. The write path of claim 41 wherein said user symbols are 10-bit symbols.

46. The write path in a communications channel, comprising:
scrambling means; and
encoding means for communicating with said scrambling means, for comparing a user data symbol sequence to a seed set, for selecting a first token and a second token from unused symbols from said seed set, and for at least one of passing pairs of adjacent user symbols of the user data sequence unchanged and, utilizing one of said first token and said second token dependent upon said adjacent user symbols, encoding an output having an equal number of bits as a pair of adjacent user symbols, depending upon a total Hamming weight of said pairs of adjacent user symbols.

47. The write path of claim 46 wherein said communications channel is implemented in a data storage system.

48. The write path of claim 46 wherein said encoding means selects an unused symbol as said first token, and selects a bitwise inversion of said first token as said second token.

49. The write path of claim 46 wherein said encoding means passes a pair of adjacent user symbols of the user data sequence unchanged when a total Hamming weight of said pair of adjacent user symbols is greater than or equal to 4, and generates a bit string utilizing one of said first token and said second token, depending upon Hamming weights of said adjacent user symbols in said pair of adjacent user symbols, and bit position indicators for “1”-bits in one of said pair of adjacent user symbols of the user data sequence, so that the generated bit string and said pair of adjacent user symbols have the same number of bits.

50. The write path of claim 46 wherein said user symbols are 10-bit symbols.

51. A method for operating a communications channel that includes a buffer that receives symbols of user data including a plurality of M-bit symbols, comprising:
receiving the M-bit symbols of the user data;
selectively removing symbols of the user data from a seed set;
selecting a scrambling seed from symbols remaining in said seed set;
generating scrambled user data using the user data and said selected scrambling seed;
determining a Hamming weight of symbols of said scrambled user data; and
selectively coding said symbols depending upon said determined Hamming weight.

52. The method of claim 51 wherein said communications channel is implemented in a data storage system.

53. The method of claim 51 further comprising determining Hamming weights of two adjacent symbols in said scrambled user data.

54. The method of claim 51 further comprising removing inverses of symbols in the user data from said seed set.

55. The method of claim 53 further comprising selecting an unused seed S as a first token and a bit-wise inversion of S as a second token.

56. The method of claim 55 further comprising passing said two adjacent symbols unchanged when said Hamming weight of said two adjacent symbols is greater than or equal to 4.

57. The method of claim 56 further comprising replacing a first of said two adjacent symbols with said first token and replacing a second of said two adjacent symbols with a bit indicator of said first of said two adjacent symbols and a mapping of said second of said two adjacent symbols when said Hamming weights of said two adjacent symbols is one of (1,1) and (1,2).

58. The method of claim 57 further comprising indicating a position of a one bit in said first of said two adjacent symbols.

59. The method of claim 58 wherein said bit indicator includes I bits and said mapping maps M bits of said second of said two adjacent symbols to M-I bits.

60. The method of claim 59 further comprising replacing a first of said two adjacent symbols with said second token and a second of said two adjacent symbols with a bit indicator of said second of said two adjacent symbols and a mapping of said first of said two adjacent symbols when said Hamming weights of said two adjacent symbols is (2,1).

61. The method of claim 60 wherein said bit indicator indicates a position of a one bit in said first of said two adjacent symbols.

62. The method of claim 60 wherein said bit indicator includes I bits and said mapping maps M bits of said first of said two adjacent symbols to M-I bits.

63. The method of claim 51 further comprising selecting a first unused seed A and a second unused seed B, wherein A is not the one's complement of B, and determines a token as A XOR B.

64. The method of claim 63 further comprising passing said two adjacent symbols unchanged when said Hamming weight of said two adjacent symbols is greater than or equal to 3.

65. The method of claim 64 further comprising replacing a first of said two adjacent symbols with said first token, replacing a second of said two adjacent symbols with bit indicators for said two adjacent symbols, and filling remaining bit positions with 1's when said Hamming weight of said two adjacent symbols is less than 3.

66. A method of operating a write path in a communications channel, comprising:
comparing a user data symbol sequence to a seed set;
selecting a token from unused symbols in the seed set; and
at least one of passing pairs of adjacent user symbols of the user data sequence unchanged and, utilizing said selected token, encoding an output having an equal number of bits as a pair of adjacent user symbols, depending upon a total Hamming weight of said pairs of adjacent user symbols.

67. The method of claim 66 wherein said communications channel is implemented in a data storage system.

68. The method of claim 66 further comprising:
selecting a first unused symbol a and a second unused symbol b, wherein a and b are not one's complements of one another; and
determining said token as a XOR b.

69. The method of claim 66 further comprising:
passing a pair of adjacent user symbols of the user data sequence unchanged when a total Hamming weight of said pair of adjacent user symbols is greater than or equal to 3;
generating a bit string utilizing the token and bit position indicators for “1”-bits in said pair of adjacent user symbols of the user data sequence; and
filling remaining bits to “1” so that the generated bit string and said pair of adjacent user symbols have the same number of bits.

70. The method of claim 66 wherein said user symbols are 10-bit symbols.

71. A method of operating a write path in a communications channel, comprising:
comparing a user data symbol sequence to a seed set;
selecting a first token and a second token from unused symbols in said seed set; and
at least one of passing pairs of adjacent user symbols of the user data sequence unchanged and, utilizing one of said first token and said second token dependent upon said adjacent user symbols, encoding an output having an equal number of bits as a pair of adjacent user symbols, depending upon a total Hamming weight of said pairs of adjacent user symbols.

72. The method of claim 71 wherein said communications channel is implemented in a data storage system.

73. The method of claim 71 further comprising:
selecting an unused symbol as said first token; and
selecting a bitwise inversion of said first token as said second token.

74. The method of claim 71 further comprising:
passing a pair of adjacent user symbols of the user data sequence unchanged when a total Hamming weight of said pair of adjacent user symbols is greater than or equal to 4; and
generating a bit string utilizing one of said first token and said second token, depending upon Hamming weights of said adjacent user symbols in said pair of adjacent user symbols, and bit position indicators for “1”-bits in one of said pair of adjacent user symbols of the user data sequence, so that the generated bit string and said pair of adjacent user symbols have the same number of bits.

75. The method of claim 71 wherein said user symbols are 10-bit symbols.