Clock management unit reinforcing circuit and method, and chip

By using FPGA in the clock management unit to monitor and switch the status of the redundant clock management unit, the high reliability of the clock system and simplified circuit structure are achieved, which solves the complexity and reliability problems of the existing clock management unit reinforced circuit and is suitable for Various FPGA platforms.

CN118733351APending Publication Date: 2024-10-01SHANGHAI FUDAN MICROELECTRONICS GROUP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310333302.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing clock management unit reinforced circuit has a complex structure, high resource overhead, and is susceptible to soft errors triggered by high-energy neutrons, which reduces system reliability and has poor portability.

Method used

Use at least two mutually redundant clock management units combined with the FPGA. The FPGA monitors the status of the clock management unit and automatically switches to the redundant unit when the lock is lost. The global clock buffer is used to implement clock output selection and switching, reducing resources. take up and improve reliability.

Benefits of technology

Simplify the circuit structure, reduce resource overhead, improve the reliability of the clock system, and due to the flexibility of FPGA, it is suitable for various types of FPGA, improve versatility and flexibility, avoid glitches during the switching process, and ensure clock signal quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733351A_ABST
    Figure CN118733351A_ABST
Patent Text Reader

Abstract

The invention discloses a clock management unit reinforcing circuit, a clock management unit reinforcing method and a chip. The circuit comprises at least two mutually redundant clock management units and an FPGA (Field Programmable Gate Array) connected with the clock management units, the clock management unit is configured to access and output the same clock signal; and the FPGA is configured to monitor the states of the two clock management units, select the clock output by one clock management unit from the two clock management units as a working clock, and select the clock output by the other clock management unit as the working clock when one clock management unit loses lock. By utilizing the scheme, the circuit structure can be simplified, the resource overhead is reduced, and the reliability of a clock system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of circuit technology, and in particular to a clock management unit reinforcement circuit and method, and a chip. Background Art

[0002] The clock management module is a global design in the SoC (System on Chip) circuit, and is the basic guarantee for the normal function of the SoC circuit. Due to the input frequency of the chip pins or the requirements of the multi-clock domain planning of the chip itself, the high-frequency clock inside the chip usually needs to be generated by internal frequency multiplication. SoC usually chooses to integrate a phase-locked loop to increase the internal clock signal.

[0003] In some applications with high reliability design requirements, higher requirements are placed on the reliability of the clock management unit. To this end, some reinforcement solutions are usually used to improve the reliability of the clock management module. Traditional clock management unit reinforcement implementation solutions include Figure 1 As shown, the clock management unit reinforcement circuit mainly includes: a main phase-locked loop 1 and an auxiliary phase-locked loop 2, a main delay unit 3 and an auxiliary delay unit 5, an error detection unit 4 and a clock selection unit 6. Among them:

[0004] The main phase-locked loop 1 and the auxiliary phase-locked loop 1 are charge pump phase-locked loops that have not been reinforced for high reliability, and provide clock signal outputs respectively.

[0005] The main delay unit 3 delays the clock signal output by the main phase-locked loop 1 to obtain a delayed output of the main phase-locked loop clock signal; the auxiliary delay unit 5 delays the clock signal output by the auxiliary phase-locked loop 2 to obtain a delayed output of the auxiliary phase-locked loop clock signal.

[0006] The error detection unit 4 detects the two output signals UP and DN of the phase frequency detector in the main phase-locked loop 1 and outputs an indication signal Error. When the two output signals UP and DN of the phase frequency detector are the same, the indication signal Error output by the error detection unit 4 is a first level signal. When the two output signals UP and DN of the phase frequency detector are different, the indication signal Error output by the error detection unit 4 is a second level signal.

