# US 2025/0208644 A1 · Switching circuit and clock supply circuit

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

- Number: US 2025/0208644 A1
- Document ID: US20250208644A1
- Status: Published application
- Kind: A1
- Application number: 18/971,514
- Filed: 2024-12-06
- Published: 2025-06-26
- Earliest claimed: 2023-12-22
- Assignees: Nuvoton Technology Corporation
- Applicants: Nuvoton Technology Corporation
- Inventors: Yung-Chi LAN
- Web page: https://patentgrep.com/patent/US20250208644A1

## CPC

- G06F 1/08: Clock generators with changeable or programmable clock frequency
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A switching circuit coupled to a first oscillator circuit and a second oscillator is provided. The first oscillator circuit generates a first clock signal according to a first enable signal. The second oscillator generates a second clock signal according to a second enable signal. The switching circuit uses the first or second clock signal as an output clock according to a detection signal. The switching circuit includes a first D-type flip-flop and a second D-type flip-flop. The first D-type flip-flop includes a first reset terminal receiving the first enable signal. The second D-type flip-flop includes a second reset terminal receiving the second enable signal.

## Claims

### Claim 1

A switching circuit coupled to a first oscillator circuit, which generates a first clock signal according to a first enable signal, and a second oscillator, which generates a second clock signal according to a second enable signal, comprising:
a detection circuit detecting a third enable signal and a fourth enable signal to generate a detection signal;
a first inverter inverting a selection signal to generate a first inverted signal;
a first determination circuit outputting the first inverted signal in response to the detection signal being at a specific level;
a first D-type flip-flop receiving the first inverted signal and using the first inverted signal as the third enable signal according to the first clock signal;
a second determination circuit outputting the selection signal in response to the detection signal being at the specific level;
a second D-type flip-flop receiving the selection signal and using the selection signal as the fourth enable signal according to the second clock signal; and
a clock gating circuit using the first or second clock signal as an output clock according to the third and fourth enable signals,
wherein:
the first D-type flip-flop comprises a first reset terminal receiving the first enable signal, and
the second D-type flip-flop comprises a second reset terminal receiving the second enable signal.

### Claim 2 (depends on 1)

The switching circuit as claimed in claim 1, further comprising:
a second inverter inverting the first clock signal to generate a second inverted signal;
a third D-type flip-flop coupled between the first D-type flip-flop and the clock gating circuit and using the third enable signal as a first delayed signal according to the second inverted signal;
a third inverter inverting the second clock signal to generate a third inverted signal; and
a fourth D-type flip-flop coupled between the second D-type flip-flop and the clock gating circuit and using the fourth enable signal as a second delayed signal according to the third inverted signal.

### Claim 3 (depends on 2)

The switching circuit as claimed in claim 2, wherein the third D-type flip-flop comprises a third reset terminal receiving the first enable signal, and the fourth D-type flip-flop comprises a fourth reset terminal receiving the second enable signal.

### Claim 4 (depends on 2)

The switching circuit as claimed in claim 2, wherein the clock gating circuit comprises:
a first AND gate determining whether to use the first clock signal as a first output signal according to the first delayed signal;
a second AND gate determining whether to use the second clock signal as a second output signal according to the second delayed signal; and
a first OR gate generating the output clock according to the first and second output signals.

### Claim 5 (depends on 1)

The switching circuit as claimed in claim 1, wherein the detection circuit comprises:
a NOR gate generating the detection signal according to the third and fourth enable signals.

### Claim 6 (depends on 5)

The switching circuit as claimed in claim 5, wherein the first determination circuit comprises:
a third AND gate generating a third output signal according to the detection signal and the first inverted signal;
a second OR gate generating a first control signal according to the third output signal and a first processed signal; and
a first multiplexer providing the third enable signal or the third output signal to the first D-type flip-flop according to the first control signal,
wherein the first processed signal is the same as the selection signal.

### Claim 7 (depends on 6)

The switching circuit as claimed in claim 6, further comprising:
a fourth inverter inverting the first inverted signal to generate the first processed signal.

### Claim 8 (depends on 7)

The switching circuit as claimed in claim 7, wherein the second determination circuit comprises:
a fourth AND gate generating a fourth output signal according to the detection signal and the selection signal;
a third OR gate generating a second control signal according to the fourth output signal and a second processed signal; and
a second multiplexer providing the fourth enable signal or the fourth output signal to the second D-type flip-flop according to the second control signal.

