Apparatus and method for generating circuit clock signal

By delaying and stretching the original clock signal to generate an adaptive clock signal, the problem of timing errors caused by power supply fluctuations in integrated circuits is solved, and rapid adaptive adjustment and resource saving are achieved.

WO2024183698A1PCT designated stage expired Publication Date: 2024-09-12BEIJING YOUZHUJU NETWORK TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/079959
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-06
Filing Date
2024-03-04
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

In integrated circuits, power supply fluctuations lead to timing errors. Existing technologies such as PLL have slow adjustment speeds and cannot quickly adaptively adjust clock signals, and using two PLLs will cause a waste of resources.

Method used

The adaptive clock signal is dynamically selected to avoid timing errors by delaying the original clock signal to generate multiple delayed clock signals and generating a stretched clock signal based on these clock signals.

Benefits of technology

It achieves rapid adaptive adjustment of the clock, ensures the correctness of data transmission, improves circuit performance, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079959_12092024_PF_FP_ABST
    Figure CN2024079959_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are an apparatus and method for generating a circuit clock signal. The apparatus comprises: a clock buffer, which is configured to buffer an original clock signal, so as to obtain a buffered clock signal; a clock delay unit, which is configured to delay the original clock signal, so as to obtain a plurality of delayed clock signals, wherein the plurality of delayed clock signals are respectively delayed by different time amounts relative to the original clock signal; a stretched clock generator, which is configured to generate a stretched clock signal on the basis of the original clock signal and the plurality of delayed clock signals, wherein the frequency of the stretched clock signal is lower than the frequency of the original clock signal; and a clock selector, which is configured to select one of the buffered clock signal and the stretched clock signal as a circuit clock signal on the basis of a selection signal.
Need to check novelty before this filing date? Find Prior Art

Description

Device and method for generating circuit clock signal

[0001] This application claims priority to the Chinese invention patent application entitled “Device and method for generating circuit clock signals” and application number 202310204895.X, filed on March 6, 2023. The entire contents of this application are incorporated by reference into this application. Technical Field

[0002] Example embodiments of the present disclosure relate generally to the field of electronic circuits, and more particularly to apparatus and methods for generating circuit clock signals. Background Art

[0003] In the field of electronic circuits, clock signals are used to coordinate the actions of various electronic components and ensure their synchronous operation. In integrated circuits, especially large digital chips like central processing units (CPUs) and graphics processing units (GPUs), digital circuits may experience power supply fluctuations during operation. Power supply fluctuations can cause some electronic components to fail to meet their timing requirements, resulting in timing errors. In such cases, clocks must be able to adaptively adjust to avoid timing errors and ensure accurate data transmission for optimal performance.

[0004] Summary of the Invention

[0005] An object of the present disclosure is to provide an apparatus and method for generating a circuit clock signal to at least partially solve the above problems and other potential problems.

[0006] In a first aspect of the present disclosure, there is provided an apparatus for generating a circuit clock signal, comprising: a clock buffer configured to buffer an original clock signal to obtain a buffered clock signal; a clock delay unit configured to delay the original clock signal to obtain a plurality of delayed clock signals, wherein the plurality of delayed clock signals are respectively delayed by different amounts of time relative to the original clock signal; a stretched clock generator configured to generate a stretched clock signal based on the original clock signal and the plurality of delayed clock signals, wherein the frequency of the stretched clock signal is lower than the frequency of the original clock signal; and a clock selector configured to select one of the buffered clock signal and the stretched clock signal as the circuit clock signal based on a selection signal.

[0007] In a second aspect of the present disclosure, a method for generating a circuit clock signal is provided, comprising: buffering an original clock signal to obtain a buffered clock signal; delaying the original clock signal to obtain a plurality of delayed clock signals, wherein the plurality of delayed clock signals are respectively delayed by different amounts of time relative to the original clock signal; generating a stretched clock signal from the original clock signal and the plurality of delayed clock signals, wherein the frequency of the stretched clock signal is lower than the frequency of the original clock signal; and selecting one of the buffered clock signal and the stretched clock signal as the circuit clock signal based on a selection signal.

[0008] It should be understood that the content described in this summary section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0010] FIG1 shows a circuit schematic diagram of an apparatus for generating a circuit clock signal according to an embodiment of the present disclosure;

[0011] FIG2 shows a timing diagram of an original clock signal, a plurality of delayed clock signals, and a stretched clock signal according to one embodiment of the present disclosure;

[0012] FIG3 illustrates a predetermined order of cyclically selecting clock signals from an original clock signal and a plurality of delayed clock signals according to one embodiment of the present disclosure;

[0013] FIG4 shows a circuit schematic diagram of a stretched clock generator according to an embodiment of the present disclosure;

[0014] FIG5 shows a timing diagram of a circuit clock signal according to an embodiment of the present disclosure;

[0015] FIG6 shows a flow chart of a method for generating a circuit clock signal according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0016] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0017] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below.

[0018] As mentioned above, digital circuits in integrated circuits may encounter power supply fluctuations during operation. Power supply fluctuations can cause the timing requirements of some electronic components to be unmet, resulting in timing errors. In this case, adaptive clock adjustment is required to avoid timing errors and ensure the correctness of data transmission. One clock adjustment method uses a phase-locked loop (PLL) to adjust the clock. However, the adjustment speed of a PLL is slow and cannot meet the requirement for fast adaptive adjustment. In some cases, two PLLs can be used to generate two clock frequencies, thereby dynamically providing different clock signals. However, the configuration of two PLLs results in significant resource waste. An embodiment of the present disclosure provides a scheme for generating a circuit clock signal. In this scheme, an original clock signal is delayed to obtain multiple delayed clock signals. A stretched clock signal is then generated based on the original clock signal and the multiple delayed clock signals. In the event of power supply fluctuations, the stretched clock signal can be dynamically selected as the circuit clock signal. In this way, fast adaptive clock adjustment can be achieved, timing errors can be avoided, and data transmission correctness can be ensured, thereby achieving better circuit performance. The principles of the present disclosure will be described in detail below with reference to Figures 1 to 6.