[0007] The clock selection unit 6 selects the delayed output of the two phase-locked loops as the final output, the delayed output of the main phase-locked loop clock signal and the delayed output of the auxiliary phase-locked loop clock signal are used as the two clock inputs of the clock selection unit 6, and the indication signal Error output by the error detection unit 4 is used as the control input of the clock selection unit 6. When the indication signal Error of the error detection unit 4 is a first level signal, the clock selection unit 6 selects the delayed output of the main phase-locked loop 1 as the final output, and when the indication signal Error of the error detection unit 4 is a second level signal, the clock selection unit 6 selects the delayed output of the auxiliary phase-locked loop 2 as the final output.

[0008] In the existing clock management unit reinforcement circuit, the error detection unit and the clock selection unit usually need to use multiple registers and logic gates to implement, which has the disadvantages of complex circuit structure and large resource overhead. Moreover, the error detection unit is easily affected by soft errors triggered by high-energy neutrons, which will greatly reduce the reliability of the entire system. In addition, most of the existing clock management unit reinforcement circuits are hardware implementation solutions with poor portability. Summary of the invention

[0009] The embodiment of the present invention provides a clock management unit reinforcement circuit and chip to simplify the circuit structure, reduce resource overhead, and ensure the reliability of the clock system.

[0010] On the one hand, an embodiment of the present invention provides a clock management unit reinforcement circuit, comprising: at least two mutually redundant clock management units, and an FPGA connected to the clock management units;

[0011] The clock management unit is configured to receive and output the same clock signal;

[0012] The FPGA is configured to monitor the status of the two clock management units, select the clock output by one of the clock management units as the working clock according to the status, and select the clock output by the other clock management unit as the working clock when one of the clock management units loses lock.

[0013] Optionally, the FPGA includes a global clock buffer;

[0014] The clock management unit comprises: an input end, an output end, and a locking end; the output end and the locking end are respectively connected to the global clock buffer; the input end inputs an input clock, the output end outputs an output clock, and the locking end outputs a state indication signal;

[0015] The global clock buffer is configured to determine the states of the two clock management units according to state indication signals output by the locking ends of the two clock management units, select the clock output by one of the clock management units as the working clock according to the state, and select the clock output by the other clock management unit as the working clock when one of the clock management units loses lock.

[0016] Optionally, the global clock buffer includes a first clock input terminal (I0), a second clock input terminal (I1), a first signal selection terminal (S0), a second signal selection terminal (S1), and a clock output terminal (O);

[0017] The two clock management units include: a first clock management unit and a second clock management unit;

[0018] The output end of the first clock management unit is connected to the first clock input end (I0) of the global clock buffer, and the output end of the second clock management unit is connected to the second clock input end (I1) of the global clock buffer;

[0019] The locking end of the first clock management unit is connected to the first signal selection end (S0) of the global clock buffer, and the locking end of the second clock management unit is connected to the second signal selection end (S1) of the global clock buffer.

[0020] Optionally, after the clock management unit is powered on, the locking end outputs a first level, and after the output clock output by the output end is stable, the locking end outputs a second level; after the clock management unit changes from a locked state to an unlocked state, the locking end outputs the first level;

[0021] The global clock buffer selects the clock management unit that outputs the second level first as the main management unit according to the order in which the locking ends of the two clock management units output the second level, uses the output clock of the main management unit as the working clock, and outputs the working clock at the clock output end; when the output of the locking end of the main management unit jumps from the second level to the first level, switches the other clock management unit to the main management unit, and uses the output clock of the switched main management unit as the working clock.

[0022] Optionally, the global clock buffer further includes a first enable terminal and a second enable terminal.

[0023] Optionally, the first level is a low level, and the second level is a high level; the first enable terminal and the second enable terminal are connected to a high level.

[0024] Optionally, the global clock buffer further includes a first bypass terminal and a second bypass terminal, and the first bypass terminal and the second bypass terminal are grounded.

[0025] Optionally, the clock management unit is implemented by a hardware circuit or an FPGA.

[0026] On the other hand, an embodiment of the present invention further provides a clock management unit reinforcement method for reinforcing at least two mutually redundant clock management units; the method comprises:

[0027] Using FPGA to monitor the states of the two clock management units, a clock output by one of the two clock management units is selected as the working clock;

[0028] When one of the clock management units loses lock, the clock output by the other clock management unit is selected as the working clock.

[0029] Optionally, the method further comprises:

[0030] After power-on, the locking end of the clock management unit outputs a first level, and after the output clock output by the output end is stable, the locking end outputs a second level; after the clock management unit loses lock, the locking end outputs the first level;

[0031] The method of selecting a clock output by one of the two clock management units as a working clock by using the FPGA includes:

[0032] Using the FPGA to monitor the status indication signals output by the locking terminals of the two clock management units;

[0033] According to the order in which the locking ends of the two clock management units output the second level, the clock management unit that outputs the second level first is selected as the main management unit, and the output clock of the main management unit is used as the working clock, and the working clock is output at the clock output end; when the output end of the locking end of the main management unit jumps from the second level to the first level, the other clock management unit is switched to the main management unit, and the output clock of the switched main management unit is used as the working clock.

[0034] On the other hand, an embodiment of the present invention further provides a chip, wherein the chip includes the clock management unit reinforcement circuit mentioned above.

[0035] The clock management unit reinforcement circuit and method provided in the embodiment of the present invention utilizes FPGA to implement reinforcement of the clock management unit. When one of the clock management units loses lock, the output clock can be automatically switched to another redundant clock management unit, thereby ensuring the reliability of the clock system. Since FPGA is used to replace the complex error detection unit and clock selection unit in the traditional clock management unit reinforcement circuit to implement reinforcement, resource overhead can be effectively reduced and the complexity of the circuit structure can be reduced; moreover, compared with the traditional hardware implementation scheme, the scheme of the present invention can be applied to various types of FPGAs and has better versatility and flexibility.

[0036] Furthermore, the global clock buffer (BUFGCTRL) primitive in the FPGA is used to implement the clock output selection and switching functions, which can occupy less logic resources, ensure the functions while avoiding glitches during the switching process, and ensure the quality of the clock signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a structural schematic diagram of an existing clock management unit reinforcement circuit;

[0038] Figure 2 It is a structural schematic diagram of a clock management unit reinforcement circuit provided by an embodiment of the present invention;

[0039] Figure 3 It is a structural schematic diagram of using a global clock buffer in an FPGA to implement reinforcement in a clock management unit reinforcement circuit provided by an embodiment of the present invention;

[0040] Figure 4 It is a schematic diagram of the structure of the clock management unit reinforcement circuit provided by the embodiment of the present invention implemented by using FPGA;

[0041] Figure 5 is a flow chart of a clock management unit reinforcement method provided by an embodiment of the present invention; DETAILED DESCRIPTION

[0042] The principle and spirit of the present invention will be described below with reference to the exemplary embodiments shown in the accompanying drawings. It should be understood that these embodiments are described only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way.

[0043] FPGA (Field Programmable Gate Array) is a hardware reconfigurable architecture, commonly used to implement digital circuit modules. Users can reconfigure the logic modules and I / O modules inside the FPGA to meet their needs. It also has the characteristics of static reprogrammability and dynamic in-system reconfiguration, so that the functions of the hardware can be modified through programming like software. Most FPGAs in the industry provide digital clock management functions.

[0044] FPGAs have a wealth of clock resources. A variety of buffer types, clock input pins, and clock connections can meet many different application requirements. Selecting the right clock resource can improve routing, performance, and general FPGA resource utilization. The global clock buffer (BUFGCTRL) is the most commonly used clock routing resource and can be connected to any location in the device.

[0045] Based on the above-mentioned characteristics of FPGA, an embodiment of the present invention provides a clock management unit reinforcement circuit, method, and chip, which utilizes FPGA to achieve reliable reinforcement of the clock management unit, reduce the complexity of the clock management unit reinforcement circuit structure, reduce resource overhead, and improve the reliability of the clock system.

