Clock signal multiplexer device and clock switching method

By using the logic control of the selection signal and enable signal in the clock signal multiplexer, combined with the gate control and synchronization circuit, the problem of sharp waves and deadlocks when switching clock signals is solved, and the effect of no sharp waves and infinite speed switching is achieved .

CN113783564BActive Publication Date: 2024-09-13REALTEK SEMICON CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202010523297.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-10
Publication Date
2024-09-13
Estimated Expiration
2040-06-10

AI Technical Summary

Technical Problem

Existing clock signal multiplexers are prone to generate sharp waves and dead ends when switching clock signals, and the switching speed is limited by slower clock signals and cannot correctly output faster clock signals.

Method used

Using a clock signal multiplexer device including the first and second control circuit systems and the output circuit system, through the logical control of the selection signal and the enable signal, it is ensured that no spikes are generated during the switching process, and the system does not rely on additional independent clock signals avoid dead ends. The device includes a gate control circuit and a synchronization circuit, and uses the logical relationship between the inversion of the selection signal and the enable signal to determine the output of the clock signal.

Benefits of technology

It achieves spike-free switching, avoids deadlocks, and is not limited by slower clock signals, ensuring stable output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113783564B
    Figure CN113783564B
Patent Text Reader

Abstract

The present application relates to a clock signal multiplexer device and a clock switching method. The clock signal multiplexer device includes a first control circuit system, a second control circuit system and an output circuit system. The first control circuit system generates a first enable signal and a first signal according to a first clock signal and a first selection signal, and determines whether to output the first signal as a first output clock signal according to a second selection signal and a second enable signal, wherein the first selection signal is inverted to the second selection signal. The second control circuit system generates a second enable signal and a second signal according to a second clock signal and a second selection signal, and determines whether to output the second signal as a second output clock signal according to the first selection signal and the first enable signal. The output circuit system outputs one of the first output clock signal and the second output clock signal as a final clock signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a clock signal multiplexer device, and more particularly to a glitch-free, deadlock-avoiding clock signal multiplexer device and a clock switching method. Background Art

[0002] In some related arts, the spikeless clock signal multiplexer utilizes a plurality of synchronous circuits connected in series to process a plurality of clock signals in sequence to output one of the clock signals. These clock signals are called the optional output clock signals of this multiplexer. In these technologies, in order to achieve the purpose of spikeless, when the clock signal multiplexer is switched from outputting a slower first clock signal to outputting a faster second clock signal, due to its cascade circuit structure, the switching speed of the clock signal multiplexer will be limited by the slower first clock signal, or by another independent clock signal. In addition, in these technologies, in the above-mentioned switching process, if the signal source generating the first clock signal suddenly stops outputting the first clock signal or another independent clock signal stops, the operation of the clock signal multiplexer will have a deadlock and cannot correctly output the second clock signal. Summary of the invention

[0003] In some embodiments, the clock signal multiplexer device includes a first control circuit system, a second control circuit system, and an output circuit system. The first control circuit system is used to generate a first enable signal and a first signal according to a first clock signal and a first selection signal, and to determine whether to output the first signal as a first output clock signal according to a second selection signal and a second enable signal, wherein the first selection signal is inverted to the second selection signal. The second control circuit system is used to generate a second enable signal and a second signal according to a second clock signal and a second selection signal, and to determine whether to output the second signal as a second output clock signal according to the first selection signal and the first enable signal. The output circuit system is used to output one of the first output clock signal and the second output clock signal as a final clock signal.

[0004] In some embodiments, the clock switching method includes the following operations: generating a first enable signal and a first signal according to a first clock signal and a first selection signal, and determining whether the first signal is output as a first output clock signal according to a second selection signal and a second enable signal, wherein the first selection signal is inverted to the second selection signal; generating a second enable signal and a second signal according to a second clock signal and a second selection signal, and determining whether to output the second signal as a second output clock signal according to the first selection signal and the first enable signal; and outputting one of the first output clock signal and the second output clock signal as a final clock signal.

[0005] The clock signal multiplexer device and clock switching method in some embodiments of the present application can achieve the effect of spike-free switching, without the need for an additional independent clock signal, and can avoid deadlocks without being limited to a slower clock signal. The features, implementation and efficacy of the present application are now described in detail with reference to the preferred embodiments of the drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] [ Figure 1 ] is a schematic diagram showing a clock signal multiplexer device according to some embodiments of the present application;