[0019] Figure 1 shows a circuit schematic diagram of an apparatus for generating a circuit clock signal according to an embodiment of the present disclosure. As shown in Figure 1 , the apparatus generally includes a clock buffer 10 , a clock delay unit 20 , a stretched clock generator 30 , a clock selector 40 , and a control unit 50 .

[0020] Clock buffer 10 is used to buffer the original clock signal clk0 to obtain a buffered clock signal clk_buf. The original clock signal clk0 is the clock signal used by the circuit during normal operation and has a predetermined clock frequency, such as a predetermined frequency value or within a predetermined frequency range. Clock buffer 10 can use any appropriate clock buffering technology to buffer the original clock signal clk0. In some embodiments, clock buffer 10 can include multiple stages of inverters that can invert the original clock signal clk0 multiple times, thereby buffering and amplifying the original clock signal clk0 and improving the clock signal's drive capability.

[0021] It should be understood that the clock buffering methods described above are merely examples and are not intended to limit the embodiments of the present disclosure in any way. Any currently known or future developed clock buffering technology may be used in conjunction with the embodiments of the present disclosure.

[0022] The clock delay unit 20 is used to delay the original clock signal clk0 to obtain a plurality of delayed clock signals clk1-clk7. The delayed clock signals clk1-clk7 are respectively delayed by different amounts of time relative to the original clock signal clk0. FIG1 shows seven delayed clock signals clk1-clk7 generated by the clock delay unit 20 to illustrate the principles of the present disclosure. The clock delay unit 20 can use any appropriate clock delay technology to delay the original clock signal clk0. It should be noted that the numbers, values, etc. mentioned above and elsewhere in this disclosure are exemplary and are not intended to limit the scope of the present disclosure in any way. Any other appropriate numbers and values ​​are possible.

[0023] In some embodiments, as shown in FIG1 , the clock delay unit 20 includes a plurality of delay components 21 connected in series. The number of delay components 21 is equal to the number of delayed clock signals clk1-clk7. For example, the clock delay unit 20 shown in FIG1 includes seven delay components 21 for generating seven delayed clock signals clk1-clk7. In other embodiments, the clock delay unit 20 may include more or fewer delay components 21 for generating a corresponding number of delayed clock signals.

[0024] As shown in FIG1 , the original clock signal clk0 is provided to the first delay component of a plurality of delay components 21. Each delay component of the plurality of delay components 21 provides a corresponding delayed clock signal from the delayed clock signals clk1-clk7. For example, the first delay component of the plurality of delay components 21 may delay the original clock signal clk0 to provide a delayed clock signal clk1. The second delay component may delay the delayed clock signal clk1 to provide a delayed clock signal clk2. The third delay component may delay the delayed clock signal clk2 to provide a delayed clock signal clk3. The fourth delay component may delay the delayed clock signal clk3 to provide a delayed clock signal clk4. The fifth delay component may delay the delayed clock signal clk4 to provide a delayed clock signal clk5. The sixth delay component may delay the delayed clock signal clk5 to provide a delayed clock signal clk6. The seventh delay component can delay the delayed clock signal clk6 to provide a delayed clock signal clk7. In this way, a plurality of delayed clock signals can be reliably generated sequentially, and such a clock delay unit 20 has a simple structure and low cost.

[0025] Each of the multiple delay components 21 can use any appropriate clock delay technology to delay the clock signal. For example, in some embodiments, the delay component 21 can use a buffer to delay the clock signal. In other embodiments, the delay component 21 can use a multi-stage inverter to delay the clock signal. In still other embodiments, the delay component 21 can use a resistor-capacitor (RC) delay component to delay the clock signal. It should be understood that the above-mentioned structure of the delay component 21 is merely an example and is not intended to limit the embodiments of the present disclosure in any way. Any currently known or future developed clock delay technology can be used in conjunction with the embodiments of the present disclosure.

[0026] In some embodiments, each of the multiple delay components 21 can provide the same amount of delay. For example, each delay component 21 shown in FIG1 can provide a delay of 12.5% ​​of the clock cycle. FIG2 shows a timing diagram of the original clock signal clk0 and multiple delayed clock signals clk1-clk7. As shown in FIG2, the clock signal clk1 is delayed by 12.5% ​​of the clock cycle relative to the original clock signal clk0, the clock signal clk2 is delayed by 25% of the clock cycle relative to the original clock signal clk0, the clock signal clk3 is delayed by 37.5% of the clock cycle relative to the original clock signal clk0, the clock signal clk4 is delayed by 50% of the clock cycle relative to the original clock signal clk0, the clock signal clk5 is delayed by 62.5% of the clock cycle relative to the original clock signal clk0, the clock signal clk6 is delayed by 75% of the clock cycle relative to the original clock signal clk0, and the clock signal clk7 is delayed by 87.5% of the clock cycle relative to the original clock signal clk0. It should be understood that, in the case where the clock delay unit 20 includes more or fewer delay components 21 , each delay component 21 may provide a delay amount of other values.

[0027] Alternatively, in some embodiments, multiple delay components 21 may provide different delay amounts, which may be selected according to circuit design and actual needs, and the embodiments of the present disclosure are not limited in this regard.