[0046] The embodiment of the present invention provides a clock management unit reinforcement circuit, which can implement at least two mutually redundant clock management units. Usually, in order to ensure clock performance and avoid resource waste, two mutually redundant clock management units are used. Of course, based on the implementation principle of the scheme of the present invention, reinforcement can also be implemented for more than two mutually redundant clock management units. The following is an example of two clock management units.

[0047] like Figure 2 , which is a schematic diagram of the structure of the clock management unit reinforcement circuit provided in an embodiment of the present invention.

[0048] The clock management unit reinforcement circuit provided in this embodiment includes: two mutually redundant clock management units 21 and 22, and an FPGA 20 connected to the clock management units 21 and 22. Wherein:

[0049] The clock management units 21 and 22 are configured to receive and output the same clock signal;

[0050] FPGA20 is configured to monitor the status of the two clock management units, select the clock output by one of the two clock management units 21 and 22 as the working clock according to the status, and select the clock output by the other clock management unit as the working clock when one of the clock management units loses lock.

[0051] The clock management units 21 and 22 include: an input terminal, an output terminal, and a locking terminal.

[0052] The clock management units 21 and 22 have input terminals that input the input clock ckl_in, output terminals that output the output clock clk_out, and locking terminals that output state indication signals locked0 and locked1.

[0053] like Figure 2 As shown, FPGA20 monitors the status of the two clock management units according to the status indication signals locked0 and locked1 output by the clock management units 21 and 22, and selects one of them as the current main management unit and the other as the backup management unit according to their respective status. The clock of the main management unit is output as the working clock. When the current main management unit loses lock, FPGA20 switches the other clock management unit (i.e., the backup management unit) to the main management unit and outputs its clock as the working clock.

[0054] It should be noted that, in practical applications, the clock management units 21 and 22 may be implemented by hardware circuits or by using FPGAs, which is not limited in the embodiment of the present invention.

[0055] FPGA has abundant clock resources, among which the global clock buffer is the most commonly used clock routing resource, which can be connected to any position of the device. To this end, in a non-limiting embodiment, the global clock buffer in the FPGA can be used to reinforce the two redundant clock management units mentioned above.

[0056] like Figure 3 , which is a schematic diagram of a structure in which a clock management unit reinforcement circuit is reinforced by using a global clock buffer in an FPGA in an embodiment of the present invention.

[0057] In this embodiment, the global clock buffer 201 includes enable terminals CE0 and CE1, clock input terminals I0 and I1, signal selection terminals S0 and S1, and a clock output terminal O.

[0058] For the convenience of description, the two clock input terminals are respectively referred to as the first clock input terminal I0 and the second clock input terminal I1, and the two signal selection terminals are respectively referred to as the first signal selection terminal (S0) and the second signal selection terminal (S1).

[0059] Reference Figure 3The output ends of the clock management unit 21 and the clock management unit 22 are respectively connected to the clock input ends I0 and I1 of the global clock buffer 201; the locking ends of the clock management unit 21 and the clock management unit 22 are respectively connected to the signal selection ends S0 and S1 of the global clock buffer 201. The enable ends CE0 and CE1 of the global clock buffer 201 are connected to the high level Vcc, that is, the global clock buffer 201 is always in the enabled state.

[0060] In this embodiment, the global clock buffer 201 is configured to determine the status of the two clock management units based on the status indication signals locked0 and locked1 output by the locking ends of the clock management units 21 and 22, select the clock output by one of the clock management units as the working clock based on the status, and when one of the clock management units loses lock, select the clock output by the other clock management unit as the working clock.

[0061] The clock management units 21 and 22 are powered on at the same time and then enter a locked state. After entering the locked state, the locking end outputs a locked state indication signal.