[0007] [ Figure 2 ] is shown according to some embodiments of the present application Figure 1 A circuit diagram of a clock signal multiplexer device;

[0008] [ Figure 3 ] is shown according to some embodiments of the present application Figure 2 Waveform diagram of part of the signal;

[0009] [ Figure 4 ] is shown according to some embodiments of the present application Figure 2 Waveform diagram of part of the signal; and

[0010] [ Figure 5 ] is a flowchart showing a clock switching method according to some embodiments of the present application. DETAILED DESCRIPTION

[0011] All words used herein have their ordinary meanings. The definitions of the above words in commonly used dictionaries and the use examples of any words discussed herein included in the content of this application are only examples and should not limit the scope and meaning of this application. Similarly, this application is not limited to the various embodiments shown in this specification.

[0012] As used herein, "coupling" or "connection" may refer to two or more components making direct physical or electrical contact with each other, or making indirect physical or electrical contact with each other, or may refer to two or more components operating or acting on each other. As used herein, the term "circuitry" may be a single system formed by at least one circuit, and the term "circuit" may be a device that is connected in a certain manner by at least one transistor and / or at least one active and passive component to process signals. The term "gating circuit" may be a device that is connected in a certain manner by one or more logic gates to process signals.

[0013] As used herein, the term "and / or" includes any combination of one or more of the listed associated items. In this document, the terms first, second, and third are used to describe and distinguish each component. Therefore, the first component in this document may also be referred to as the second component without departing from the original intention of this application. For ease of understanding, similar components in each figure will be designated with the same reference numeral.

[0014] Figure 1 A schematic diagram of a clock signal multiplexer device 100 is shown according to some embodiments of the present application. The clock signal multiplexer device 100 can output one of the clock signal CLK0 and the clock signal CLK1 as the final clock signal CLKF according to the selection signal SEL. For example, if the selection signal SEL has a logic value of 0, the clock signal multiplexer device 100 outputs the clock signal CLK0 as the final clock signal CLKF. If the selection signal SEL has a logic value of 1, the clock signal multiplexer device 100 outputs the clock signal CLK1 as the final clock signal CLKF. In some embodiments, the frequency of the clock signal CLK0 is lower than the frequency of the clock signal CLK1.

[0015] Figure 2 To illustrate some embodiments of the present application Figure 1 Schematic diagram of a circuit of a clock signal multiplexer device 100. The clock signal multiplexer device 100 includes a control circuit system 220, a control circuit system 240, and an output circuit system 260. The control circuit system 220 generates an enable signal EN0 and a signal S10 according to the clock signal CLK0 and the selection signal SELB, and then determines whether to output the signal S10 as the output clock signal CK-0 according to the selection signal SEL and the enable signal EN1. The control circuit system 240 generates an enable signal EN1 and a signal S11 according to the clock signal CLK1 and the selection signal SEL, and then determines whether to output the signal S11 as the output clock signal CK-1 according to the selection signal SELB and the enable signal EN0. The output circuit system 260 outputs one of the output clock signal CK-0 and the output clock signal CK-1 as the final clock signal CLKF. In some embodiments, the output circuit system 260 can be implemented by an OR gate circuit.

[0016] In some embodiments, the selection signal SEL is inverted to the selection signal SELB. In other words, if the selection signal SEL is a logic value 1 (or a logic value 0), the selection signal SELB is a logic value 0 (or a logic value 1). In some embodiments, the clock signal multiplexer device 100 may include an inverter circuit (not shown) for generating the selection signal SELB according to the selection signal SEL.