[0028] In some embodiments, the clock delay unit 20 may include multiple separate delay components, rather than the multiple delay components connected sequentially as shown in FIG1 , to provide corresponding delayed clock signals. This arrangement can also provide multiple delayed clock signals, but is more complex and more expensive than the structure shown in FIG1 .

[0029] It should be understood that the above structure of the clock delay unit 20 is merely an example and is not intended to limit the embodiments of the present disclosure in any way. Any clock delay technology currently known or developed in the future can be used in combination with the embodiments of the present disclosure.

[0030] The stretched clock generator 30 is configured to generate a stretched clock signal clk_bro based on the original clock signal clk0 and a plurality of delayed clock signals clk1-clk7. The frequency of the stretched clock signal clk_bro is lower than the frequency of the original clock signal clk0. An exemplary timing diagram of the stretched clock signal clk_bro is shown in FIG2. As shown in FIG2, the frequency of the stretched clock signal clk_bro is lower than the frequency of the original clock signal clk0, and the duration of a single clock cycle of the stretched clock signal clk_bro is longer than the duration of a single clock cycle of the original clock signal clk0. The stretched clock generator 30 may employ any appropriate clock stretching technique to generate the stretched clock signal clk_bro based on the original clock signal clk0 and the plurality of delayed clock signals clk1-clk7.

[0031] For example, in some embodiments, as shown in FIG1 , the stretched clock generator 30 includes a signal selection unit 31 and a clock stretching unit 32. The signal selection unit 31 is configured to cyclically select a clock signal from the original clock signal clk0 and a plurality of delayed clock signals clk1-clk7 in a predetermined order. The clock stretching unit 32 is configured to generate a stretched clock signal clk_bro based on the clock signal clk_sel selected by the signal selection unit 31.

[0032] FIG3 illustrates a predetermined sequence for cyclically selecting clock signals from an original clock signal clk0 and a plurality of delayed clock signals clk1-clk7 according to an embodiment of the present disclosure. As shown in FIG3 , the signal selection unit 31 cyclically selects clock signals from the original clock signal clk0 and a plurality of delayed clock signals clk1-clk7 in a counterclockwise order indicated by the arrows. Specifically, the signal selection unit 31 first selects the original clock signal clk0, and then sequentially selects the delayed clock signals clk5, clk2, clk7, clk4, clk1, clk6, and clk3. Subsequently, the signal selection unit 31 selects the original clock signal clk0 again, thereby entering the next selection cycle.

[0033] The signal selection unit 31 can be implemented in various ways to cyclically select a clock signal from the original clock signal clk0 and the multiple delayed clock signals clk1-clk7. As an example, FIG4 shows an exemplary implementation of the signal selection unit 31. As shown in FIG4, the signal selection unit 31 includes a switch matrix 33 and a switch matrix control unit 34. The switch matrix 33 includes multiple switches, such as a first switch 331 to an eighth switch 338. In conjunction with FIG1, one end of each of the first switch 331 to the eighth switch 338 is coupled to the clock delay unit 20 to receive a corresponding clock signal from the original clock signal clk0 and the multiple delayed clock signals clk1-clk7. Specifically, one end of the first switch 331 is used to receive the original clock signal clk0, one end of the second switch 332 is used to receive the delayed clock signal clk5, one end of the third switch 333 is used to receive the delayed clock signal clk2, one end of the fourth switch 334 is used to receive the delayed clock signal clk7, one end of the fifth switch 335 is used to receive the delayed clock signal clk4, one end of the sixth switch 336 is used to receive the delayed clock signal clk1, one end of the seventh switch 337 is used to receive the delayed clock signal clk6, and one end of the eighth switch 338 is used to receive the delayed clock signal clk3. The other end of each switch is coupled to the clock stretching unit 32 to provide the clock signal clk_sel selected by the signal selection unit 31 to the clock stretching unit 32. With this arrangement, clock signals can be stably and reliably cyclically selected from the original clock signal clk0 and the multiple delayed clock signals clk1-clk7. The circuit structure is simple and the implementation cost is low.

[0034] In some embodiments, the clock signal can be cyclically selected from the original clock signal clk0 and the multiple delayed clock signals clk1-clk7 by cyclically controlling the on-off state of the switches 331-338. The on-off state of the first switch 331 to the eighth switch 338 can be controlled by the corresponding control signals S1 to S8. For example, the on-off state of the first switch 331 can be controlled by the control signal S1. As an example, when the control signal S1 is 0 (low level), the first switch 331 is turned off, and when the control signal S1 is 1 (high level), the first switch 331 is turned on. As another example, when the control signal S1 is 1, the first switch 331 can be turned off, and when the control signal S1 is 0, the first switch 331 can be turned on. Similarly, by changing the level of the control signals S2-S8, the on-off state of the corresponding switch in the second switch 332 to the eighth switch 338 can be changed.

[0035] The control signals S1 to S8 may be provided by the switch matrix control unit 34. As shown in FIG4 , the switch matrix control unit 34 may generate the control signals S1 to S8 based on the enable signal EN to control the first switch 331 to the eighth switch 338 to be cyclically turned on in sequence, thereby causing the original clock signal clk0 and the plurality of delayed clock signals clk1-clk7 to be cyclically selected by the signal selection unit 31 in a predetermined order as shown in FIG3 . The switch matrix control unit 34 may generate the control signals S1 to S8 in any appropriate manner.