[0062] Under normal circumstances, the clock management units 21 and 22 will delay for a short time after power-on and then enter a locked state. Therefore, in a non-limiting embodiment, the global clock buffer 201 can select one of the clock management units as the main management clock when the clocks output by the two clock management units are locked, and output the clock of the main management clock as the working clock. Of course, considering that the status indication signals output by the two clock management units 21 and 22 may be sequential, in another non-limiting embodiment, the clock management unit that is locked first can also be selected as the main management unit, and its clock can be output as the working clock. In this way, even if another clock management unit fails to lock due to an abnormality, it will not affect the normal operation of the clock system.

[0063] During operation, assuming that the clock output by the current main management unit is unlocked due to an abnormality, the global clock buffer 201 detects that the status indication signal output by its locking end has changed, then another backup management clock is switched to the main management clock, that is, the global clock buffer 201 outputs the output clock of the backup management clock, and uses the output clock as the working clock.

[0064] The above control logic can be implemented according to the primitive of the global clock buffer 201, which is a series of underlying logic function units provided by the FPGA software integrated development environment. Since they are underlying logic function units, they are often closely related to the target FPGA chip and the chip manufacturer, so the primitives of different manufacturers and different devices are often not universal. For FPGAs of different manufacturers and models, it can be implemented according to the specific primitives of the internal global clock buffer, which is not limited in the embodiment of the present invention.

[0065] As mentioned above, the clock management units 21 and 22 can also be implemented using resources in an FPGA. In this way, the clock management unit reinforcement circuit provided in the embodiment of the present invention can be implemented using one FPGA chip.

[0066] like Figure 4 FIG. 1 is a schematic diagram of a structure of a clock management unit reinforcement circuit implemented by using FPGA according to an embodiment of the present invention.

[0067] In this embodiment, the clock management unit reinforcement circuit 400 is implemented by an FPGA, and the FPGA includes: two mutually redundant clock management units, CM0 and CM1, and a BUFGCTRL connected to the clock management units CM0 and CM1. BUFGCTRL has four selection signals S0, S1, CE0 and CE1, and two additional control signals: IGNORE0 and IGNORE1. These six control signals are used to control the outputs of inputs I0 and I1. BUFGCTRL has an output terminal O. Among them, the input terminals I0 and I1 input clocks, CE (i.e. CE0 and CE1) is an enable signal, S (i.e. S0 and S1) is a selection signal, and IGNORE (i.e. IGNORE0 and IGNORE1) is a bypass signal.

[0068] In FPGA, BUFGCTRL is designed to switch between two clock inputs. After the selection signals S0 and S1 are changed, when the currently selected clock is at the falling edge, the output O is kept at a low level until the next selected clock reaches the falling edge, and then the output is driven by the new input clock.

[0069] When the IGNORE signal is enabled, the above monitoring process is bypassed, that is, when the selection signal changes, the output is immediately equal to the selected input. The IGNORE0 signal is enabled, which means that the output O can be directly switched to I0 when the selection signal changes. The IGNORE1 signal is enabled, which means that the output O can be directly switched to I1 when the selection signal changes.

[0070] Although both CE and S signals can be used for clock selection, the use of CE for selection requires ensuring the setup time and the hold time, otherwise glitches will occur. Therefore, in the embodiment of the present invention, S is used as the clock selection signal.

[0071] Reference Figure 4 The two redundant clock management units are CM0 and CM1, whose input ports include: clk_in, reset; and output ports include: clk_out, locked0, locked1.

[0072] Figure 4 In the example, clk_in is the input clock, which is connected to the clk_in terminals of the two clock management units respectively; reset is the asynchronous reset signal, which is connected to the reset terminals of the two clock management units respectively; clk_out is the output clock, which is connected to the output terminal O of the BUFGCTRL primitive. locked0 and locked1 are the status indication signals output by the locking terminals of the two clock management units.

[0073] The output clock clk_out of the clock management unit CM0 is connected to the I0 terminal of the BUFGCTRL primitive, and the locking indication signal locked is connected to the S0 terminal of the BUFGCTRL primitive.