[0017] The control circuit system 220 includes a gate control circuit 222, a gate control circuit 224, and an AND gate control circuit 226. The gate control circuit 222 generates an enable signal EN0 according to the clock signal CLK0 and the selection signal SELB, and outputs the clock signal CLK0 as a signal S00 according to the enable signal EN0. The gate control circuit 222 can be used to eliminate the glitch of the clock signal CLK0. For example, the gate control circuit 222 includes a synchronization circuit 222A and an AND gate circuit 222B. The synchronization circuit 222A can receive the selection signal SELB according to the clock signal CLK0 and generate the enable signal EN0. In some embodiments, the synchronization circuit 222A includes a flip-flop circuit F01 and a flip-flop circuit F02 connected in series. The flip-flop circuit F01 is triggered according to the rising edge of the clock signal CLK0 to receive the selection signal SEL. The input end of the flip-flop circuit F02 is coupled to the output end of the flip-flop circuit F01, and the flip-flop circuit F02 is triggered according to the falling edge of the clock signal CLK0 to generate the enable signal EN0. The AND gate circuit 222B can generate the signal S00 according to the enable signal EN0 and the clock signal CLK0. In other words, when the enable signal EN0 is a logic value 1, the AND gate circuit 222B can output the clock signal CLK0 as the signal S00. When the enable signal EN0 is a logic value 0, the AND gate circuit 222B does not output the clock signal CLK0 as the signal S00, and generates the signal S00 with a logic value of 0.

[0018] The gating circuit 224 determines whether to mask the signal S00 to generate the signal S10 according to the selection signal SELB. The gating circuit 224 can be implemented by one or more logic circuits. For example, the gating circuit 224 can be an integrated clock gating (ICG) circuit. When the selection signal SELB is a logic value of 1, the gating circuit 224 can output the signal S00 as the signal S10. When the selection signal SELB is a logic value of 0, the gating circuit 224 is triggered by the rising edge of the signal S00 and outputs the logic value 0 of the selection signal SELB as the signal S10, that is, the gating circuit 224 can mask a rising edge of the signal S00 to generate the signal S10. With the above setting, it can be ensured that the signal S10 is asserted at its rising edge when the clock signal CLK0 is selected, and it can be ensured that the signal S10 is de-asserted at its falling edge when the clock signal CLK0 is not selected. In this way, the surge generated during the switching of the clock signal can be avoided.

[0019] The gating circuit 226 determines whether to output the signal S10 as the output clock signal CK-0 according to the selection signal SEL and the enable signal EN1. In some embodiments, the gating circuit 226 includes a NAND gate circuit 226A and an AND gate circuit 226B. The NAND gate circuit 226A generates the signal S20 according to the selection signal SEL and the enable signal EN1. The AND gate circuit 226B generates the output clock signal CK-0 according to the signal S20 and the signal S10. When the signal S20 has a logic value of 1, the AND gate circuit 226B outputs the signal S10 as the output clock signal CK-0. When the signal S20 has a logic value of 0, the AND gate circuit 226B does not output the signal S10 as the output clock signal CK-0, and outputs the output clock signal CK-0 having a logic value of 0.

[0020] In some embodiments, the control circuit system 240 has the same circuit structure as the control circuit system 220. That is, the control circuit system 240 includes a gate control circuit 242, a gate control circuit 244, and a gate control circuit 246, which correspond to the gate control circuit 222, the gate control circuit 224, and the gate control circuit 226, respectively. The gate control circuit 242 generates an enable signal EN1 according to the clock signal CLK1 and the selection signal SEL, and then outputs the clock signal CLK1 as a signal S01 according to the enable signal EN1. The gate control circuit 242 can be used to eliminate the surge of the clock signal CLK1. For example, the gate control circuit 242 includes a synchronization circuit 242A and an AND gate circuit 242B. The synchronization circuit 242A can receive the selection signal SEL according to the clock signal CLK1 and generate the enable signal EN1. In some embodiments, the synchronization circuit 242A includes a flip-flop circuit F11 and a flip-flop circuit F12 connected in series. The flip-flop circuit F11 is triggered according to the rising edge of the clock signal CLK1 to receive the selection signal SEL. The input end of the flip-flop circuit F12 is coupled to the output end of the flip-flop circuit F11, and the flip-flop circuit F12 is triggered according to the falling edge of the clock signal CLK1 to generate the enable signal EN1. The AND gate circuit 242B can generate the signal S01 according to the enable signal EN1 and the clock signal CLK1. In other words, when the enable signal EN1 is a logic value 1, the AND gate circuit 242B can output the clock signal CLK1 as the signal S01. When the enable signal EN1 is a logic value 0, the AND gate circuit 242B may not output the clock signal CLK1 as the signal S01, and generate the signal S01 with a logic value of 0.