[0036] The enable signal EN can be provided in various ways. For example, returning to Figure 1, the enable signal EN can be provided by the control unit 50. In some embodiments, when there is a need for adaptive adjustment of the clock signal in the integrated circuit, such as when there is a power supply fluctuation or due to power consumption requirements or functional requirements for the integrated circuit, the control unit 50 can provide the enable signal EN at a high level to the switch matrix control unit 34 to start the generation of control signals S1 to S8. In the case where there is no need for adaptive adjustment of the clock signal in the integrated circuit, the control unit 50 can provide the enable signal EN at a low level to the switch matrix control unit 34. An exemplary level logic of the enable signal EN is shown in Figure 2. It should be understood that in other embodiments, the control unit 50 can provide the enable signal EN with an opposite level logic.

[0037] For example, in some embodiments, as shown in FIG4 , the switch matrix control unit 34 includes a start-up unit 341 and a switch signal generation unit 342. The start-up unit 341 is configured to generate a widening start signal START based on an enable signal EN. The widening start signal START is configured to control the switch signal generation unit 342 to begin generating control signals S1 to S8. The switch signal generation unit 342 is configured to generate corresponding control signals S1 to S8 for controlling the on / off states of the first to eighth switches 331 to 338 based on the widening start signal START, thereby causing the first to eighth switches 331 to 338 to be cyclically turned on in sequence. This arrangement allows for precise control of the conduction states of the multiple switches in the switch matrix 33, and the circuit structure is simple and low-cost.

[0038] In some embodiments, as shown in FIG4 , the start-up unit 341 includes a pulse generator 3411, an OR gate 3412, and a set-reset (SR) latch 3413. The pulse generator 3411 generates a pulse signal EN_PULSE based on the enable signal EN. One input of the OR gate 3412 is connected to the output of the pulse generator 3411 to receive the pulse signal EN_PULSE. Another input of the pulse generator 3411 receives a control signal S8 for the last switch (e.g., the eighth switch 338) among the multiple switches in the switch matrix 33. The S input (i.e., the set input) of the SR latch 3413 is connected to the output of the OR gate 3412. The R input (i.e., the reset input) of the SR latch 3413 receives a control signal S1 for the first switch (i.e., the first switch 331) among the multiple switches in the switch matrix 33. The output of the SR latch 3413 provides the stretch start signal START.

[0039] Upon receiving the stretch start signal START, the switch signal generation unit 342 begins generating control signals, such as control signals S1 to S8, for the multiple switches included in the switch matrix 33. In one embodiment, as shown in FIG4 , the switch signal generation unit 342 includes a multiplexer 3421, a plurality of D flip-flops 3422 connected in series, and a first additional D flip-flop 3423.

[0040] One input terminal of the multiplexer 3421 receives the stretched clock signal clk_bro, and the other input terminal of the multiplexer 3421 receives the original clock signal clk0. The multiplexer 3421 is configured to select one of the stretched clock signal clk_bro and the original clock signal clk0 based on a selection control signal at a selection control terminal S, and provide the selection result at its output terminal clk_out. In some embodiments, when the selection control signal at the selection control terminal S is 1, the multiplexer 3421 selects the stretched clock signal clk_bro, and when the selection control signal at the selection control terminal S is 0, the multiplexer 3421 selects the original clock signal clk0. It should be understood that the opposite selection logic is also possible.

[0041] The D input of the first D flip-flop in the series-connected plurality of D flip-flops 3422 is connected to the output of the SR latch 3413 to receive the stretch start signal START. The other D flip-flops in the plurality of D flip-flops 3422, except for the first D flip-flop, are sequentially connected after the first D flip-flop. That is, the D inputs of the other D flip-flops in the plurality of D flip-flops 3422, except for the first D flip-flop, are connected to the Q output of the previous D flip-flop. The clock input CLK of the plurality of D flip-flops 3422 is connected to the output clk_out of the multiplexer 3421. The Q outputs of the plurality of D flip-flops 3422 provide control signals, such as control signals S1 to S8, for the plurality of switches included in the switch matrix 33.

[0042] The clock input of the first additional D flip-flop 3423 is connected to the Q output of the first D flip-flop in the plurality of D flip-flops 3422. The D input of the first additional D flip-flop 3423 receives the enable signal EN. The Q output of the first additional D flip-flop 3423 is connected to the select control terminal S of the multiplexer 3421.

[0043] The switch signal generating unit 342 as described above uses specially designed control logic to provide accurate switch control signals, ensuring that the multiple switches in the switch matrix 33 are turned on in a predetermined order. In addition, such a circuit structure is simple and easy to implement.

[0044] As described above, the clock stretching unit 32 is configured to generate the stretched clock signal clk_bro based on the clock signal clk_sel selected by the signal selection unit 31. The clock stretching unit 32 may use any appropriate clock stretching technology to stretch the clock signal.

[0045] For example, in some embodiments, as shown in FIG4 , the clock stretching unit 32 includes a second additional D flip-flop 321 and an inverter 322. A clock input terminal CLK of the second additional D flip-flop 321 is connected to an output terminal of the signal selection unit 31 to receive the clock signal clk_sel selected by the signal selection unit 31. An input terminal of the inverter 322 is connected to a Q output terminal of the second additional D flip-flop 321. An output terminal of the inverter 322 is connected to a D input terminal of the second additional D flip-flop 321. An output terminal of the inverter 322 provides a stretched clock signal clk_bro.

[0046] An exemplary operation of the stretched clock generator 30 will be described below with reference to FIG. 4 .

