# US 2023/0421144 A1 · Clock switching device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0421144 A1
- Document ID: US20230421144A1
- Status: Published application
- Kind: A1
- Application number: 17/938,948
- Filed: 2022-09-07
- Published: 2023-12-28
- Earliest claimed: 2022-06-23
- Assignees: Nuvoton Technology Corporation
- Applicants: Nuvoton Technology Corporation
- Inventors: Chun-Wei Lin
- Web page: https://patentgrep.com/patent/US20230421144A1

## CPC

- G06F 1/06: Clock generators producing several clock signals {(G06F1/08 - G06F1/14 take precedence)}
- H03K 17/005: {with several inputs only}
- G06F 1/04: Generating or distributing clock signals or signals derived directly therefrom
- G06F 1/08: Clock generators with changeable or programmable clock frequency
- H03K 3/037: Bistable circuits
- H03K 19/20: characterised by logic function, e.g. AND, OR, NOR, NOT circuits (H03K19/003 - H03K19/01 take precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

Provided is a clock switching device including a first latch circuit, a second latch circuit, and a switching circuit. The first latch circuit latches a first selection signal based on triggering of a first clock signal. The second latch circuit latches a second selection signal based on triggering of a second clock signal. A reset terminal of the second latch circuit is coupled to the first latch circuit. The second latch circuit is selectively reset based on an output of the first latch circuit. The switching circuit is coupled to an output terminal of the first latch circuit and an output terminal of the second latch circuit. The switching circuit selects one of the clock signals as an output clock signal of the clock switching device based on the selection signals.

## Claims

### Claim 1

A clock switching device comprising:
a first latch circuit configured to latch a first selection signal among a plurality of selection signals based on triggering of a first clock signal among a plurality of clock signals;
a second latch circuit configured to latch a second selection signal among the selection signals based on triggering of a second clock signal among the clock signals, wherein a reset terminal of the second latch circuit is coupled to the first latch circuit, and the second latch circuit is selectively reset based on an output of the first latch circuit; and
a switching circuit coupled to an output terminal of the first latch circuit and an output terminal of the second latch circuit, wherein the switching circuit selects one of the clock signals as an output clock signal of the clock switching device based on the selection signals.

### Claim 2 (depends on 1)

The clock switching device according to claim 1, wherein the first latch circuit comprises:
a flip-flop having an input terminal configured to receive the first selection signal, wherein a first output terminal of the flip-flip is coupled to the switching circuit to provide the first selection signal, a second output terminal of the flip-flip is coupled to the reset terminal of the second latch circuit to reset the second latch circuit, and a trigger terminal of the flip-flip receives the first clock signal.

### Claim 3 (depends on 1)

The clock switching device according to claim 1, wherein the first latch circuit comprises:
a first flip-flop having an input terminal configured to receive the first selection signal, wherein a trigger terminal of the first flip-flop receives the first clock signal; and
a second flip-flop having an input terminal coupled to an output terminal of the first flip-flop, wherein a first output terminal of the second flip-flop is coupled to the switching circuit to provide the first selection signal, one of a second output terminal and the first output terminal of the second flip-flop is coupled to the reset terminal of the second latch circuit to reset the second latch circuit, and a trigger terminal of the second flip-flop receives the first clock signal.

### Claim 4 (depends on 1)

The clock switching device according to claim 1, wherein the first latch circuit comprises:
a first flip-flop having an input terminal configured to receive the first selection signal, wherein a trigger terminal of the first flip-flop receives the first clock signal;
an AND gate having an output terminal coupled to the switching circuit, wherein a first input terminal of the AND gate receives the first clock signal; and
a second flip-flop having an input terminal coupled to an output terminal of the first flip-flop, wherein a first output terminal of the second flip-flop is coupled to a second input terminal of the AND gate to provide the first selection signal, one of a second output terminal and the first output terminal of the second flip-flop is coupled to the reset terminal of the second latch circuit to reset the second latch circuit, and a trigger terminal of the second flip-flop receives the first clock signal.

### Claim 5 (depends on 3)

The clock switching device according to claim 3, wherein one of the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop is a rising-edge trigger terminal, and the other one of the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop is a falling-edge trigger terminal.

### Claim 6 (depends on 3)

The clock switching device according to claim 3, wherein the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop are each a rising-edge trigger terminal or a falling-edge trigger terminal.

### Claim 7 (depends on 4)

The clock switching device according to claim 4, wherein one of the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop is a rising-edge trigger terminal, and the other one of the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop is a falling-edge trigger terminal.

### Claim 8 (depends on 4)

The clock switching device according to claim 4, wherein the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop are each a rising-edge trigger terminal or a falling-edge trigger terminal.

### Claim 9 (depends on 1)

The clock switching device according to claim 1, wherein the second latch circuit comprises:
a flip-flop having an input terminal configured to receive the second selection signal, wherein an output terminal of the flip-flop is coupled to the switching circuit to provide the second selection signal, a reset terminal of the flip-flop is coupled to the first latch circuit, and a trigger terminal of the flip-flop receives the second clock signal.

### Claim 10 (depends on 1)

The clock switching device according to claim 1, wherein the second latch circuit comprises:
a first flip-flop having an input terminal configured to receive the second selection signal, wherein a trigger terminal of the first flip-flop receives the second clock signal, and a reset terminal of the first flip-flop is coupled to the first latch circuit; and
a second flip-flop having an input terminal coupled to an output terminal of the first flip-flop, wherein an output terminal of the second flip-flop is coupled to the switching circuit to provide the second selection signal, a reset terminal of the second flip-flop is coupled to the first latch circuit, and a trigger terminal of the second flip-flop receives the second clock signal.

### Claim 11 (depends on 1)

The clock switching device according to claim 1, wherein the second latch circuit comprises:
a first flip-flop having an input terminal configured to receive the second selection signal, wherein a trigger terminal of the first flip-flop receives the second clock signal, and a reset terminal of the first flip-flop is coupled to the first latch circuit;
an AND gate having an output terminal coupled to the switching circuit, wherein a first input terminal of the AND gate receives the second clock signal; and
a second flip-flop having an input terminal coupled to an output terminal of the first flip-flop, wherein an output terminal of the second flip-flop is coupled to a second input terminal of the AND gate to provide the second selection signal, a reset terminal of the second flip-flop is coupled to the first latch circuit, and a trigger terminal of the second flip-flop receives the second clock signal.

### Claim 12 (depends on 10)

The clock switching device according to claim 10, wherein one of the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop is a rising-edge trigger terminal, and the other one of the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop is a falling-edge trigger terminal.

### Claim 13 (depends on 10)

The clock switching device according to claim 10, wherein the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop are each a rising-edge trigger terminal or a falling-edge trigger terminal.

### Claim 14 (depends on 11)

The clock switching device according to claim 11, wherein one of the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop is a rising-edge trigger terminal, and the other one of the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop is a falling-edge trigger terminal.

### Claim 15 (depends on 11)

The clock switching device according to claim 11, wherein the trigger terminal of the first flip-flop and the trigger terminal of the second flip-flop are each a rising-edge trigger terminal or a falling-edge trigger terminal.

### Claim 16 (depends on 1)

The clock switching device according to claim 1, wherein the switching circuit comprises:
a first clock gating cell having a control terminal coupled to the first latch circuit to receive the first selection signal, wherein an input terminal of the first clock gating cell receives the first clock signal;
a second clock gating cell having a control terminal coupled to the second latch circuit to receive the second selection signal, wherein an input terminal of the second clock gating cell receives the second clock signal; and
an OR gate having a first input terminal and a second input terminal respectively coupled to an output terminal of the first clock gating cell and an output terminal of the second clock gating cell, wherein an output terminal of the OR gate outputs the output clock signal of the clock switching device.

### Claim 17 (depends on 1)

The clock switching device according to claim 1, wherein the switching circuit comprises:
a multiplexer having a first input terminal coupled to the output terminal of the first latch circuit, wherein a second input terminal of the multiplexer is coupled to the output terminal of the second latch circuit, and an output terminal of the multiplexer outputs the output clock signal of the clock switching device.

### Claim 18 (depends on 1)

The clock switching device according to claim 1, further comprising:
a third latch circuit configured to latch a third selection signal among the selection signals based on triggering of a third clock signal among the clock signals, wherein an output terminal of the third latch circuit is coupled to the switching circuit, a reset terminal of the third latch circuit is coupled to the first latch circuit, and the third latch circuit is selectively reset based on the output of the first latch circuit.