[0021] The gating circuit 244 determines whether to shield the signal S01 to generate the signal S11 according to the selection signal SEL. The gating circuit 244 can be an integrated clock gating circuit. When the selection signal SEL is a logic value of 1, the gating circuit 244 can output the signal S01 as the signal S11. When the selection signal SEL is a logic value of 0, the gating circuit 244 outputs the logic value 0 of the selection signal SEL as the signal S11 after being triggered by the rising edge of the signal S01, that is, the gating circuit 244 can shield a rising edge of the signal S01 to generate the signal S11. With the above setting, it can be ensured that the signal S11 is effective at its rising edge when the clock signal CLK1 is selected, and it can be ensured that the signal S11 is released at its falling edge when the clock signal CLK1 is not selected. In this way, the surge generated in the process of switching the clock signal can be avoided.

[0022] The gating circuit 246 determines whether to output the signal S11 as the output clock signal CK-1 according to the selection signal SELB and the enable signal EN0. In some embodiments, the gating circuit 246 includes a non-AND gate circuit 246A and an AND gate circuit 246B. The non-AND gate circuit 246A generates the signal S21 according to the selection signal SEL and the enable signal EN0. The AND gate circuit 246B generates the output clock signal CK-1 according to the signal S21 and the signal S11. When the signal S21 has a logic value of 1, the AND gate circuit 246B outputs the signal S11 as the output clock signal CK-1. When the signal S21 has a logic value of 0, the AND gate circuit 246B does not output the signal S11 as the output clock signal CK-1, and outputs the output clock signal CK-1 having a logic value of 0.

[0023] Refer to Figure 2 and Figure 3 , Figure 3 To illustrate some embodiments of the present application Figure 2 The waveform diagram of part of the signal. Figure 3 In the embodiment, time T1 is in the negative half cycle of clock signal CLK0, and clock signal multiplexer device 100 responds to selection signal SEL at time T1 to change output clock signal CLK1 to final clock signal CLKF. Before time T1, clock signal multiplexer device 100 outputs clock signal CLK0 as final clock signal CLKF.

[0024] At time T1, the selection signal SEL changes from a logic value of 0 (e.g., a low level) to a logic value of 1 (e.g., a high level), and the selection signal SELB switches from a logic value of 1 to a logic value of 0. In response to the selection signal SELB, the NAND gate circuit 246A outputs a signal S21 having a logic value of 1, so the AND gate circuit 246B outputs a signal S11 as the output clock signal CK-1. In response to the selection signal SEL, the gating circuit 244 outputs the signal S01 as the signal S11. At time T1, the enable signal EN1 has a logic value of 0. In response to the enable signal EN1, the AND gate circuit 242B outputs a signal S01 having a logic value of 0 (i.e., the clock signal CLK1 is not output as the signal S01). Under this condition, the output clock signal CK-1 (not shown) has a low level.

[0025] At time T1, the enable signal EN1 has a logic value of 0 and the enable signal EN0 has a logic value of 1. In response to the enable signal EN1, the NAND gate circuit 226A outputs a signal S20 having a logic value of 1, so the AND gate circuit 226B outputs a signal S10 as the output clock signal CK-0. In response to the enable signal EN0, the AND gate circuit 222B continues to output the clock signal CLK0 as the signal S00. In response to the selection signal SELB, the gating circuit 224 masks a rising edge P1 of the signal S00 to generate the signal S10, so the signal S10 is fixed to have a logic value of 0. Under this condition, during a period IT1 from time T1 to time T2, the output circuit system 260 generates a final clock signal CLKF having a low level.

[0026] At time T2, the synchronization circuit 242A outputs an enable signal EN1 having a logic value of 1. In response to this enable signal EN1, the AND gate circuit 242B outputs the clock signal CLK1 as a signal S01. Under this condition, the signal S01 is output as an output clock signal CK-1 through the gate circuit 244 and the gate circuit 246, and the output circuit system 260 can output the output clock signal CK-1 as the final clock signal CLKF. In other words, at time T2, the clock signal multiplexer device 100 outputs the clock signal CLK1 as the final clock signal CLKF. In this embodiment, the clock signal multiplexer device 100 changes from outputting the clock signal CLK0 to outputting the clock signal CLK1 according to the control of the control circuit system 240 that processes the clock signal CLK1. In addition, at time T2, in response to this enable signal EN1 and the selection signal SEL, the non-AND gate circuit 226A outputs a signal S20 having a logic value of 0. Under this condition, the output clock signal CK-0 is fixed to have a logic value of 0. Accordingly, the clock signal CLK0 has been gated without affecting the final clock signal CLKF.