[0074] The output clock clk_out of the clock management unit CM1 is connected to the I1 terminal of the BUFGCTRL primitive, and the locking indication signal locked is connected to the S1 terminal of the BUFGCTRL primitive.

[0075] The locked0 and locked1 signals indicate the locking status of the clock management units CM0 and CM1 respectively. When the signal is pulled low, it means that the corresponding clock management unit is in the unlocked state. The external control logic can reset the corresponding clock management unit to restore it to normal working state. When the clock management unit is in normal working state, the signal remains high.

[0076] The enable terminals CE0 and CE1 of the BUFGCTRL primitive are fixedly connected to a high level; IGNORE0 and IGNORE1 are bypass terminals, fixedly connected to a low level.

[0077] In this embodiment, after the clock management units CM0 and CM1 are powered on, the locking terminal locked outputs a first level (low level), and after the output clock output at the output terminal is stable, the locking terminal locked outputs a second level (high level); after the clock management units CM0 and CM1 change from a locked state to an unlocked state, the locking terminal locked outputs a first level (low level).

[0078] Correspondingly, BUFGCTRL selects the clock management unit that outputs the second level first as the main management unit according to the order in which the locking ends of the two clock management units CM0 and CM1 output the second level, and uses the output clock of the main management unit as the working clock, and outputs the working clock at the clock output end O; when the output of the locking end of the main management unit jumps from the second level to the first level, the other clock management unit is switched to the main management unit, and the output clock of the switched main management unit is used as the working clock.

[0079] The truth table of the BUFGCTRL primitive is shown in Table 1.

[0080] Table 1

[0081] CE0 S0 CE1 S1 O 1 1 0 X I0 1 1 X 0 I0 0 X 1 1 I1 X 0 1 1 I1 1 1 1 1 Old Input

[0082] Combine the following Figure 4 Describe in detail how it works.

[0083] Figure 4 The normal working process of the reinforcement circuit shown is as follows:

[0084] After power-on reset, the state indication signal output by the locked terminal of the clock management unit is initially low level. When the output clock is stable, the state indication signal is pulled high, that is, becomes high level. The clock selected at the beginning can be determined according to the order in which the state indication signals output by the locked terminals of the two clock management units are pulled high.

[0085] If the state indication signal output by the locked terminal of the clock management unit CM0 is pulled high first, the CE0, CE1 and S0 terminals of the BUFGCTRL are high, and the S1 terminal is low. According to the above Table 1, the output terminal O of the BUFGCTRL is I0, that is, the clock output of the clock management unit CM0 is selected as the final clock output, that is, the clock is used as the working clock.

[0086] If the state indication signal output by the locked terminal of the clock management unit CM1 is pulled high first, the CE0, CE1 and S1 terminals of the BUFGCTRL are high, and the S0 terminal is low. According to the above Table 1, the output terminal O of the BUFGCTRL is I1, that is, the clock output of the clock management unit CM1 is selected as the final clock output, that is, the clock is used as the working clock.

[0087] Figure 4 The clock switching process of the reinforced circuit shown is as follows:

[0088] When the selected clock management unit loses lock due to a soft error triggered by some environmental factors, the clock output will automatically switch to another clock management unit.

[0089] Assume that the output of the clock management unit CM0 is currently selected as the final clock output. When CM0 loses lock, the state indication signal of its locked output is pulled low, the CE0, CE1 and S1 terminals of BUFGCTRL are high, and the S0 terminal is low. According to the above Table 1, the output terminal O of BUFGCTRL is I1, that is, the clock output of the clock management unit CM1 is selected as the final clock output. In this way, the final clock output is not affected by soft errors, thereby achieving a high reliability reinforcement effect of the clock management unit.