[0047] As shown in Figure 4, when a high-level (logic 1) enable signal EN is provided to pulse generator 3411, pulse generator 3411 generates a pulse signal EN_PULSE. The pulse signal EN_PULSE is applied to SR latch 3413 via OR gate 3412, causing SR latch 3413 to be set to 1, thereby changing the stretch start signal START to 1. At this time, since the select control signal at the select control terminal S of multiplexer 3421 is 0, multiplexer 3421 provides the original clock signal clk0 to the clock input terminals CLK of multiple D flip-flops 3422. When the rising edge of the original clock signal clk0 arrives, the first D flip-flop in the multiple D flip-flops 3422 changes the control signal S1 to 1, while the control signals S2-S8 remain 0, turning on the first switch 331 and turning off the second through eighth switches 332-338. When control signal S1 becomes 1, the select control signal at select control terminal S of multiplexer 3421 also becomes 1, causing multiplexer 3421 to provide the stretched clock signal clk_bro to the clock input terminals CLK of multiple D flip-flops 3422. Upon a rising edge of the stretched clock signal clk_bro, multiple D flip-flops 3422 change control signal S1 to 0 and control signal S2 to 1, while control signals S3-S8 remain 0. This turns on the second switch 332 and turns off the remaining switches. Upon the next rising edge of the stretched clock signal clk_bro, multiple D flip-flops 3422 change control signal S2 to 0 and control signal S3 to 1, while control signals S1 and S4-S8 remain 0. This turns on the third switch 333 and turns off the remaining switches. In this way, control signals S1-S8 can be sequentially cycled to 1, turning on switches 1 through 338.

[0048] Furthermore, as shown in FIG4 , when the first switch 331 is turned on, the original clock signal clk0 is provided to the clock input terminal CLK of the second additional D flip-flop 321. With reference to FIG2 , when the rising edge of the original clock signal clk0 arrives, the second additional D flip-flop 321 and the inverter 322 cause the stretched clock signal clk_bro to be 1. When the second switch 332 is turned on, the delayed clock signal clk5 is provided to the clock input terminal CLK of the second additional D flip-flop 321. With reference to FIG2 , when the rising edge of the delayed clock signal clk5 arrives, the second additional D flip-flop 321 and the inverter 322 cause the stretched clock signal clk_bro to be 0. When the third switch 333 is turned on, the delayed clock signal clk2 is provided to the clock input terminal CLK of the second additional D flip-flop 321. 2 , when the rising edge of the delayed clock signal clk2 arrives, the second additional D flip-flop 321 and the inverter 322 cause the stretched clock signal clk_bro to become 1. When the fourth switch 334 turns on, the delayed clock signal clk7 is provided to the clock input terminal CLK of the second additional D flip-flop 321. With reference to FIG2 , when the rising edge of the delayed clock signal clk7 arrives, the second additional D flip-flop 321 and the inverter 322 cause the stretched clock signal clk_bro to become 0. In this way, by sequentially turning on the first to eighth switches 331 to 338, the second additional D flip-flop 321 and the inverter 322 can switch the level of the stretched clock signal clk_bro between 1 and 0. As shown in FIG2 , the frequency of the stretched clock signal clk_bro is lower than that of the original clock signal clk0, and the duration of a single clock cycle of the stretched clock signal clk_bro is longer than that of the original clock signal clk0.

[0049] Returning to FIG. 1 , the clock selector 40 is connected to the clock buffer 10 and the stretched clock generator 30 for selecting one of the buffered clock signal clk_buf and the stretched clock signal clk_bro as the circuit clock signal clk_adap based on the selection signal SELECT.

[0050] The select signal SELECT can be provided in various ways. For example, returning to FIG. 1 , the select signal SELECT can be provided by the control unit 50 . In some embodiments, when adaptive adjustment of the clock signal is required in the integrated circuit, such as when power supply fluctuations occur or due to power consumption requirements or functional requirements for the integrated circuit, the control unit 50 can provide the select signal SELECT at a high level to the clock selector 40 so that the clock selector 40 selects the stretched clock signal clk_bro as the circuit clock signal clkadap . In contrast, when adaptive adjustment of the clock signal is not required in the integrated circuit, the control unit 50 can provide the select signal SELECT at a low level to the clock selector 40 so that the clock selector 40 selects the buffered clock signal clk_buf as the circuit clock signal clk_adap . It should be understood that in other embodiments, the control unit 50 can also provide the select signal SELECT at the opposite level logic. In this case, the clock selector 40 may select the stretched clock signal clk_bro as the circuit clock signal clk_adap when the control unit 50 provides the selection signal SELECT at a low level, and select the buffered clock signal clk_buf as the circuit clock signal clk_adap when the control unit 50 provides the selection signal SELECT at a high level.

[0051] In one embodiment, the clock selector 40 may include a glitch-free multiplexer. In other embodiments, the clock selector 40 may be implemented in other ways, which are not limited in the embodiments of the present disclosure.

[0052] FIG5 shows a timing diagram of a circuit clock signal according to an embodiment of the present disclosure. As shown in FIG5 , when the enable signal EN is at a low level, the original clock signal clk0 is used as the circuit clock signal clk_adap, and its clock period is approximately 499.468 picoseconds (ps). When the enable signal EN becomes a high level, the widened clock signal clk_bro is used as the circuit clock signal clk_adap, and its clock period after stabilization is approximately 598.032 ps. It can be seen that in an embodiment of the present disclosure, when there is a need to adaptively adjust the clock signal in an integrated circuit, the clock signal can be quickly widened to process data at a slower clock frequency, avoid timing errors, and ensure the correctness of data transmission. In addition, compared with the conventional solution of using two PLLs to generate two clock frequencies, the embodiment of the present disclosure can achieve adaptive adjustment of the clock signal at a lower cost.

