Patent ID: 7129757

Claim:
An electronic system comprising: a first clock having a first frequency; a second clock having a second frequency a clock comparator coupled to the first clock and the second clock, the clock comparator is programmable to compare one or more relationships between the first clock and the second clock; a first register having a first number of latches, the first register configured to be incremented by the first clock in a normal mode, the first register configured to receive a first bit pattern written therein in an initialization mode; a second register having a second number of latches, the second register configured to be incremented by the second clock in the normal mode, the second register configured to receive a second bit pattern written therein in the initialization mode; a comparator that is coupled to the first register and to the second register and is configured to compare a first content of the first register with a second content in the second register, the comparator using a subtract unit configured to determine a difference between the first content in the first register and the second content in the second register, and is configured to output a clock compare output value responsive to the compare; an examine register configured to be loaded with an examine register content; and an examine unit coupled to the subtract unit and the examine register, the examine unit configured to assert one or more signals on the clock control output responsive to an output of the subtract unit and the examine register content.