Synthesis of Binary Ring Counters of Given Periods

  • Authors:
  • G. B. Fitzpatrick

  • Affiliations:
  • Hughes Aircraft Company, Fullerton, California

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 1960

Quantified Score

Hi-index 0.01

Visualization

Abstract

A number of papers have been written from time to time about logical counters of a certain type which have quite simple logic and have been variously referred to as Binary Ring Counters, Shift Register Counters, Johnson Counters, etc. To my knowledge, most of these papers confine themselves to certain special cases and usually leave the subject with some speculation as to the possibility of generating periods of any desired length by the use of these special types. The point of view of this paper is to consider all possible counters of this general type to see how one would obtain a particular period. Special emphasis is placed on determining the least number of bits, n, required to produce a given period, K.The rules for counting are as follows. If an n-bit counter is in state (an-1, an-2 ···, a2, a1, a0) at a given time, T, then at T + 1 its state is (bn-1, bn-2, ···, b1, b0) where b0 = an-1, bi = ai-1 + cian-1 for i = 1, 2, ···, n - 1. The a's, b's, and c's are all 0's or 1's, the c's being constants, and the indicated operations are carried out using modulo 2 arithmetic. This is equivalent to considering the state of the counter as an (n - 1)th degree polynomial in X, multiplying said polynomial by X and reducing it modulo m(X), where m(X) is a polynomial of degree n which is relatively prime to X. At time T the state of the counter corresponds to: A(X) = an-1Xn-1 + an-2Xn-2 + ··· + a1X + a0. The polynomial which corresponds to the state of the counter at time T + 1 is obtained by forming X·A (X) and reducing, if necessary, modulo m (X) = Xn + cn-1Xn-1 + cn-2Xn-2 + ··· + c1X + 1. Since an-1·m(X) = 0 mod m(X), X·A(X) = X·A(X)+ an-1m(X) mod m(X), so X·A(X) = (an-2 + cn-1·an-1)Xn-1 + (an-3 + cn-2an-1)Xn-2 + ··· + (a0 + c1an-1)X + an-1 = bn-1Xn-1 + bn-2Xn-2 + ··· + b1X + b0. It is well known that more than one possible period may be obtained depending upon the initial state of the counter. Several examples are given by Young [4]. However, starting with X itself will always yield the longest possible period for any given m(X) and, furthermore, any other periods possible will always be divisors of the major period (Theorem I below). Since these minor periods can always be obtained with moduli of lower degree they are of no real interest here, and throughout the remainder of this paper the expression “period of the counter” will be assumed to refer to the major period.The set of all polynomials whose coefficients are the integers modulo 2 is the polynomial domain GF(2, X), which has among other things unique factorization into primes (irreducibles). If m(X) is in GF(2, X), then GF(2, X) modulo m(X) is a commutative ring. Thus it is closed under multiplication, but it may have proper divisors of zero. However, any element which is relatively prime to m(X) in GF(2, X) has an inverse in GF(2, X)/m(X) [1].