[0090] After a period of time, assuming that the clock management unit CM0 recovers from the soft error through reset, the state indication signal of its locked terminal locked output is pulled high again. However, at this time, the clock output of the clock management unit CM1 will still be selected as the final clock output, and it will not switch to the clock management unit CM0 again until the clock management unit CM1 loses lock due to a soft error triggered by some factors.

[0091] The clock management unit reinforcement circuit provided in the embodiment of the present invention utilizes FPGA to implement reinforcement of the clock management unit. When one of the clock management units loses lock, the output clock can be automatically switched to another redundant clock management unit, thereby ensuring the reliability of the clock system. Since FPGA is used to replace the complex error detection unit and clock selection unit in the traditional clock management unit reinforcement circuit to implement reinforcement, resource overhead can be effectively reduced and the complexity of the circuit structure can be reduced; moreover, compared with traditional hardware implementation solutions, the solution of the present invention can be applied to various types of FPGAs and has better versatility and flexibility. Furthermore, the global clock buffer primitive in the FPGA is used to implement the clock output selection and switching functions, which can occupy less logic resources, ensure the function, and avoid glitches during the switching process, thereby ensuring the quality of the clock signal.

[0092] Accordingly, an embodiment of the present invention further provides a clock management unit reinforcement method for reinforcing at least two mutually redundant clock management units. Figure 5 As shown, it is a flow chart of the method, comprising the following steps:

[0093] Step 501: Use FPGA to monitor the states of two clock management units, and select a clock output by one of the two clock management units as a working clock.

[0094] Step 502: When one of the clock management units loses lock, select the clock output by another clock management unit as the working clock.

[0095] In the embodiment of the present invention, the two clock management units have a locking end, and the locking end outputs a state indication signal. For example, after power-on, the locking end of the clock management unit outputs a first level, and after the output clock output by the output end is stable, the locking end outputs a second level. If a soft error of the clock management unit is triggered by some factors, causing the internal phase-locked loop to lose lock, the locking end of the clock management unit changes from the second level to the first level.

[0096] Accordingly, the FPGA mainly monitors the state indication signal output by the locking end of the two clock management units, and determines whether the clock output by each clock management unit is normal according to the state indication signal. Specifically, according to the order in which the locking ends of the two clock management units output the second level, the clock management unit that outputs the second level first can be selected as the main management unit, and the output clock of the main management unit can be used as the working clock, and the working clock can be output at the clock output end; when the output end of the locking end of the main management unit jumps from the second level to the first level, the other clock management unit is switched to the main management unit, and the output clock of the switched main management unit is used as the working clock.

[0097] It should be noted that, in practical applications, the clock management unit may be implemented by a hardware circuit or an FPGA, which is not limited in the embodiments of the present invention.

[0098] Since FPGA has abundant clock resources, the above selection and switching functions can be implemented by the global clock buffer in the FPGA. The specific implementation method can refer to the description in the previous embodiments of the clock management unit reinforcement circuit of the present invention, which will not be repeated here.

[0099] Accordingly, an embodiment of the present invention further provides a chip, which includes the clock management unit reinforcement circuit described above. The chip can be an independent FPGA chip, that is, the above-mentioned clock management units and the logic units that provide reinforcement functions to them are all implemented by the FPGA chip, which can effectively reduce resource overhead and reduce the complexity of the circuit structure; moreover, it can be applied to various types of FPGAs, so that the reinforcement circuit can have better versatility and flexibility.

[0100] In a specific implementation, each module / unit included in each device or product described in the above embodiments may be a software module / unit or a hardware module / unit, or may be partly a software module / unit and partly a hardware module / unit.

[0101] For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least some of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.

[0102] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.

Claims

1. A clock management unit reinforcement circuit, characterized in that: include: At least two mutually redundant clock management units, and an FPGA connected to the clock management units; The clock management unit is configured to receive and output the same clock signal; The FPGA is configured to monitor the status of the two clock management units, select the clock output by one of the clock management units as the working clock according to the status, and select the clock output by the other clock management unit as the working clock when one of the clock management units loses lock.