[0027] At time T3, the synchronization circuit 222A outputs an enable signal EN0 having a logic value of 0. In response to the enable signal EN0, the AND gate circuit 222B outputs a signal S00 having a logic value of 0. In other words, the AND gate circuit 222B does not output the clock signal CLK0 as the signal S00. At the same time, the gate circuit 224 shields the signal S00. In this way, the signal path that can output the clock signal CLK0 as the final clock signal CLKF is completely closed.

[0028] like Figure 3 As shown, the selection signal SEL (and / or the selection signal SELB) changes state at time T1 to indicate that the output circuit system 260 switches to the output clock signal CLK1, and the level of the final clock signal CLKF in a period IT1 starting from time T1 is determined by the clock signal CLK1. The period IT1 is set to be greater than or equal to the half cycle HP of the clock signal CLK1. During this period IT1, the gate circuit 224 and the gate circuit 226 can prevent the clock signal CLK0 from being output as the final clock signal CLKF. In this way, the process of switching from the output clock signal CLK0 to the output clock signal CLK1 can avoid the generation of surges. After the period IT1, the clock multiplexer device 100 can stably change the output clock signal CLK1 to the final clock signal CLKF. Accordingly, as mentioned above, the duration of the period IT1 is determined by the enable signal EN1, and the enable signal EN1 is determined based on the clock signal CLK1. In other words, the clock signal multiplexer device 100 switches the final clock signal CLKF based on the control of the clock signal to be output (in the above example, the clock signal CLK1 ).

[0029] Refer to Figure 2 and Figure 4 , Figure 4 To illustrate some embodiments of the present application Figure 2 The waveform of part of the signal in the figure. Figure 3 In this example, time T1 is in the positive half cycle of the clock signal CLK0. At time T1, the selection signal SEL changes from logic value 0 to logic value 1, and the selection signal SELB changes from logic value 1 to logic value 0. Figure 4 In the time T1, since the enable signal EN1 has a logic value of 0 (which is the same as Figure 3 ), so the operation of the control circuit system 240 at time T1 is the same as that described above. Figure 3 In other words, at time T1, the gating circuit 244 outputs the signal S01 as the signal S11, and the gating circuit 246 outputs the signal S11 as the output clock signal CK-1.

[0030] Furthermore, compared to Figure 3, the behavior of the control circuit system 220 at time T1 is different. Because the enable signal EN0 has a logic value of 1 at time T1, the gate circuit 222 outputs the clock signal CLK0 as the signal S00. Since the clock signal CLK0 has a logic value of 1 at time T1, the signal S00 also has a logic value of 1 at time T1. As previously described, the gate circuit 224 masks one rising edge of the signal S00 in response to the selection signal SELB having a logic value of 0 to generate the signal S10. Since the signal S00 has a logic value of 1 at time T1, the gate circuit 222 outputs the signal S10 having a logic value of 1. At the same time, the enable signal EN1 has a logic value of 0, so the NAND gate circuit 226A outputs the signal S20 having a logic value of 1, and the AND gate circuit 226B outputs the signal S10 as the output clock signal CK-0 in response to the signal S20. In other words, the gate circuit 226 still outputs the clock signal CLK0 as the final clock signal CLKF at time T1.

[0031] At time T2, the synchronization circuit 242A outputs an enable signal EN1 having a logic value of 1. In response to this enable signal EN1, the AND gate circuit 242B outputs the clock signal CLK1 as a signal S01. At the same time, the non-AND gate circuit 226A outputs a signal S20 having a logic value of 0, and the AND gate circuit 226B accordingly fixedly outputs the output clock signal CK-0 having a logic value of 0, thereby preventing the clock signal CLK0 from affecting the final clock signal CLKF. In addition, at time T2, the signal S01 can be output as the output clock signal CK-1 via the gating circuit 244 and the gating circuit 246, and the output circuit system 260 can output the output clock signal CK-1 as the final clock signal CLKF. In other words, at time T2, the clock signal multiplexer device 100 outputs the clock signal CLK1 as the final clock signal CLKF. The same as Figure 3 In this example, the clock signal multiplexer device 100 outputs the clock signal CLK1 according to the control of the control circuit system 240 that processes the clock signal CLK1. During the period between time T2 and time T3, in response to the selection signal SELB having a logic value of 0, the gating circuit 224 masks a rising edge P2 of the signal S00 to generate the signal S10, so the signal S10 is fixed to have a logic value of 0.

