Patent ID: 7366275

Claim:
A variable-precision counter comprising: a plurality of storage elements to store a multi-bit count value, each of the storage elements having a toggle input coupled to receive a corresponding one of a plurality of toggle signals, each of the storage elements being adapted to toggle a respective bit of the multi-bit count value when the corresponding one of the plurality of toggle signals is in a first state; a control circuit to generate the plurality of toggle signals and having a first input to receive a precision control value, the control circuit being adapted to output each of the toggle signals in one of the first state and a second state based, at least in part, on the precision control value; and an input to receive a direction signal, and wherein the control circuit is adapted to generate the plurality of toggle signals to increase the multi-bit count value when the direction signal is in an increment state and to decrease the multi-bit count value when the direction signal is in a decrement state.