Patent ID: 8860468

Claim:
A clock multiplexer for providing an output clock signal, comprising: a first input stage for outputting a first clock signal, wherein the first input stage includes, a first flip-flop having an input terminal, a clock input terminal for receiving the first clock signal, and a reset input terminal for receiving a select signal, wherein the first flip-flop outputs a first enable signal at an output terminal thereof; a first latch having an input terminal connected to the output terminal of the first flip-flop for receiving the first enable signal, and a clock input terminal for receiving the first clock signal, wherein the first latch outputs a first output signal at an output terminal thereof and an inverted first output signal at an inverting output terminal thereof; and a first logic gate having a first input terminal that receives the first clock signal and a second input terminal connected to the output terminal of the first latch for receiving the first output signal, wherein the first logic gate outputs the first clock signal based on the first output signal; a second input stage for outputting a second clock signal, wherein the second input state includes, a second flip-flop having an input terminal connected to the inverting output terminal of the first latch for receiving the inverted first output signal, a clock input terminal for receiving the second clock signal, and a reset input terminal for receiving an inverted select signal, wherein the second flip-flop generates a second enable signal at an output terminal thereof; a second latch having an input terminal connected to the output terminal of the second flip-flop for receiving the second enable signal, a clock input terminal for receiving the second clock signal, an output terminal for providing a second output signal, and an inverting output terminal connected to the input terminal of the first flip-flop for providing an inverted second output signal to the input terminal of the first flip-flop; and a second logic gate having a first input terminal that receives the second clock signal and a second input terminal connected to the output terminal of the second latch for receiving the second output signal, wherein the second logic gate outputs the second clock signal based on the second output signal; and a third logic gate connected to the first and second logic gates for outputting at least one of the first and second clock signals.