Claims
- 1. A method for generating a modulo Gray-code representation of a non-power-of-two set of binary values, comprising:
determining a desired Gray-code sequence length; determining a bus width, M, in bits, based on the desired Gray-code sequence length, to represent the generated Gray-code; determining a set of skipped binary values based on the desired Gray-code sequence length and the bus width to obtain the non-power-of-two set of binary values; and representing the non-power-of-two set of binary values as a set of equivalent Gray-code values.
- 2. The method of claim 1, wherein the non-power-of-two set of binary values comprises N values, where N is an even whole number, and wherein the Gray-code sequence length is equal to N.
- 3. The method of claim 2, wherein determining the desired Gray-code sequence length comprises determining the desired depth of a FIFO (first-in-first-out) buffer, and setting N equal to the depth of the FIFO buffer.
- 4. The method of claim 2, wherein determining the bus width M comprises determining the smallest value of 2M that is greater than or equal to N, where M is a positive whole value.
- 5. The method of claim 4, wherein determining the set of skipped binary values comprises:
determining an initial set of 2M sequential binary values; determining a number, S, of binary values to skip, where S=2M-N; eliminating from the initial set of 2M sequential binary values the first S/2 binary values and the last S/2 binary values; and populating the non-power-of-two set of binary values with the remaining sequential binary values.
- 6. The method of claim 4, wherein determining the set of skipped binary values comprises:
determining an initial set of 2M sequential binary values; determining a number, S, of binary values to skip, where S=2M−N; eliminating from the initial set of 2M sequential binary values the middle S binary values; and populating the non-power-of-two set of binary values with the remaining sequential binary values.
- 7. The method of claim 1, further comprising:
determining an initial set of 2M sequential binary values, wherein the non-power-of-two set of binary values is a subset of the initial set of 2M sequential binary values; and generating a Gray-code representation of the initial set of 2M sequential binary values.
- 8. The method of claim 7, wherein the initial set of 2M sequential binary values comprises the values zero through 2M−1.
Parent Case Info
[0001] This patent application is claiming priority under 35 USC § 120 to co-pending patent application entitled A SCALABLE GRAY CODE COUNTER AND APPLICATIONS THEREOF, having a filing date of Dec. 16, 2002 and a Ser. No. 10/320,282.
Continuations (1)
|
Number |
Date |
Country |
Parent |
10320282 |
Dec 2002 |
US |
Child |
10842605 |
May 2004 |
US |