[0032] At time T3, the synchronization circuit 222A outputs an enable signal EN0 having a logic value of 0. In response to the enable signal EN0, the AND gate circuit 222B outputs a signal S00 having a logic value of 0. In other words, the AND gate circuit 222B does not output the clock signal CLK0 as the signal S00. In this way, the signal path that can output the clock signal CLK0 as the final clock signal CLKF is completely closed.

[0033] like Figure 4As shown, the selection signal SEL (and / or the selection signal SELB) changes state at time T1 to instruct the output circuit system 260 to switch to the output clock signal CLK1, and the level of the final clock signal CLKF in a period IT2 starting from time T1 is determined by the clock signal CLK1. The period IT2 is set to be greater than or equal to the half cycle HP of the clock signal CLK1. In this way, the process of switching from the output clock signal CLK0 to the output clock signal CLK1 can avoid the generation of spikes. After the period IT2, the clock multiplexer device 100 can stably change the output clock signal CLK1 to the final clock signal CLKF. Similar to Figure 3 The duration of the period IT1 and the period IT2 is determined by the enable signal EN1, and the enable signal EN1 is determined based on the clock signal CLK1. In other words, the clock signal multiplexer device 100 switches the final clock signal CLKF based on the control of the clock signal to be output (such as the clock signal CLK1).

[0034] Depend on Figure 3 and Figure 4 It can be known that in some embodiments of the present application, when the clock signal multiplexer device 100 changes from outputting the clock signal CLK0 to outputting the clock signal CLK1, the clock signal multiplexer device 100 outputs the clock signal CLK1 as the final clock signal CLKF according to the control of the control circuit system 240 that processes the clock signal CLK1. In the above operation, the clock signal multiplexer device 100 can switch to outputting the clock signal CLK1 without using the originally output clock signal CLK0. In this way, deadlock can be avoided and the device is not limited to the slower clock signal CLK0.

[0035] Figure 5 A flowchart of a clock switching method 500 is shown according to some embodiments of the present application. In operation S510, a first enable signal and a first signal are generated according to a first clock signal and a first selection signal, and a decision is made according to a second selection signal and a second enable signal whether to output the first signal as a first output clock signal, wherein the first selection signal is inverted to the second selection signal.

[0036] In operation S520 , a second enable signal and a second signal are generated according to the second clock signal and the second selection signal, and whether to output the second signal as a second output clock signal is determined according to the first selection signal and the first enable signal.

[0037] In operation S530 , one of the first output clock signal and the second output clock signal is output as a final clock signal.

[0038] The description of the above-mentioned multiple operations can refer to the above-mentioned embodiments, so it is not repeated here. The multiple operations of the above-mentioned clock switching method 500 are only examples, and are not limited to being performed in the order in this example. Without violating the operation mode and scope of the embodiments of the present application, the above-mentioned various operations and / or various steps can be appropriately added, replaced, omitted or performed in a different order.

[0039] In summary, the clock signal multiplexer device and the clock switching method in some embodiments of the present application are not limited to slower clock signals and can avoid the deadlock phenomenon in the switching operation.

[0040] Although the embodiments of the present application are described above, these embodiments are not intended to limit the present application. Those with ordinary knowledge in the technical field may make changes to the technical features of the present application based on the explicit or implicit contents of the present application. All these changes may fall within the scope of patent protection sought by the present application. In other words, the scope of patent protection of the present application shall be subject to the scope of the patent application defined in this specification.

[0041]

Explanation of symbols

[0042] 100: Clock signal multiplexer device

[0043] CLK0, CLK1: clock signal

[0044] CLKF: Final clock signal

[0045] SEL, SELB: selection signal

[0046] 220, 240: Control circuit system

[0047] 222, 224, 226, 242, 244, 246: Gate control circuit

[0048] 222A, 242A: Synchronous circuit

[0049] 222B, 242B, 226B, 246B: AND gate circuit

[0050] 226A, 246A: NOT AND gate circuit

[0051] 260: Output circuit system

[0052] CK-0, CK-1: output clock signal

[0053] EN0, EN1: enable signal