2. The clock management unit reinforcement circuit according to claim 1, characterized in that: The FPGA includes a global clock buffer; The clock management unit comprises: an input end, an output end, and a locking end; the output end and the locking end are respectively connected to the global clock buffer; the input end inputs an input clock, the output end outputs an output clock, and the locking end outputs a state indication signal; The global clock buffer is configured to determine the states of the two clock management units according to state indication signals output by the locking ends of the two clock management units, select the clock output by one of the clock management units as the working clock according to the state, and select the clock output by the other clock management unit as the working clock when one of the clock management units loses lock.

3. The clock management unit reinforcement circuit according to claim 2, characterized in that: The global clock buffer comprises a first clock input terminal (I0), a second clock input terminal (I1), a first signal selection terminal (S0), a second signal selection terminal (S1), and a clock output terminal (O); The two clock management units include: a first clock management unit and a second clock management unit; The output end of the first clock management unit is connected to the first clock input end (I0) of the global clock buffer, and the output end of the second clock management unit is connected to the second clock input end (I1) of the global clock buffer; The locking end of the first clock management unit is connected to the first signal selection end (S0) of the global clock buffer, and the locking end of the second clock management unit is connected to the second signal selection end (S1) of the global clock buffer.

4. The clock management unit reinforcement circuit according to claim 3, characterized in that: After the clock management unit is powered on, the locking end outputs a first level, and after the output clock output by the output end is stable, the locking end outputs a second level; After the clock management unit changes from a locked state to an unlocked state, the locking end outputs a first level; The global clock buffer selects the clock management unit that outputs the second level first as the main management unit according to the order in which the locking terminals of the two clock management units output the second level, uses the output clock of the main management unit as the working clock, and outputs the working clock at the clock output terminal; When the output of the locking terminal of the main management unit jumps from the second level to the first level, another clock management unit is switched to the main management unit, and the output clock of the switched main management unit is used as the working clock.

5. The clock management unit reinforcement circuit according to claim 4, characterized in that: The global clock buffer further includes a first enable terminal and a second enable terminal.

6. The clock management unit reinforcement circuit according to claim 5, characterized in that: The first level is a low level, and the second level is a high level; The first enable terminal and the second enable terminal are connected to a high level.

7. The clock management unit reinforcement circuit according to claim 4, characterized in that: The global clock buffer further includes a first bypass terminal and a second bypass terminal, wherein the first bypass terminal and the second bypass terminal are grounded.

8. The clock management unit reinforcement circuit according to any one of claims 1 to 7, characterized in that: The clock management unit is implemented by a hardware circuit or FPGA.

9. A clock management unit reinforcement method, characterized in that: Used to reinforce at least two mutually redundant clock management units; the method comprises: Using FPGA to monitor the states of the two clock management units, a clock output by one of the two clock management units is selected as the working clock; When one of the clock management units loses lock, the clock output by the other clock management unit is selected as the working clock.

10. The clock management unit reinforcement method according to claim 9, characterized in that: The method further comprises: After power-on, the locking end of the clock management unit outputs a first level, and after the output clock output by the output end is stable, the locking end outputs a second level; after the clock management unit loses lock, the locking end outputs the first level; The method of selecting a clock output by one of the two clock management units as a working clock by using FPGA includes: Using the FPGA to monitor the status indication signals output by the locking terminals of the two clock management units; According to the order in which the locking ends of the two clock management units output the second level, the clock management unit that outputs the second level first is selected as the main management unit, and the output clock of the main management unit is used as the working clock, and the working clock is output at the clock output end; when the output end of the locking end of the main management unit jumps from the second level to the first level, the other clock management unit is switched to the main management unit, and the output clock of the switched main management unit is used as the working clock.

11. A chip, characterized in that: The chip comprises the clock management unit reinforcement circuit as claimed in any one of claims 1 to 8.