CLOCK SIGNAL GENERATOR, ON-CHIP CLOCK SYSTEM, AND CHIP
20220350363 · 2022-11-03
Inventors
Cpc classification
International classification
Abstract
The technology of this application relates to a clock signal generator, an on-chip clock system, and a chip. The clock signal generator includes a first transistor, a second transistor, a flip-flop, and a power supply end. A first electrode of the first transistor and a first electrode of the second transistor are coupled to the power supply end, and a second electrode of the first transistor and a second electrode of the second transistor are coupled to a common ground. A first input end of the flip-flop is coupled to the first electrode of the first transistor, and a second input end of the flip-flop is coupled to the first electrode of the second transistor. The clock signal generator can make a frequency of an output clock signal more stable.
Claims
1. A clock signal generator, comprising: a first transistor; a second transistor; a flip-flop; and a power supply end, wherein a first electrode of the first transistor and a first electrode of the second transistor are coupled to the power supply end, and a second electrode of the first transistor and a second electrode of the second transistor are coupled to a common ground; and a first input end of the flip-flop is coupled to the first electrode of the first transistor, and a second input end of the flip-flop is coupled to the first electrode of the second transistor.
2. The clock signal generator according to claim 1, further comprising: a control signal generation circuit, wherein signal output ends of the control signal generation circuit are respectively coupled to a control electrode of the first transistor and a control electrode of the second transistor, and the control signal generation circuit periodically provides a control signal to the control electrode of the first transistor and the control electrode of the second transistor, to alternately turn on and turn off the first transistor and the second transistor based on the control signal.
3. The clock signal generator according to claim 2, wherein the control signal is a voltage signal.
4. The clock signal generator according to claim 2, further comprising: a first capacitor; and a second capacitor, wherein a first electrode of the first capacitor is coupled to the control electrode of the first transistor, a second electrode of the first capacitor is coupled to the common ground, and the first transistor is periodically turned on or turned off based on charging/discharging of the first capacitor, and a first electrode of the second capacitor is coupled to the control electrode of the second transistor, a second electrode of the second capacitor is coupled to the common ground, and the second transistor is periodically turned on or turned off based on charging/discharging of the second capacitor.
5. The clock signal generator according to claim 4, wherein the control signal is a current signal, and the control signal generation circuit is configured to alternately and periodically provide the current signal to the first electrode of the first capacitor and the first electrode of the second capacitor to charge the first capacitor and the second capacitor.
6. The clock signal generator according to claim 4, further comprising: a third transistor, wherein a control electrode and a first electrode of the third transistor are coupled to the power supply end, and a second electrode of the third transistor is coupled to the common ground; and the control signal generation circuit is configured to generate a current signal based on a voltage signal between the first electrode and the second electrode of the third transistor.
7. The clock signal generator according to claim 5, further comprising: a current mirror circuit, wherein the control signal generation circuit provides the current signal to the current mirror circuit, and the current mirror circuit performs mirror processing on a received current based on a preset proportion, and provides a processed current to the first electrode of the first capacitor and the first electrode of the second capacitor.
8. The clock signal generator according to claim 5, further comprising: a first selector; and a second selector, wherein a control end of the first selector is coupled to a first output end of the flip-flop, a first input end of the first selector is coupled to an output end of the control signal generation circuit, a second input end of the first selector is coupled to the common ground, and an output end of the first selector is coupled to the control electrode of the first transistor, a control end of the second selector is coupled to a second output end of the flip-flop, a first input end of the second selector is coupled to an output end of the control signal generation circuit, a second input end of the second selector is coupled to the common ground, and an output end of the second selector is coupled to the control electrode of the second transistor, the first selector periodically gates the first input end and the second input end of the first selector under control of a clock signal that is output by the first output end of the flip-flop, to periodically charge and discharge the first capacitor, and the second selector periodically gates the first input end and the second input end of the second selector under control of the clock signal that is output by the first output end of the flip-flop, to periodically charge and discharge the second capacitor.
9. The clock signal generator according to claim 1, wherein the first input end of the flip-flop is coupled to the first electrode of the second transistor through an even quantity of phase inverters.
10. The clock signal generator according to claim 6, wherein the second input end of the flip-flop is coupled to the first electrode of the third transistor through an even quantity of phase inverters.
11. The clock signal generator according to claim 6, wherein a quantity of first transistors, a quantity of second transistors, and a quantity of third transistors are in a preset proportion; and a parameter of the first transistor, a parameter of the second transistor, and a parameter of the third transistor are the same.
12. An on-chip clock system, wherein the on-chip clock system comprises the clock signal generator according to claim 1.
13. A chip, wherein the chip comprises the on-chip clock system according to claim 12.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0023] To describe the technical solutions in embodiments of this application more clearly, the following briefly introduces the accompanying drawings for describing embodiments of this application. It is clear that the accompanying drawings in the following description show merely a part of embodiments of this application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
DESCRIPTION OF EMBODIMENTS
[0031] The following clearly describes the technical solutions in embodiments of this application with reference to the accompanying drawings in embodiments of this application. It is clear that the described embodiments are a part but not all of embodiments of this application. All other embodiments obtained by a person of ordinary skill in the art based on embodiments of this application without creative efforts shall fall within the protection scope of this application.
[0032] The term “first”, “second”, or the like mentioned in this specification does not indicate any order, quantity, or importance, but is used only for distinguishing between different components. Likewise, the term “a/an”, “one”, or the like is not intended to indicate a quantity limitation either, but is intended to indicate at least one. The term “coupling”, “connection”, “link”, or the like is not limited to a physical or mechanical connection, but may include an electrical connection, whether directly or indirectly.
[0033] The term “unit” mentioned in this specification is usually a functional structure that is obtained through division based on logic, and the “unit” may be implemented only by hardware, or implemented by a combination of software and hardware.
[0034] In embodiments of this application, the term “and/or” describes an association relationship between associated objects and indicates that at least three relationships may exist. For example, A and/or B may indicate the following three cases: Only A exists, both A and B exist, and only B exists.
[0035] In embodiments of this application, the word “example”, “for example”, or the like is used to represent giving an example, an illustration, or a description. Any embodiment or design scheme described as “example” or “for example” in embodiments of this application should not be explained as being more or having more advantages than another embodiment or design scheme. Exactly, use of the word “example”, “for example”, or the like is intended to present a related concept in a specific manner.
[0036] In the descriptions of embodiments of this application, unless otherwise stated, “a plurality of” means two or more than two. For example, a plurality of processing units refer to two or more processing units. A plurality of systems refer to two or more systems.
[0037]
[0038]
[0039] In
[0040] In this embodiment, the transistor T1 and the transistor T2 each include a control electrode, a first electrode, and a second electrode. The first electrode of the transistor T1 and the first electrode of the transistor T2 are separately coupled to the power supply end Vdd. The power supply end Vdd is configured to receive electric energy provided externally. The second electrode of the transistor T1 and the second electrode of the transistor T2 are separately coupled to a common ground Gnd. The transistor T1 and the transistor T2 herein may be insulated gate field effect transistors, for example, may be PMOS transistors or NMOS transistors. This is not limited herein. When the transistor T1 and the transistor T2 are NMOS transistors, the control electrode may be a gate electrode, the first electrode may be a drain electrode, and the second electrode may be a source electrode. When the transistor T1 and the transistor T2 are PMOS transistors, the control electrode may be a gate electrode, the first electrode may be a source electrode, and the second electrode may be a drain electrode. The figure schematically shows a case in which the transistor T1 and the transistor T2 are NMOS transistors.
[0041] The SR flip-flop includes an input end S, an input end R, an output end QN, and an output end Q. The input end S of the SR flip-flop is connected to the first electrode of the transistor T1. The input end R of the SR flip-flop is connected to the first electrode of the transistor T2. The output end QN or the output end Q of the SR flip-flop is configured to output a clock signal.
[0042] As shown in
[0043] Specifically, as shown in
[0044] With reference to the circuit structure shown in
[0045] A working status of the transistor T1 is used as an example. A signal received by the input end S of the SR flip-flop is first described. When the transistor T1 is turned on, an electric potential at a node a is an internal resistance voltage drop of the transistor T1. Generally, the internal resistance voltage drop of the transistor T1 is very small and can be almost ignored. Herein, the electric potential at the node a may be considered as 0 V. In this case, the input end S of the SR flip-flop receives a low-level signal or “logic 0”. When the transistor T1 is turned off, the electric potential at the node a is an electric potential of the power supply end Vdd. In this case, the input end S of the SR flip-flop receives a high-level signal or “logic 1”. For a working status of the transistor T2 and a signal received by the input end R of the SR flip-flop, refer to descriptions of the transistor T1 and the signals received by the input end S of the SR flip-flop.
[0046] In a first time period, the transistor T1 is controlled to be turned on, and the transistor T2 is controlled to be turned off. In this case, the input end S of the SR flip-flop receives a low-level signal or “logic 0”, and the input end R of the SR flip-flop receives a high-level signal or “logic 1”. In this case, the Q end outputs the low-level signal or the “logic 0”. In a second time period, the transistor T1 is controlled to be turned off, and the transistor T2 is controlled to be turned on. In this case, the input end S of the SR flip-flop receives a high-level signal or “logic 1”, and the input end R of the SR flip-flop receives a low-level signal or “logic 0”. In this case, the Q end outputs the high-level signal or the “logic 1”. Therefore, based on a to-be-generated clock cycle, the transistor T1 and the transistor T2 are periodically controlled to be turned on or turned off, so that high-level and low-level signals, that is, clock pulse signals, can be alternatively output at the output end Q of the SR flip-flop.
[0047] It can be learned from
[0048] As shown in
[0049] In
[0050] In this implementation, the control signal generation circuit 20 may be a circuit whose output current and input voltage are in a proportional relationship. In the conventional technology, any circuit whose output current and input voltage can be in a proportional relationship may be used as the control signal generation circuit 20 shown in this application. This is not specifically limited herein. In specific implementation, the control signal generation circuit 20 may have a structure shown in
[0051] In some optional implementations, the clock signal generator 100 may further include a current mirror circuit 30.
[0052] In this optional implementation, a requirement on the control signal generation circuit 20 can be reduced by disposing the current mirror circuit 30. When a relatively large current needs to be input to the clock signal generation circuit 10, the current mirror circuit 30 may be used for implementation, so that stability of the control signal generation circuit 20 can be improved. This further improves stability of a clock signal generated by the clock signal generator 100.
[0053] With reference to
[0054] In
[0055] In the clock signal generator 100 shown in
[0056] Working principles of the selector M1 and the selector M2 are described by using the selector M1 as an example. When the control end k1 of the selector M1 receives “logic 0” or a low-level signal, the selector M1 gates the input end d1. In this case, an output end of a current mirror circuit 30 is connected to the control electrode of the transistor T1, the capacitor C1 is charged, and an electric potential at a node n1 gradually rises. When the electric potential at the node n1 rises to a specific value, so that a voltage between the control electrode and a second electrode of the transistor T1 is greater than a turn-on voltage, the transistor T1 is turned on. When the control end k1 of the selector M1 receives “logic 1” or a high-level signal, the selector M1 gates the input end d2. In this case, the control electrode of the transistor T1 is connected to the common ground Gnd, and the capacitor C1 is discharged. Under an action of the capacitor C1, the electric potential at the node n1 does not change abruptly. When the capacitor C1 is discharged to a specific value, and a voltage on the transistor T1 is less than the turn-on voltage, the transistor T1 is turned off. The working principle of the selector M2 is the same as that of the selector M1.
[0057] In
[0058] Specifically, a level signal at the output end QN of the SR flip-flop is the same as a level signal at an input end S of the SR flip-flop, and a level signal at the output end Q of the SR flip-flop is the same as a level signal at an input end R of the SR flip-flop.
[0059] It is assumed that at a current moment, the output end QN of the SR flip-flop outputs “logic 1” or a high-level signal, and the output end Q of the SR flip-flop outputs “logic 0” or a low-level signal. In a first time period, the capacitor C1 is charged, and the electric potential at the node n1 gradually rises. When the electric potential at the node n1 rises to a specific value, the transistor T1 is turned on, so that an electric potential at a node a1 is a low electric potential. The input end S of the SR flip-flop receives the low-level signal or the “logic 0”, and in this case, the output end QN of the SR flip-flop is triggered to flip. That is, the output end QN of the SR flip-flop outputs the “logic 0” or the low-level signal. The capacitor C2 is discharged, and an electric potential at a node n2 gradually decreases. When the electric potential at the node n2 decreases to a specific value, the transistor T2 is turned off, so that an electric potential at a node a2 is a high electric potential. The input end R of the SR flip-flop receives the high-level signal, and in this case, the output end Q of the SR flip-flop is triggered to flip. That is, the output end Q of the SR flip-flop outputs the “logic 1” or the high-level signal. Then, a second time period is entered.
[0060] In the second time period, the capacitor C1 is discharged, and the electric potential at the node n1 gradually decreases. When the electric potential at the node n1 decreases to a specific value, the transistor T1 is turned off, so that the electric potential at the node al is a high electric potential. The input end S of the SR flip-flop receives the high-level signal or the “logic 1”, and in this case, the output end QN of the SR flip-flop is triggered to flip. That is, the output end QN of the SR flip-flop outputs the “logic 1” or the high-level signal. The capacitor C2 is charged, and the electric potential at the node n2 gradually rises. When the electric potential at the node n2 rises to a specific value, the transistor T2 is turned on, so that the electric potential at the node a2 is a low electric potential. The input end R of the SR flip-flop receives the low-level signal, and in this case, the output end Q of the SR flip-flop is triggered to flip. That is, the output end Q of the SR flip-flop outputs the “logic 0” or the low-level signal.
[0061] In this way, through charging/discharging of the capacitor C1 and the capacitor C2, the output end Q and the output end QN of the SR flip-flop periodically output the high-level signal and the low-level signal. That is, the clock signals are formed at the output end Q and the output end QN separately. A clock frequency of the clock signal is a level signal flipping frequency of the output end Q or a level signal flipping frequency of the output end QN.
[0062] It can be learned from
[0063] A difference from the conventional technology shown in
[0064] In some implementations, the input end S of the SR flip-flop is coupled to a first electrode of the transistor T1 through an even quantity of phase inverters; and the input end R of the SR flip-flop is coupled to a first electrode of the transistor T2 through an even quantity of phase inverters.
[0065] In some implementations, parameters of the transistor T1, the transistor T2, and the transistor T3 are associated. Specifically, to provide a stable static operating point for the clock signal generator 100, the transistor T1 and the transistor T2 may have a same physical parameter and a same operating parameter, that is, have same parameters such as a conduction voltage drop, an internal resistance, and a power. There may be a proportional relationship between physical parameters and a proportional relationship between operating parameters of the transistor T1 and the transistor T3. In this way, a current flowing through the node a1 is the same as a current flowing through the node a2, and a current flowing through a node b and a current flowing through the node a1 have a proportional relationship. This reduces a temperature drift of the static operating point of the clock signal generator 100.
[0066] In the embodiments shown in
[0067] An embodiment of this application further provides an on-chip clock system. The on-chip clock system may include any clock signal generator described above and another structure such as a voltage source. The structure such as the voltage source is a conventional and common technology.
[0068] An embodiment of this application further provides a chip. The chip includes the foregoing on-chip clock system. The on-chip clock system including any clock signal generator described above may provide a stable clock signal for each module inside the chip, so that each module inside the chip works stably based on the clock signal.
[0069] Specifically, the chip may be an integrated circuit chip, and includes but is not limited to an artificial intelligence chip, a digital signal processing chip, an image processing chip, and the like. When the chip is configured to provide an image processing function and a data analysis and computing function for an application installed on a terminal device (for example, a mobile phone, a computer, or a wearable intelligent device), the electronic device may be a server device, and the chip may be disposed in the server device. When the chip is applied to the autonomous driving field to provide necessary vehicle-mounted computing, the electronic device may be a vehicle-mounted control device, and the AI chip may alternatively be disposed in the vehicle-mounted control device. Alternatively, the chip may be a 5G chip. In this case, the electronic device may be a base station hardware device that communicates with a terminal, and the AI chip may be disposed in the base station hardware device.
[0070] The foregoing describes embodiments of this application with reference to the accompanying drawings. However, this application is not limited to the foregoing specific implementations. The foregoing specific implementations are merely examples, but are not limitative. Inspired by this application, a person of ordinary skill in the art may further make many modifications without departing from the purposes of this application and the protection scope of the claims, and all the modifications shall fall within the protection scope of this application.