[0054] F01, F02, F03, F11, F12, F13: Flip-flop circuit

[0055] S00, S01, S10, S11, S20, S21: Signal

[0056] T1, T2, T3: Time

[0057] IT1, IT2: Period

[0058] HP: Half cycle

[0059] P1, P2: rising edge

[0060] 500: Clock switching method

[0061] S510, S520, S530: operation.

Claims

1. A clock signal multiplexer device, comprising: A first control circuit system is used to generate a first enable signal and a first signal according to a first clock signal and a first selection signal, and determine whether to output the first signal as a first output clock signal according to a second selection signal and a second enable signal, wherein the first selection signal is inverted to the second selection signal, wherein the first control circuit system comprises: a first gating circuit, configured to generate the first enable signal according to the first clock signal and the first selection signal, and output the first clock signal as a third signal according to the first enable signal; a second gating circuit, for determining whether to shield the third signal to generate the first signal according to the first selection signal; and a third gating circuit, for determining whether to output the first signal as the first output clock signal according to the second selection signal and the second enable signal; a second control circuit system for generating the second enable signal and a second signal according to a second clock signal and the second selection signal, and determining whether to output the second signal as a second output clock signal according to the first selection signal and the first enable signal, wherein the first control circuit system and the second control circuit system have the same circuit structure; and An output circuit system is used to output one of the first output clock signal and the second output clock signal as a final clock signal.

2. The clock signal multiplexer device according to claim 1, wherein the first gating circuit comprises: a synchronization circuit, configured to receive the first selection signal and generate the first enable signal according to the first clock signal; and An AND gate circuit is used to generate the third signal according to the first enable signal and the first clock signal.

3. The clock signal multiplexer device according to claim 2, wherein the synchronization circuit comprises a plurality of flip-flop circuits connected in series, wherein a first flip-flop circuit among the flip-flop circuits is used to be triggered by a rising edge of the first clock signal to receive the first selection signal, and a last flip-flop circuit among the flip-flop circuits is used to be triggered by a falling edge of the first clock signal to generate the first enable signal. 4 . The clock signal multiplexer device according to claim 1 , wherein the second gating circuit is an integrated clock gating circuit, and is used to mask a rising edge of the third signal according to the first selection signal to generate the first signal.

5. The clock signal multiplexer device according to claim 1, wherein the third gating circuit comprises: a NOT-AND gate circuit, configured to generate a fourth signal according to the second selection signal and the second enable signal; and An AND gate circuit is used to generate the first output clock signal according to the fourth signal and the first signal.

6. A clock signal multiplexer device according to claim 1, wherein if the first selection signal changes state at a first time to indicate that the output circuit system switches from outputting the first output clock signal to outputting the second output clock signal, the level of the final clock signal is determined by the second clock signal within a period starting from the first time, wherein the period is greater than or equal to half a cycle of the second clock signal.

7. The clock signal multiplexer device according to claim 1, wherein the output circuit system comprises: An OR gate circuit is used to generate the final clock signal according to the first output clock signal and the second output clock signal.

8. A clock switching method, comprising: A first control circuit system generates a first enable signal and a first signal according to a first clock signal and a first selection signal, and determines whether to output the first signal as a first output clock signal according to a second selection signal and a second enable signal, wherein the first selection signal is inverted to the second selection signal, wherein the first control circuit system comprises: a first gating circuit, configured to generate the first enable signal according to the first clock signal and the first selection signal, and output the first clock signal as a third signal according to the first enable signal; a second gating circuit, for determining whether to shield the third signal to generate the first signal according to the first selection signal; and a third gating circuit, for determining whether to output the first signal as the first output clock signal according to the second selection signal and the second enable signal; generating the second enable signal and a second signal according to a second clock signal and the second selection signal through a second control circuit system, and determining whether to output the second signal as a second output clock signal according to the first selection signal and the first enable signal, wherein the first control circuit system and the second control circuit system have the same circuit structure; and One of the first output clock signal and the second output clock signal is output as a final clock signal through an output circuit system.

Citation Information

Patent Citations

  • Clock switchover device

    CN104076863A

  • Clock dynamic switching circuit and method

    CN104579295A

  • Clock switching device

    CN201917845U

  • Clock signal switching circuit

    JP2005236549A

  • Wide-range glitch-free asynchronous clock switch

    US20140062548A1