### Claim 9 (depends on 8)

The switching circuit as claimed in claim 8, further comprising:
a fifth inverter inverting the selection signal to generate the second processed signal.

### Claim 10 (depends on 1)

The switching circuit as claimed in claim 1, further comprising:
a first logic gate providing a first reset signal to the first reset terminal according to the first enable signal and a power-on reset signal; and
a second logic gate providing a second reset signal to the second reset terminal according to the second enable signal and the power-on reset signal.

### Claim 11

A clock supply circuit providing an output clock according to a selection signal and comprising:
a first oscillator circuit generating a first clock signal according to a first enable signal;
a second oscillator circuit generating a second clock signal according to a second enable signal; and
a switching circuit using the first or second clock signal as the output clock according to the selection signal and comprising:
a detection circuit detecting a third enable signal and a fourth enable signal to generate a detection signal;
an inverter inverting the selection signal to generate a first inverted signal;
a first determination circuit outputting the first inverted signal in response to the detection signal being at a specific level;
a first D-type flip-flop receiving the first inverted signal and using the first inverted signal as the third enable signal according to the first clock signal;
a second determination circuit outputting the selection signal in response to the detection signal being at the specific level;
a second D-type flip-flop receiving the selection signal and using the selection signal as the fourth enable signal according to the second clock signal; and
a clock gating circuit using the first or second clock signal as the output clock according to the third and fourth enable signals,
wherein:
the first D-type flip-flop comprises a first reset terminal receiving the first enable signal, and
the second D-type flip-flop comprises a second reset terminal receiving the second enable signal.

### Claim 12 (depends on 11)

The clock supply circuit as claimed in claim 11, wherein:
in response to the first enable signal being at the specific level, the first oscillator circuit generates the first clock signal, and
in response to the first enable signal not being at the specific level, the first oscillator circuit stops generating the first clock signal.

### Claim 13 (depends on 11)

The clock supply circuit as claimed in claim 11, further comprising:
a first logic gate providing a first reset signal to the first reset terminal according to the first enable signal and a power-on reset signal; and
a second logic gate providing a second reset signal to the second reset terminal according to the second enable signal and the power-on reset signal.

### Claim 14 (depends on 13)

The clock supply circuit as claimed in claim 13, wherein: in response to the power-on reset signal not being at the specific level:
the first logic gate uses the power-on reset signal as the first reset signal, and
the second logic gate uses the power-on reset signal as the second reset signal.

### Claim 15 (depends on 11)

The clock supply circuit as claimed in claim 11, wherein in response to a level of the first reset terminal not being at the specific level, the first D-type flip-flop sets the third enable signal so that it is not equal to the specific level.

### Claim 16 (depends on 11)

The clock supply circuit as claimed in claim 11, wherein the detection circuit comprises:
a NOR gate coupled to the first D-type flip-flop and the second D-type flip-flop to receive the third and fourth enable signals,
wherein in response to the third and fourth enable signals not being at the specific level, the NOR gate sets the detection signal to the specific level.

### Claim 17 (depends on 11)

The clock supply circuit as claimed in claim 11, further comprising:
a synchronization circuit coupled to the first determination circuit, the second determination circuit and the clock gating circuit.

### Claim 18 (depends on 17)

The clock supply circuit as claimed in claim 17, wherein the synchronization circuit comprises:
a second inverter inverting the first clock signal to generate a second inverted signal;
a third D-type flip-flop coupled between the first D-type flip-flop and the clock gating circuit and using the third enable signal as a first delayed signal according to the second inverted signal;
a third inverter inverting the second clock signal to generate a third inverted signal; and
a fourth D-type flip-flop coupled between the second D-type flip-flop and the clock gating circuit and using the fourth enable signal as a second delayed signal according to the third inverted signal.

### Claim 19 (depends on 18)

The clock supply circuit as claimed in claim 18, wherein the detection circuit comprises:
a NOR gate coupled to the third D-type flip-flop and the fourth D-type flip-flop to receive the first and second delayed signals,
wherein in response to the first and second delayed signal not being at the specific level, the NOR gate sets the detection signal to the specific level.

### Claim 20 (depends on 11)

The clock supply circuit as claimed in claim 11, wherein: in response to an occurrence of a specific event:
the first enable signal is restored to a first predetermined level, and
the second enable signal is restored to a second predetermined level, the first predetermined level is different from the second predetermined level.