[0053] The embodiment of the present disclosure further provides a method 600 for generating a circuit clock signal, as shown in Figure 6. The method 600 may be executed by the apparatus for generating a circuit clock signal described above in conjunction with Figures 1 to 5 . As shown in FIG6 , method 600 includes: at block 610 , buffering an original clock signal clk0 to obtain a buffered clock signal clk_buf; at block 620 , delaying the original clock signal clk0 to obtain a plurality of delayed clock signals clk1-clk7, wherein the plurality of delayed clock signals clk1-clk7 are respectively delayed by different amounts of time relative to the original clock signal clk0; at block 630 , generating a stretched clock signal clk_bro based on the original clock signal clk0 and the plurality of delayed clock signals clk1-clk7, wherein the frequency of the stretched clock signal clk_bro is lower than the frequency of the original clock signal clk0; and at block 640 , selecting one of the buffered clock signal clk_buf and the stretched clock signal clk_bro as the circuit clock signal clk_adap based on a selection signal SELECT.

[0054] In some embodiments, delaying the original clock signal clk0 includes: delaying the original clock signal clk0 by a plurality of delay components 21 connected in sequence, the number of delay components 21 being equal to the number of delayed clock signals, the original clock signal clk0 being provided to the first delay component of the plurality of delay components 21, and each delay component of the plurality of delay components 21 respectively providing a corresponding delayed clock signal among the plurality of delayed clock signals clk1-clk7.

[0055] In some embodiments, generating a stretched clock signal clk_bro based on the original clock signal clk0 and a plurality of delayed clock signals clk1-clk7 includes: cyclically selecting a clock signal from the original clock signal clk0 and the plurality of delayed clock signals clk1-clk7 in a predetermined order by a signal selection unit 31; and generating, by a clock stretching unit 32, the stretched clock signal clk_bro based on the clock signal clk_sel selected by the signal selection unit 31.

[0056] In some embodiments, the signal selection unit 31 cyclically selects a clock signal from the original clock signal clk0 and the multiple delayed clock signals clk1-clk7 in a predetermined order, including: the switch matrix control unit 34 controls the multiple switches of the switch matrix 33 to be cyclically turned on in sequence based on the enable signal EN, so that the original clock signal clk0 and the multiple delayed clock signals clk1-clk7 are selected by the signal selection unit 31 in a predetermined order, wherein one end of each of the multiple switches is coupled to the clock delay unit 20 to receive the original clock signal clk0 and the corresponding clock signal of the multiple delayed clock signals clk1-clk7, and the other end of each of the multiple switches is coupled to the clock stretching unit 32 to provide the clock signal selected by the signal selection unit 31 to the clock stretching unit 32.

[0057] In some embodiments, the switch matrix control unit 34 controls the multiple switches of the switch matrix 33 to be turned on in a cyclic manner based on the enable signal EN, including: the start unit 341 generates a widened start signal START based on the enable signal EN; and the switch signal generation unit 342 generates corresponding control signals for controlling the multiple switches based on the widened start signal START, so that the multiple switches are turned on in a cyclic manner.

[0058] The embodiments of the present disclosure are also embodied in the following examples.

[0059] Example 1. An apparatus for generating a circuit clock signal, comprising:

[0060] a clock buffer configured to buffer the original clock signal to obtain a buffered clock signal;

[0061] a clock delay unit configured to delay the original clock signal to obtain a plurality of delayed clock signals, wherein the plurality of delayed clock signals are respectively delayed by different amounts of time relative to the original clock signal;

[0062] a stretched clock generator configured to generate a stretched clock signal based on the original clock signal and the plurality of delayed clock signals, the stretched clock signal having a frequency lower than a frequency of the original clock signal; and

[0063] A clock selector is configured to select one of the buffered clock signal and the stretched clock signal as the circuit clock signal based on a selection signal.

[0064] Example 2. An apparatus according to Example 1, wherein the clock delay unit comprises a plurality of delay components connected in sequence, the number of the delay components being equal to the number of the delayed clock signals, the original clock signal being provided to a first delay component of the plurality of delay components, and each of the plurality of delay components providing a corresponding delayed clock signal of the plurality of delayed clock signals.

[0065] Example 3. The apparatus of example 2, wherein each delay component of the plurality of delay components is configured to provide the same amount of delay.

[0066] Example 4. The apparatus of Example 1, wherein the stretched clock generator comprises:

[0067] a signal selecting unit configured to cyclically select a clock signal from the original clock signal and the plurality of delayed clock signals in a predetermined order; and

[0068] The clock stretching unit is configured to generate the stretched clock signal based on the clock signal selected by the signal selection unit.

[0069] Example 5. The apparatus of Example 4, wherein the signal selection unit comprises:

[0070] a switch matrix comprising a plurality of switches, one end of each of the plurality of switches being coupled to the clock delay unit to receive the original clock signal and a corresponding clock signal among the plurality of delayed clock signals, and the other end of each of the plurality of switches being coupled to the clock stretching unit to provide the clock signal selected by the signal selection unit to the clock stretching unit; and

[0071] The switch matrix control unit is configured to control the plurality of switches to be cyclically turned on in sequence based on an enable signal, so that the original clock signal and the plurality of delayed clock signals are selected by the signal selection unit in the predetermined order.

[0072] Example 6. The apparatus of Example 5, wherein the switch matrix control unit comprises:

[0073] a start-up unit configured to generate a stretch start signal based on the enable signal; and

[0074] The switch signal generating unit is configured to generate corresponding control signals for controlling the plurality of switches based on the stretch start signal, so that the plurality of switches are cyclically turned on in sequence.

[0075] Example 7. The apparatus of Example 6, wherein the startup unit comprises:

[0076] a pulse generator configured to generate a pulse signal based on the enable signal;

[0077] an OR gate, one input terminal of which receives the pulse signal, and another input terminal of which receives the control signal of the last switch among the plurality of switches; and

[0078] An SR latch has an S input connected to the output of the OR gate, an R input receiving the control signal of the first switch among the plurality of switches, and an output providing the stretch start signal.

[0079] Example 8. The apparatus of Example 6, wherein the switch signal generating unit comprises:

[0080] a multiplexer, one input terminal of which receives the stretched clock signal, and another input terminal of which receives the original clock signal;

[0081] a plurality of D flip-flops connected in series, wherein a D input terminal of a first D flip-flop among the plurality of D flip-flops receives the stretch start signal, D input terminals of other D flip-flops among the plurality of D flip-flops except the first D flip-flop are connected to a Q output terminal of the previous D flip-flop, clock input terminals of the plurality of D flip-flops are connected to an output terminal of the multiplexer, and Q output terminals of the plurality of D flip-flops respectively provide the control signals for the plurality of switches; and

[0082] The first additional D flip-flop has a clock input connected to the Q output of the first D flip-flop, a D input receiving the enable signal, and a Q output connected to the selection control terminal of the multiplexer.

[0083] Example 9. The apparatus of Example 4, wherein the clock stretching unit comprises:

[0084] a second additional D flip-flop, a clock input terminal of which receives the clock signal selected by the signal selection unit; and

[0085] An inverter, an input terminal of the inverter is connected to the Q output terminal of the second additional D flip-flop, an output terminal of the inverter is connected to the D input terminal of the second additional D flip-flop, and an output terminal of the inverter provides the stretched clock signal.

[0086] Example 10. A method for generating a circuit clock signal, comprising:

[0087] buffering the original clock signal to obtain a buffered clock signal;

[0088] delaying the original clock signal to obtain a plurality of delayed clock signals, wherein the plurality of delayed clock signals are respectively delayed by different amounts of time relative to the original clock signal;

[0089] generating a stretched clock signal based on the original clock signal and the plurality of delayed clock signals, the stretched clock signal having a lower frequency than the original clock signal; and

[0090] One of the buffered clock signal and the stretched clock signal is selected as the circuit clock signal based on a selection signal.

[0091] Example 11. The method of Example 10, wherein delaying the original clock signal comprises:

[0092] The original clock signal is delayed by a plurality of delay components connected in sequence, the number of the delay components being equal to the number of the delayed clock signals, the original clock signal is provided to a first delay component of the plurality of delay components, and each delay component of the plurality of delay components respectively provides a corresponding delayed clock signal of the plurality of delayed clock signals.

[0093] Example 12. The method of Example 10, wherein generating a stretched clock signal based on the original clock signal and the plurality of delayed clock signals comprises:

[0094] cyclically selecting a clock signal from the original clock signal and the plurality of delayed clock signals in a predetermined order by a signal selection unit; and

[0095] The stretched clock signal is generated by a clock stretching unit based on the clock signal selected by the signal selecting unit.

[0096] Example 13. The method of Example 12, wherein cyclically selecting, by the signal selection unit, a clock signal from the original clock signal and the plurality of delayed clock signals in a predetermined order comprises:

[0097] A switch matrix control unit controls a plurality of switches of the switch matrix to be cyclically turned on in sequence based on an enable signal, so that the original clock signal and the plurality of delayed clock signals are selected by the signal selection unit in the predetermined order, wherein one end of each of the plurality of switches is coupled to the clock delay unit to receive the original clock signal and a corresponding clock signal of the plurality of delayed clock signals, and the other end of each of the plurality of switches is coupled to the clock stretching unit to provide the clock signal selected by the signal selection unit to the clock stretching unit.

[0098] Example 14. The method of Example 13, wherein the control of the switch matrix control unit to sequentially turn on the plurality of switches of the switch matrix in a cyclic manner based on the enable signal comprises:

[0099] generating, by a startup unit, a stretched startup signal based on the enable signal; and

[0100] A switch signal generating unit generates corresponding control signals for controlling the plurality of switches based on the stretch start signal, so that the plurality of switches are cyclically turned on in sequence.

[0101] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations disclosed herein.

Claims

1. A device for generating a circuit clock signal, comprising: A clock buffer (10) configured to buffer the original clock signal to obtain a buffered clock signal; A clock delay unit (20) is configured to delay the original clock signal to obtain a plurality of delayed clock signals, wherein the plurality of delayed clock signals are respectively delayed by different time amounts relative to the original clock signal; a stretched clock generator (30) configured to generate a stretched clock signal based on the original clock signal and the plurality of delayed clock signals, wherein the frequency of the stretched clock signal is lower than the frequency of the original clock signal; as well as A clock selector (40) is configured to select one of the buffered clock signal and the stretched clock signal as the circuit clock signal based on a selection signal.

2. The device according to claim 1, wherein the clock delay unit (20) comprises a plurality of delay components (21) connected in sequence, the number of the delay components (21) is equal to the number of the delayed clock signals, the original clock signal is provided to the first delay component among the plurality of delay components (21), and each delay component among the plurality of delay components (21) respectively provides a corresponding delayed clock signal among the plurality of delayed clock signals.

3. The apparatus of claim 2, wherein each of the plurality of delay components (21) is configured to provide the same amount of delay.

4. The apparatus according to claim 1, wherein the stretched clock generator (30) comprises: A signal selection unit (31) configured to cyclically select a clock signal from the original clock signal and the plurality of delayed clock signals in a predetermined order; as well as A clock stretching unit (32) is configured to generate the stretched clock signal based on the clock signal selected by the signal selection unit (31).

