Clock signal monitoring unit
AssigneeNXP B.V.
InventorsAndreas Lentz, David Paul Price
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a clock signal monitoring unit comprising first, second and third flip-flops, first and second XOR gates and a delay element being functionally interconnected in a specific way. The proposed clock signal monitoring unit can detect both a rising edge glitch and a falling edge glitch. In this way there is provided an area saving device, which does not require any trimming efforts, which can save a lot of space and time. Furthermore, the clock signal monitoring unit can have low electric power consumption because it uses as few as four clocked flip-flops implemented via Register Transfer Logic having an already tuned delay element. This makes it useful for designs that use both edges of the clock for correct operation.
Claims9
An electronic circuit configured to detect a timing glitch in a digital clock signal, the circuit comprising:
- a first flip-flop having a first data input, a first flip-flop output, a complementary output;
- and a first clock signal input configured to receive the digital clock signal;
- a second flip-flop having a second data input, a second flip-flop output, and a second clock signal input configured to receive an inverted clock signal that is a complement of the digital clock signal;
- a third flip-flop having a third data input, a third flip-flop output;
- and a third clock signal input configured to receive the digital clock signal;
- a fourth flip-flop having a fourth data input, a fourth flip-flop output, and a fourth clock signal input configured to receive the inverted clock signal;
- a first XOR gate configured to generate a first XOR output corresponding to an XOR of the first flip-flop output with the second flip-flop output;
- a delay element having an input and an output, the delay element configured to produce a delayed output signal corresponding to the first XOR output that is delayed by an amount of time equal to a predetermined fraction of a period of the digital clock signal;
- wherein the complementary output is coupled to the second data input of the second flip-flop, and the second flip-flop output is coupled to the first data input of the first flip-flop;
- wherein the delayed output signal is coupled to the third data input of the third flip-flop and to the fourth data input of the fourth flip-flop;
- wherein the electronic circuit further comprises a second XOR gate configured to generate a second XOR output corresponding to an XOR of the third flip-flop output with a complement of the fourth flip-flop output;
- and
- wherein a value of the second XOR output indicates whether the timing glitch has occurred in the digital clock signal.
A method of detecting a timing glitch in a digital circuit, the method comprising:
- providing a clock signal to a clock signal input of a first flip-flop;
- providing an inverted clock signal that is a complement of the clock signal to a clock signal input of a second flip-flop;
- providing a first output of the first flip-flop as an input to the second flip-flop and providing an output of the second flip-flop as an input to the first flip-flop;
- providing a second output of the first flip-flop and the output of the second flip-flop as first and second inputs to a first XOR gate configured to generate a first XOR output corresponding to an XOR of the second output of the first flip-flop with the output of the second flip-flop;
- providing the first XOR output as an input to a delay element configured to produce a delayed output signal corresponding to the first XOR output, wherein the delayed output signal corresponds to a version of the first XOR output that is delayed by an amount of time equal to a predetermined fraction of a period of the clock signal;
- providing the delayed output signal as a data input to a third flip-flop that is clocked using the clock signal, and providing the delayed output signal as a data input to a fourth flip-flop that is clocked using the inverted clock signal;
- providing an output of the third flip-flop and an output of the fourth flip-flop as first and second inputs to a second XOR gate configured to generate a second XOR output corresponding to a XOR of the output of the third flip-flop with a complement of the output of the fourth flip-flop;
- and
- wherein the second XOR output is configured to produce a glitch detection signal that has a first value indicating that the timing glitch is detected and that has a second value indicating that the timing glitch has not been detected.
A clock signal monitoring unit, comprising:
- a first XOR gate with a first XOR input, a second XOR input, and a first XOR output;
- a second XOR gate having a third XOR input, an inverted XOR input, and a second XOR output that is configured to provide a glitch detect signal having a value that indicates whether a glitch has been detected in a clock signal;
- a first flip-flop having a first data input, a first flip-flop output coupled to the first XOR input of the first XOR gate, a complementary output, and a first clock signal input, wherein the first flip-flop is configured to be clocked through the first clock signal input by the clock signal;
- a second flip-flop having a second data input coupled to the complementary output, a second flip-flop output coupled to the first data input and to the second XOR input of the first XOR gate, and a second clock signal input, wherein the second flip-flop is configured to be clocked through the second clock signal input by an inverted clock signal that is a complement of the clock signal;
- a third flip-flop that is configured to be clocked by the clock signal, wherein the third flip-flop has a third data input and a third flip-flop output, wherein the third flip-flop output is connected to the third XOR input of the second XOR gate;
- a fourth flip-flop that is configured to be clocked by the inverted clock signal, wherein the fourth flip-flop has a fourth data input and a fourth flip-flop output, wherein the fourth flip-flop output is connected to the inverted XOR input of the second XOR gate;
- and
- a delay element connected to the first XOR output of the first XOR gate, wherein the delay element has a delay element output connected to the third data input of the third flip-flop and to the fourth data input of the fourth flip-flop, and the delay element is configured to delay a signal produced at the first XOR output of the first XOR gate by a specified amount of time, wherein the specified amount of time is a predetermined fraction of a period of the clock signal.
Dependencies are inferred from the claim text.