Skew-tolerant gray codes
First Claim
Patent Images
1. A method executable by a programmed processor for generating a binary Gray code, comprising:
- providing an n-bit binary Gray code Cn;
using Cn, generating an n+2 bit binary Gray code Cn+2 having 4M code words c0n through cN−
1n, where N is less than or equal to 2n, by;
changing the leftmost bit between the code words c0n and c1n;
finding the largest value M such that the rightmost bit changes between code words cM−
2n and cM−
1n; and
forming 4M code words of Cn+2 by extending the first M code words of Cn by a single bit at each end, with reversals in the order of the code words of Cn as required to yield an extended code X, wherein;
3 Assignments
0 Petitions
Accused Products
Abstract
Skew-tolerant Gray codes have the property that consecutive code words differ in only one co-ordinate position, and the additional property that, in each consecutive group of three consecutive code words, the first and third code words differ in only two adjacent coordinate positions.
10 Citations
18 Claims
-
1. A method executable by a programmed processor for generating a binary Gray code, comprising:
-
providing an n-bit binary Gray code Cn;
using Cn, generating an n+2 bit binary Gray code Cn+2 having 4M code words c0n through cN−
1n, where N is less than or equal to 2n, by;
changing the leftmost bit between the code words c0n and c1n;
finding the largest value M such that the rightmost bit changes between code words cM−
2n and cM−
1n; and
forming 4M code words of Cn+2 by extending the first M code words of Cn by a single bit at each end, with reversals in the order of the code words of Cn as required to yield an extended code X, wherein;
- View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method executable by a programmed processor for generating a skew-tolerant Gray code having code words with co-ordinate positions, comprising:
-
receiving a number n representing the length of the code words;
if n is equal to or less than 3, selecting a predetermined code table containing 2, 4, or 8 code words, in which the predetermined tables having 4 or eight code words are characterized by at least two properties;
a first property that consecutive code words differ in only one coordinate position;
and a second property that, in each consecutive group of three consecutive code words, the first and third code words differ in only two adjacent coordinate positions;
otherwise, if n is even, selecting the predetermined code table containing 4 code words as a first code table, or if n is odd, selecting the predetermined code table with 8 code words as the first code table; and
then performing the following recursion;
setting a parameter L to a value equal to the number of code words in the first code table;
forming a second code table from the first (3L/4+2) code words in the first code table;
forming a third code table by adding a zero at the beginning and end of each code word in the second code table;
forming a fourth code table by adding a one at the beginning and end of each code word in the second code table;
forming a fifth code table by reversing the order of code words in the second code table;
forming a sixth code table by adding a zero at the beginning and a one at the end of each code word in the fifth code table;
forming a seventh code table by adding a one at the beginning and a zero at the end of each code word in the fifth code table;
forming an eighth code table by concatenating corresponding code words of the third, fourth, sixth, and seventh code tables;
if the length of the code words in the eighth code table is less than n, continuing the recursion using the eighth code table as the first code table;
otherwise,ending the recursion. - View Dependent Claims (8, 9)
-
-
10. A program medium having computer-readable code means for performing a method to generate a binary Gray code, the method comprising:
-
providing an n-bit binary Gray code Cn;
using Cn, generating an n+2 bit binary Gray code Cn+2 having 4M code words c0n through cN−
1n, where N is less than or equal to 2n, by;
changing the leftmost bit between the code words c0n and c1n;
finding the largest value M such that the rightmost bit changes between code words cM−
2n and cM−
1n; and
forming 4M code words of Cn+2 by extending the first M code words of Cn by a single bit at each end, with reversals in the order of the code words of Cn as required to yield an extended code X, wherein;
- View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A program medium having computer-readable code means for performing a method to generate a skew-tolerant Gray code having code words with co-ordinate positions, comprising:
-
receiving a number n representing the length of the code words;
if n is equal to or less than 3, selecting a predetermined code table containing 2, 4, or 8 code words, in which the predetermined tables having 4 or eight code words are characterized by at least two properties;
a first property that consecutive code words differ in only one co-ordinate position;
and a second property that, in each consecutive group of three consecutive code words, the first and third code words differ in only two adjacent coordinate positions;
otherwise, if n is even, selecting the predetermined code table containing 4 code words as a first code table, or if n is odd, selecting the predetermined code table with 8 code words as the first code table; and
then performing the following recursion;
setting a parameter L to a value equal to the number of code words in the first code table;
forming a second code table from the first (3L/4+2) code words in the first code table;
forming a third code table by adding a zero at the beginning and end of each code word in the second code table;
forming a fourth code table by adding a one at the beginning and end of each code word in the second code table;
forming a fifth code table by reversing the order of code words in the second code table;
forming a sixth code table by adding a zero at the beginning and a one at the end of each code word in the fifth code table;
forming a seventh code table by adding a one at the beginning and a zero at the end of each code word in the fifth code table;
forming an eighth code table by concatenating, in order, the rows of the third, sixth, fourth, and seventh code tables;
if the length of the code words in the eighth code table is less than n, continuing the recursion using the eighth code table as the first code table;
otherwise,ending the recursion. - View Dependent Claims (17, 18)
-
Specification