5. The device according to claim 4, wherein the signal selection unit (31) comprises: a switch matrix (33) comprising a plurality of switches, wherein one end of each of the plurality of switches is coupled to the clock delay unit (20) to receive the original clock signal and a corresponding clock signal among the plurality of delayed clock signals, and the other end of each of the plurality of switches is coupled to the clock stretching unit (32) to provide the clock signal selected by the signal selection unit (31) to the clock stretching unit (32); as well as The switch matrix control unit (34) is configured to control the plurality of switches to be turned on in sequence based on an enable signal, so that the original clock signal and the plurality of delayed clock signals are selected by the signal selection unit (31) in the predetermined order.

6. The apparatus according to claim 5, wherein the switch matrix control unit (34) comprises: A start unit (341) configured to generate a widening start signal based on the enable signal; as well as The switch signal generating unit (342) is configured to generate corresponding control signals for controlling the plurality of switches based on the stretch start signal, so that the plurality of switches are turned on in sequence and cycle.

7. The device according to claim 6, wherein the starting unit (341) comprises: A pulse generator (3411) configured to generate a pulse signal based on the enable signal; an OR gate (3412), one input terminal of which receives the pulse signal, and another input terminal of which receives the control signal of the last switch among the plurality of switches; as well as The SR latch (3413) has an S input terminal connected to the output terminal of the OR gate (3412), an R input terminal receiving the control signal of the first switch among the plurality of switches, and an output terminal providing the widening start signal.

8. The device according to claim 6, wherein the switch signal generating unit (342) comprises: A multiplexer (3421) having one input terminal receiving the stretched clock signal A signal, another input end of which receives the original clock signal; A plurality of D flip-flops (3422) connected in series, wherein the D input terminal of a first D flip-flop among the plurality of D flip-flops (3422) receives the stretch start signal, the D input terminals of the other D flip-flops among the plurality of D flip-flops (3422) except the first D flip-flop are connected to the Q output terminal of the previous D flip-flop, the clock input terminals of the plurality of D flip-flops (3422) are connected to the output terminal of the multiplexer (3421), and the Q output terminals of the plurality of D flip-flops (3422) respectively provide the control signals for the plurality of switches; as well as The first additional D flip-flop (3423) has a clock input terminal connected to the Q output terminal of the first D flip-flop, a D input terminal receiving the enable signal, and a Q output terminal connected to the selection control terminal of the multiplexer (3421).

9. The apparatus according to claim 4, wherein the clock stretching unit (32) comprises: A second additional D flip-flop (321), whose clock input terminal receives the clock signal selected by the signal selection unit (31); as well as An inverter (322), wherein the input terminal of the inverter (322) is connected to the Q output terminal of the second additional D flip-flop (321), the output terminal of the inverter (322) is connected to the D input terminal of the second additional D flip-flop (321), and the output terminal of the inverter (322) provides the stretched clock signal.

10. A method for generating a circuit clock signal, comprising: buffering the original clock signal to obtain a buffered clock signal; Delaying the original clock signal to obtain a plurality of delayed clock signals, wherein the plurality of delayed clock signals are respectively delayed by different amounts of time relative to the original clock signal; generating a stretched clock signal based on the original clock signal and the plurality of delayed clock signals, the stretched clock signal having a frequency lower than a frequency of the original clock signal; as well as One of the buffered clock signal and the stretched clock signal is selected as the circuit clock signal based on a selection signal.

11. The method according to claim 10, wherein delaying the original clock signal comprises: The original clock signal is delayed by a plurality of delay components connected in sequence, the number of the delay components being equal to the number of the delayed clock signals, the original clock signal is provided to a first delay component among the plurality of delay components, and each delay component among the plurality of delay components respectively provides a corresponding delayed clock signal among the plurality of delayed clock signals.

12. The method of claim 10, wherein generating a stretched clock signal based on the original clock signal and the plurality of delayed clock signals comprises: cyclically selecting a clock signal from the original clock signal and the plurality of delayed clock signals in a predetermined order by a signal selection unit; as well as The stretched clock signal is generated by a clock stretching unit based on the clock signal selected by the signal selecting unit.

13. The method according to claim 12, wherein cyclically selecting a clock signal from the original clock signal and the plurality of delayed clock signals in a predetermined order by a signal selection unit comprises: A switch matrix control unit controls a plurality of switches of the switch matrix to be turned on in sequence based on an enable signal, so that the original clock signal and the plurality of delayed clock signals are selected by the signal selection unit in the predetermined order, wherein one end of each of the plurality of switches is coupled to the clock delay unit to receive the original clock signal and a corresponding clock signal of the plurality of delayed clock signals, and the other end of each of the plurality of switches is coupled to the clock stretching unit to provide the clock signal selected by the signal selection unit to the clock stretching unit.

14. The method according to claim 13, wherein the control unit of the switch matrix controls the plurality of switches of the switch matrix to be turned on in sequence based on the enable signal, comprising: The start-up unit generates a widening start signal based on the enable signal; as well as A switch signal generating unit generates corresponding control signals for controlling the plurality of switches based on the stretch start signal, so that the plurality of switches are turned on in sequence and cycle.

Citation Information

Patent Citations

  • Clock frequency diffusing device

    CN101295971A

  • Spread spectrum clock generating circuit with power-saving control

    CN101867356A

  • Adjustable duty ratio circuit

    CN112511135A

  • Pulse signal width measuring device, method, system and medium

    CN115542021A

  • Clock generating circuit and semiconductor integrated circuit using the same

    US6518813B1