Semiconductor device performing clock gating and method of operating same
By using critical path monitors and clock gating circuits in semiconductor devices to monitor the power supply voltage and perform clock gating, the problem of voltage drop response to clock signals is solved, reducing power consumption and improving device stability.
Patent Information
- Application Number
- CN202410337091.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2024-03-22
- Publication Date
- 2024-09-24
AI Technical Summary
As the integration and complexity of semiconductor equipment increases, the chip temperature rises when power consumption is high, resulting in slow or inoperable operation, and the package may be damaged or shortened in life. It is difficult for existing technology to effectively solve the problem of rapid voltage drop on clock signals. Respond to questions.
By introducing critical path monitor (CPM) and clock gating circuits in semiconductor devices, the power supply voltage is monitored and an enable signal is generated based on the voltage drop, and clock gating is performed to pause or adjust the oscillation of the clock signal, reduce the overall operating frequency, and prevent Fault.
It achieves rapid response and compensation for voltage drops, reduces power consumption, extends equipment life, avoids failures caused by voltage drops, and improves equipment reliability and stability.
Smart Images

Figure CN118689296A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on and claims the benefit of priority from Korean Patent Application No. 10-2023-0039214 filed in the Korean Intellectual Property Office on March 24, 2023, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates generally to semiconductor devices, and more particularly, to a semiconductor device that performs clock gating to compensate for voltage drop, and an operating method of the semiconductor device. Background Art
[0004] As semiconductor devices become more integrated and complex, and their operating speeds increase, the issue of low power consumption becomes paramount. When power consumption is high, the temperature of the chip may rise, causing the chip to operate slowly or even become inoperable. In addition, the package may be damaged or have a shortened lifespan.
[0005] Circuits that provide or block clocks to reduce power are sometimes incorporated into semiconductor circuits within semiconductor devices. Clock gating circuits can be used to halt the clock to a specific circuit, thereby controlling the overall operating frequency of the specific circuit. Summary of the invention
[0006] Embodiments of the inventive concept provide a semiconductor device that monitors an operation speed of a circuit generated by a voltage drop with a fast response time and compensates for the voltage drop by performing clock gating on a clock signal, and an operating method of the semiconductor device.
[0007] According to one aspect of the inventive concept, there is provided a semiconductor device including: an intellectual property (IP) block configured to operate based on a first clock signal and a power supply voltage; a clock gating circuit configured to generate a first clock signal by selectively performing clock gating on a second clock signal based on an enable signal; and a critical path monitor (CPM) configured to operate based on the power supply voltage, generate a digital code having a value that varies according to a voltage drop of the power supply voltage, and activate the enable signal based on a comparison of the value of the digital code with a reference value.
[0008] According to another aspect of the inventive concept, there is provided an operating method of a semiconductor device, including generating a first sampling waveform and a second sampling waveform having an inverted phase with respect to the first sampling waveform by sampling an input waveform based on a first clock signal, generating a first waveform based on a comparison result between the first sampling waveform and a first delayed waveform generated by delaying the first sampling waveform using a first delay circuit operating based on a power supply voltage, generating a second waveform based on a comparison result between the second sampling waveform and a second delayed waveform generated by delaying the second sampling waveform using a second delay circuit operating based on the power supply voltage, generating an enable signal by comparing a value of a digital code in which the first waveform and the second waveform are merged with a reference value, and performing clock gating on the first clock signal based on the enable signal.
[0009] According to another aspect of the inventive concept, a semiconductor device is provided, including a processor, a clock generator configured to generate a first clock signal, a clock gating circuit configured to generate a second clock signal provided to the processor by performing clock gating on the first clock signal based on an enable signal, and a CPM configured to operate based on a power supply voltage and adjust a deactivation time of the enable signal based on the amplitude of the power supply voltage.
[0010] According to another aspect of the inventive concept, the processor is an intellectual property (IP) module.
[0011] According to another aspect of the present invention, a semiconductor device is provided, including: a processor; a clock generator configured to generate a first clock signal; a clock gating circuit configured to generate a second clock signal provided to the processor by performing clock gating on the first clock signal based on an enable signal; and a CPM configured to monitor a critical path of the processor based on a power supply voltage and to start a deactivation period of the enable signal using a binary code generated based on the amplitude of the power supply voltage. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The embodiments may be more clearly understood through the following detailed description in conjunction with the accompanying drawings, in which:
[0013] Figure 1 is a block diagram of a semiconductor device according to an embodiment;
[0014] Figure 2 is a diagram of a semiconductor system according to an embodiment;
[0015] Figure 3 is a circuit diagram of a power delivery network according to an embodiment;
[0016] Figure 4is a block diagram of a critical path monitor (CPM) and clock gating circuit according to an embodiment;
[0017] Figure 5 is a flowchart of an operating method of a semiconductor device according to an embodiment;
[0018] Figure 6 is a circuit diagram of a clock gating circuit according to an embodiment;
[0019] Figure 7 is a timing diagram of the operation of the semiconductor device according to the embodiment;
[0020] Figure 8 is a timing diagram of the operation of the semiconductor device according to the embodiment;
[0021] Fig. 9 is a diagram of CPM codes and reference values according to an embodiment;
[0022] Fig.10 is a diagram of CPM codes and reference values according to an embodiment;
[0023] Fig.11 is a circuit diagram of a calibration delay circuit according to an embodiment;
[0024] Fig.12 yes Figure 4 Circuit diagram of an example edge detector in ;
[0025] Fig.13 is a timing diagram describing an example method of generating CPM codes; and
[0026] Fig.14 is a diagram of a CPM according to an embodiment. DETAILED DESCRIPTION
[0027] Hereinafter, various embodiments of the inventive concept are described with reference to the accompanying drawings.
[0028] Herein, the terms "waveform" and "pattern" are used interchangeably.
[0029] Herein, an element (eg, component, signal, etc.) may be referenced merely by its label following the element's initial introduction (eg, "input clock signal CLK_N" may subsequently be referred to as just "CLK_N").
[0030] Figure 1 is a block diagram of a semiconductor device 1 according to the embodiment.
[0031] refer to Figure 1, the semiconductor device 1 may include a clock generator 110, a critical path monitor (CPM) 120, a clock gating circuit 130, and an intellectual property (IP) block 140. In some embodiments, the semiconductor device 1 may be implemented as a system on chip (SoC). The SoC may include a system bus, and a protocol with a specific standard bus specification is applied to the system bus. The components included in the semiconductor device 1 may be connected to the system bus. For example, as a standard specification for the system bus, the Advanced Microcontroller Bus Architecture (AMBA) protocol of the Advanced Reduced Instruction Set Computer (RISC) Machine (ARM) may be applied. The bus types of the AMBA protocol may include an Advanced High Performance Bus (AHB), an Advanced Peripheral Bus (APB), an Advanced Extensible Interface (AXI), AXI4, an AXI Consistency Extension (ACE), etc. In addition, another protocol type may be applied, such as a network of SONIC, CoreConnect of IBM, and an open core protocol (OCP)-IP.
[0032] The clock generator 110 may generate an input clock signal CLK_IN based on an input power supply voltage VDDin. The clock generator 110 may include an oscillator, a phase-locked loop (PLL) circuit, or a delay-locked loop (DLL) circuit.
[0033] By monitoring the input power supply voltage VDDin, the CPM 120 can effectively monitor the critical path delay within the IP block 140. In addition, when the delay of the critical path is too large (dynamically determined by the amount of voltage drop in VDDin), the CPM 120 can initiate a pause of the clock signal provided to the IP block 140. To this end, the CPM 120 can monitor the input clock signal CLK_IN and generate an enable signal En provided to the clock gating circuit 130. The CPM 120 can generate the enable signal En based on the input power supply voltage VDDin. When the delay of the internal signal is extended and excessive due to the voltage drop of the input power supply voltage VDDin, the CPM 120 can control the output clock signal CLK_OUT by deactivating the enable signal En so that it does not oscillate between low and high logic levels. When the enable signal En is at a low level, the enable signal En can be deactivated, and when the enable signal En is at a high level, the enable signal En is activated, and vice versa (for simplicity, the former example is discussed below).
[0034] The clock gating circuit 130 may generate an output clock signal CLK_OUT by performing a clock gating operation on the input clock signal CLK_IN based on the enable signal En. When the enable signal En is activated, the output clock signal CLK_OUT may oscillate, and when the enable signal En is deactivated, the output clock signal CLK_OUT may not oscillate (output a constant voltage level). Figure 6 An example of the clock gating circuit 130 is described in detail.
[0035] Herein, an "IP block" may be a reusable unit of a logic layout design, a cell layout design, or an IC layout design. In some embodiments, an IP block is not the intellectual property of any party. In other embodiments, an IP block is the intellectual property of one or more parties.
[0036] The IP block 140 may be connected to a system bus and may operate based on an output clock signal CLK_OUT. The IP block 140 may process at least one command. For example, the IP block 140 may be or include a processor, a graphics processor, a memory controller, an input and output interface block, etc. The IP block 140 may be composed of or include processors with different computational throughputs, such as a single core and multiple cores.
[0037] CPM 120 and IP block 140 may receive the same input power supply voltage VDDin. Input power supply voltage VDDin may be provided from outside semiconductor device 1. As the number of commands processed by IP block 140 increases, the power consumed by IP block 140 may increase. This may cause a voltage drop in the level of input power supply voltage VDDin initially provided to CPM 120, resulting in an increase in circuit delay in CPM 120. Therefore, the value of a digital code (e.g., a binary code) indicating circuit delay may increase or decrease (depending on a predetermined correlation of the digital code with VDDin and circuit delay). Referring to FIG. 1 below, Figure 7 and Fig.12 Describe in detail an example of a digital code.
[0038] Compared to conventional techniques, when the power supply voltage VDDin decreases, the configuration and operation of the CPM 120 may allow a faster response time for initiating a pause of a clock signal supplied to the IP block 140. To this end, the CPM 120 may generate a digital code according to a circuit delay and activate the enable signal En based on a comparison of the digital code with a reference value. The clock gating circuit 130 may pause the oscillation of the output clock signal CLK_OUT supplied to the IP block 140 by performing a clock gating operation on the input clock signal CLK_IN based on the enable signal En. As the overall operating frequency decreases due to the paused oscillation of the output clock signal CLK_OUT, a malfunction due to a voltage drop in the IP block 140 may be prevented until the voltage level is restored. (Note that when the oscillation is restored, CLK_OUT may have the same oscillation frequency as CLK_IN, but when the period of time during which CLK_OUT is paused is considered, the overall clock operating frequency may be reduced.)
[0039] Since the CPM 120 generating the enable signal En and the clock gating circuit 130 performing clock gating use the same clock signal, a synchronization operation between different clocks may not be required, and thus, fast clock gating may be performed.
[0040] Since the clock gating circuit 130 and the CPM 120 that monitors the voltage drop use the same clock signal, the clock gating circuit 130 and the CPM 120 can respond quickly to the voltage drop.
[0041] Figure 2 2 is a diagram of a semiconductor system 200 according to an embodiment. The semiconductor system 200 may include a processor chip 210 , a package substrate 220 , a power management integrated circuit (PMIC) 230 , and a circuit board 240 .
[0042] The circuit board 240 may extend in a horizontal direction HD, and the package substrate may be connected to the PMIC 230 in a vertical direction VD. The package substrate 220 may be connected to the circuit board 240 via a ball. The package substrate 220 may be connected to the processor chip 210 via a bump. The processor chip 210 may be Figure 1 Semiconductor equipment 1 (in Figure 2 Only the clock generator 110 and the IP block 140 are shown in the processor chip 210).
[0043] The PMIC 230 may include a voltage regulator module VRM, and may generate a power voltage VDD. The power voltage VDD may be provided to the second power layer PLN2 of the circuit board 240.
[0044] The power supply voltage VDD may be transferred from the circuit board 240 to the package substrate 220 via the balls. The power supply voltage VDD may be provided to the first power layer PLN1 in the package substrate 220.
[0045] The power supply voltage VDD supplied to the first power supply layer PLN1 may be supplied to the processor chip 210 as an input power supply voltage VDDin via a bump. The input power supply voltage VDDin may be supplied to the clock generator CLKGNRT 110 and the IP block 140 in the processor chip 210.
[0046] As the number of commands processed by the IP block increases, the voltage drop may worsen, and due to the voltage drop, the input supply voltage VDDin may be lower than required for acceptable operation of the IP block without clock delay compensation as taught herein.
[0047] Figure 3 4 is a circuit diagram of a power delivery network 400 according to an embodiment. The power delivery network 400 may provide a path through which a voltage generated by a PMIC 440 is transmitted to a processor chip 410 via a circuit board 430 and a package substrate 420 .
[0048] The PMIC 440 may be understood as a voltage source that generates a power supply voltage VDD. The circuit board 430 may be understood as an equivalent circuit including at least one of an inductor Lbrd, a capacitor Cbrd, and a resistor Rbrd. The package substrate 420 may be understood as an equivalent circuit including at least one of an inductor Lpkg, a capacitor Cpkg, and a resistor Rpkg. The processor chip 410 may be understood as an equivalent circuit including a resistor Rcore.
[0049] As the throughput of the processor chip 410 increases, the current Idd may increase rapidly. Due to the rapidly increasing current Idd, a higher voltage (e.g., a voltage spike) may be induced in the inductor Lpkg. Therefore, the amplitude of the input power supply voltage VDDin provided to the processor chip 410 is reduced. In other words, the PMIC 440 can output a relatively high power supply voltage VDD to compensate for the variability of the input power supply voltage VDD due to the voltage drop. In this case, there may be a risk that the power consumed by the power delivery network 400 is wasted unnecessarily.
[0050] Figure 4 is a block diagram of CPM 120 and clock gating circuit 130 according to an embodiment.
[0051] refer to Figure 4, CPM 120 may include a pattern (interchangeably referred to herein as a "waveform") generator 310, an "even chain" circuit 320, an "odd chain" circuit 330, a selection circuit 340, a de-glitch circuit 350, and a comparator 360. The components included in CPM 120 may operate based on an input power supply voltage VDDin.
[0052] The pattern generator 310 may include a pulse generator 311 and a trigger 312. The pulse generator 311 may generate a periodic input pattern PT (eg, Figure 7 PT may be a clock signal waveform having a frequency half that of CLK_IN. The flip-flop 312 may generate a sampling pattern SP by sampling the input pattern PT based on the input clock signal CLK_IN (e.g., by sampling the generated sampling pattern SP). Fig.13 The pulse waveform ("pulse train") shown in FIG. 1 and the inverted sampling pattern ~SP. The inverted sampling pattern ~SP may have an opposite phase to the sampling pattern SP. The period of the sampling pattern SP may be twice the period of the input clock signal CLK_IN.
[0053] The even chain circuit 320 may generate an even mode EPT (eg, as shown in FIG. 1 ) based on the sampling pattern SP. Figure 7 ). The even-mode EPT can be calculated based on the mode PT sampled at the even edge of the input clock signal CLK_IN. The even-mode EPT can indicate the circuit delay according to the voltage drop of the input power supply voltage VDDin.
[0054] The odd chain circuit 330 can generate an odd pattern OPT based on the inverted sampling pattern ˜SP (eg, see Figure 7 ). The odd mode OPT can be calculated based on the mode PT sampled at the odd edge of the input clock signal CLK_IN. The odd mode OPT can indicate the circuit delay according to the voltage drop of the input power supply voltage VDDin. Here, the even edge can be an edge adjacent to the odd edge. In a pulse train such as a clock signal, the even edge is a rising edge and the odd edge is a falling edge, and vice versa. Here, each of the even chain circuit 320 and the odd chain circuit 330 can be referred to as a pattern (waveform) generating circuit.
[0055] Even chain circuit 320 may include a calibrated delay circuit 321 , a static (“fixed”) delay circuit 322 , and an edge detector 323 .
[0056] The calibration delay circuit 321 can adjust the delay of the sampling pattern SP. The calibration delay circuit 321 can perform a calibration operation on the value of the even pattern EPT by adjusting the delay amount. The fixed delay circuit 322 can generate the first delayed sampling pattern DSP1 by adding a fixed amount of delay to the output of the calibration delay circuit 321.
[0057] By comparing the first delayed sampling pattern DSP1 with the sampling pattern SP, the edge detector 323 can update the even pattern EPT representing the delay amount of the input clock signal CLK_IN at each even edge of the input clock signal CLK_IN. The detailed operation of the edge detector 323 can be referred to. Fig.12 and Fig.13 Described below. In other words, when the input pattern PT passes through the flip-flop 312, the calibrated delay circuit 321, and the fixed delay circuit 322, a delay is generated, and the amount of the generated delay can be detected by the edge detector 323. Therefore, the even mode EPT can indicate a circuit delay caused by a voltage drop of the input power supply voltage VDDin.
[0058] The odd-chain circuit 330 may include a calibration delay circuit 331 , a static delay circuit 332 , and an edge detector 333 .
[0059] The calibration delay circuit 331 can adjust the delay of the inverted sampling pattern ~SP. The calibration delay circuit 331 can perform a calibration operation on the value of the odd pattern OPT by adjusting the delay amount. The static delay circuit 332 can generate a second delayed sampling pattern DSP2 by adding a fixed amount of delay to the output of the calibration delay circuit 331.
[0060] By comparing the second delayed sampling pattern DSP2 with the inverted sampling pattern ˜SP, the edge detector 333 can update the odd pattern OPT indicating the delay amount of the input clock signal CLK_IN at each odd edge of the input clock signal CLK_IN. The detailed operation of the edge detector 333 can be referred to Fig.12 and Fig.13 In other words, when the input pattern PT passes through the flip-flop 312, the calibration delay circuit 331, and the static delay circuit 332, a delay is generated, and the amount of the generated delay can be detected by the edge detector 333. Therefore, the odd pattern OPT can indicate a circuit delay caused by a voltage drop of the input power supply voltage VDDin.
[0061] The selection circuit 340 may generate a CPM code ' before correction by selectively outputting an even mode EPT or an odd mode OPT based on the inverted sampling pattern ~SP. For example, when the inverted sampling pattern ~SP is at a high level, the selection circuit 340 may output an even mode EPT, and when the inverted sampling pattern ~SP is at a low level, the selection circuit 340 may output an odd mode OPT. However, the embodiment is not limited thereto, and the selection circuit 340 may also selectively output an even mode EPT or an odd mode OPT based on the sampling pattern SP.
[0062] The de-glitch circuit 350 may generate a CPM code by removing glitch from the CPM code' before correction.
[0063] The comparator 360 may compare the value of the CPM code with the reference value val_th, and activate the enable signal En according to the comparison result. In some embodiments, when the value of the CPM code is less than or equal to the reference value val_th, the comparator 360 may deactivate the enable signal En during the reference time. In some embodiments, when the value of the CPM code is less than a first reference value, the comparator 360 may deactivate the enable signal En, and when the value of the CPM code is greater than a second reference value, the comparator 360 may activate the enable signal En.
[0064] The clock gating circuit 130 may receive the input clock signal CLK_IN and control the output clock signal CLK_OUT not to oscillate during a deactivated period of the enable signal En.
[0065] Figure 5 is a flow chart of an operating method of a semiconductor device according to an embodiment. Figure 4 describe Figure 5 .
[0066] refer to Figure 5 , the CPM 120 may generate a first sampling pattern (eg, SP) and a second sampling pattern (eg, ˜SP) by sampling an input pattern PT based on a first clock signal (eg, CLK_IN) ( S510 ).
[0067] The CPM 120 may compare a first delay pattern (eg, DSP1 ) generated by delaying the first sampling pattern with the first sampling pattern, and generate a first pattern (eg, EPT) based on the comparison result ( S520 ).
[0068] The CPM 120 may compare a second delay pattern (eg, DSP2) generated by delaying the second sampling pattern with the second sampling pattern, and generate a second pattern (eg, OPT) based on the comparison result (S530).
[0069] The CPM 120 may generate an enable signal (eg, En) by comparing a value of a digital code (eg, a CPM code) in which the first pattern and the second pattern are combined with a reference value ( S540 ).
[0070] The CPM 120 may generate a second clock signal (eg, CLK_OUT) by performing a clock gating operation on the first clock signal based on the enable signal ( S550 ).
[0071] Figure 6 is a circuit diagram of the clock gating circuit 130 according to an embodiment.
[0072] refer to Figure 6 , the clock gating circuit 130 may include a latch circuit 131 and an AND circuit 132 .
[0073] The latch circuit 131 may latch the enable signal En in synchronization with the falling edge of the input clock signal CLK_IN. The latched value may be output as the output signal Q. The AND circuit 132 may generate the output clock signal CLK_OUT by performing an AND operation on the output signal Q and the input clock signal CLK_IN.
[0074] For example, at the falling edge of the first cycle of the first to third cycles of the input clock signal CLK_IN, by latching the enable signal En at a high level, the output signal Q can be turned into a high level. At the falling edge of the second cycle, the enable signal En at a low level can be latched, and thus, the output signal Q can be turned into a low level.
[0075] When an AND operation is performed on the output signal Q and the input clock signal CLK_IN, the output clock signal CLK_OUT may include only the second cycle among the first to third cycles of the input clock signal CLK_IN.
[0076] In other words, when the enable signal En is at a high level at the falling edge of the input clock signal CLK_IN, the next cycle of the input clock signal CLK_IN may be reflected in the output clock signal CLK_OUT, and when the enable signal En is at a low level at the falling edge of the input clock signal CLK_IN, the next cycle of the input clock signal CLK_IN may not be reflected in the output clock signal CLK_OUT.
[0077] Figure 7 is a timing diagram of the operation of the semiconductor device according to the embodiment. Figures 1 to 4 describe Figure 7 .
[0078] The input clock signal CLK_IN may oscillate, and when the amplitude of the input power voltage VDDin increases, the circuit delay amount representing the even mode EPT and the odd mode OPT may decrease. When the amplitude of the input power voltage VDDin decreases, the circuit delay amount representing the even mode EPT and the odd mode OPT may increase.
[0079] During the disabling period, the pulse generator 311 may not generate the input pattern PT.
[0080] At the first time point t1, the trigger 312 may generate a sampling pattern SP by sampling and latching the input pattern PT, and the even chain circuit 320 may generate an even mode EPT by delaying the sampling pattern SP. At the third time point t3, the trigger 312 may generate a sampling pattern SP by sampling the input pattern PT, and the even chain circuit 320 may generate an even mode EPT by delaying the sampling pattern SP. The even chain circuit 320 may generate an even mode EPT having a value E1 based on the input pattern PT sampled at the first time point t1, and generate an even mode EPT having a value E2 based on the input pattern PT sampled at the third time point t3. (Note here that EPT, OPT, and CPM codes are in Figure 7 exemplified as differential signals, while other signals are illustrated as single-ended signals. In other examples, the EPT, OPT, and / or CPM codes are single-ended signals, and / or other signals are differential or single-ended signals. )
[0081] At the second time point t2, the flip-flop 312 may generate the inversion sampling pattern ~SP by sampling the input pattern PT, and the odd chain circuit 330 may generate the odd pattern OPT by delaying the inversion sampling pattern ~SP. At the fourth time point t4, the flip-flop 312 may generate the inversion sampling pattern ~SP by sampling the input pattern PT, and the odd chain circuit 330 may generate the odd pattern OPT by delaying the inversion sampling pattern ~SP. The odd chain circuit 330 may generate the odd pattern OPT having a value O1 based on the input pattern PT sampled at the second time point t2, and may generate the odd pattern OPT having a value O2 based on the input pattern PT sampled at the fourth time point t4.
[0082] The selection circuit 340 may alternately output the even mode EPT and the odd mode OPT to generate a CPM code.
[0083] Figure 8 is a timing diagram of the operation of the semiconductor device according to the embodiment. Figures 1 to 4 To describe Figure 8 .
[0084] refer to Figure 8, the input clock signal CLK_IN may oscillate during the first time point t1 to the eighth time point t8.
[0085] The magnitude of the current Idd between the first time point t1 and the second time point t2 may be 0A, and the input power supply voltage VDDin may be 1V.
[0086] As the throughput of the IP block 140 increases between the second time point t2 and the third time point t3, the magnitude of the current Idd may increase to 2 A, and thus the magnitude of the input power supply voltage VDDin may decrease to 0.95 V. The value of the CPM code between the second time point t2 and the third time point t3 may be 11.
[0087] As the throughput of the IP block 140 increases between the third time point t3 and the fourth time point t4, the magnitude of the current Idd may increase to 6 A, and thus the magnitude of the input power supply voltage VDDin may decrease to 0.9 V. The value of the CPM code between the third time point t3 and the fourth time point t4 may be 9. In other words, as the voltage drop of the input power supply voltage VDDin applied to the CPM 120 increases, the value of the CPM code may decrease.
[0088] In some embodiments, the comparator 360 may compare the value of the CPM code with a reference value val_th 10. Since the value of the CPM code is less than the reference value val_th between the third time point t3 and the fourth time point t4, the comparator 360 may deactivate the enable signal En. The enable signal En may be deactivated during the reference time Ten. As the enable signal En is deactivated, the output clock signal CLK_OUT may not oscillate from the next cycle. Because the output clock signal CLK_OUT does not oscillate, the IP block 140 may be deactivated and the magnitude of the current Idd may be reduced. Figure 8 In FIG. 5 , although it is shown that the magnitude of the current Idd decreases from the sixth time point t6, the embodiment is not limited thereto. Figure 8 In FIG. 1 , it is shown that the enable signal En is deactivated during the reference time Ten (the duration between two and three clock cycles of CLK_IN), but this is only an example. The duration Ten and the duration Ten may be different depending on the specific design of the IP block, among other factors. Figure 8 Other example values in may vary from one embodiment to another. For example, in some embodiments, when the value of the CPM code rises above another reference value (eg, 6), the enable signal En may be activated.
[0089] Between the fourth time point t4 and the fifth time point t5, the magnitude of the current Idd may be maintained at 6 A, and the magnitude of the input power supply voltage VDDin may be reduced to 0.8 V. Between the fourth time point t4 and the fifth time point t5, the value of the CPM code may be 7. In other words, as the voltage drop of the input power supply voltage VDDin applied to the CPM 120 increases, the value of the CPM code may decrease.
[0090] Between the fifth time point t5 and the sixth time point t6, the magnitude of the current Idd may be maintained at 6 A, and the magnitude of the input power supply voltage VDDin may be reduced to 0.75 V. Between the fifth time point t5 and the sixth time point t6, the value of the CPM code may be 6. In other words, as the voltage drop of the input power supply voltage VDDin applied to the CPM 120 increases, the value of the CPM code may decrease.
[0091] Between the sixth time point t6 and the seventh time point t7, the amplitude of the current Idd may be reduced to 4A, and the amplitude of the input power supply voltage VDDin may be increased to 1V. In other words, since the output clock signal CLK_OUT does not oscillate, the throughput of the IP module 140 is reduced, the current Idd is reduced, and the input power supply voltage VDDin may be increased. The value of the CPM code between the sixth time point t6 and the seventh time point t7 may be 7. On the other hand, after the reference time Ten between the sixth time point t6 and the seventh time point t7 has passed, the enable signal En may be activated. As the enable signal En is activated, the output clock signal CLK_OUT may oscillate from the next cycle.
[0092] Between the seventh time point t7 and the eighth time point t8 , the magnitude of the current Idd may be reduced to 2 A, and the magnitude of the input power voltage VDDin may be reduced to 0.9 V. Between the seventh time point t7 and the eighth time point t8 , the value of the CPM code may be 7.
[0093] The clock gating circuit 130 can generate the output clock signal CLK_OUT by deactivating the input clock signal CLK_IN within a plurality of reference cycles Cycle_rmv of the input clock signal CLK_IN. The reference cycle Cycle_rmv can mean at least one cycle from a cycle after a cycle including a time point when the enable signal En is deactivated to a cycle after a cycle including a time point when the enable signal En is activated.
[0094] exist Figure 8 In FIG. 1 , the value of the CPM code is shown to decrease as the circuit delay increases, but in other examples, the value of the CPM code may also increase as the circuit delay increases.
[0095] Fig. 9is a diagram of example CPM codes and reference values according to an embodiment.
[0096] refer to Fig. 9 , the value of the CPM code may change over time. For example, when the instantaneous rate of change of the current Idd increases according to the throughput of the IP block 140, the amplitude of the input power supply voltage VDDin may decrease, and the circuit delay may increase. Therefore, the value of the CPM code indicating the circuit delay may decrease. In the opposite case, the value of the CPM code may increase.
[0097] refer to Fig. 9 , when the value of the CPM code is less than the first reference value val_th1, the enable signal En may be deactivated. In other words, the first reference value val_th1 may determine the deactivation start time point of the enable signal En. Therefore, the enable signal En may be deactivated at the first time point t1.
[0098] When the value of the CPM code is greater than the second reference value val_th2, the enable signal En may be activated. In other words, the second reference value val_th2 may determine the deactivation end time point of the enable signal En. Therefore, the deactivated state of the enable signal En may end at the second time point t2 and may be activated. The first reference value val_th1 may be less than the second reference value val_th2.
[0099] Fig.10 is a diagram of CPM codes and reference values according to an embodiment.
[0100] refer to Fig.10 , when the value of the CPM code is less than the second reference value val_th2, the enable signal En may be deactivated. In other words, the second reference value val_th2 may determine the deactivation start time point of the enable signal En. Therefore, the enable signal En may be deactivated at the first time point t1. In addition, the enable signal En may be deactivated at the third time point t3.
[0101] When the value of the CPM code is greater than the first reference value val_th1, the enable signal En may be activated. In other words, the first reference value val_th1 may determine the deactivation end time point of the enable signal En. Therefore, the enable signal En may be activated at the second time point t2. The first reference value val_th1 may be less than the second reference value val_th2.
[0102] Fig.11 According to the embodiment Figure 41 is a circuit diagram of an example of a calibration delay circuit 321. In this example, the calibration delay circuit 321 may include first to third delay chains 1010 to 1030. The first to third delay chains 1010 to 1030 may include inverters INV, and the delay of the sampling pattern SP may be adjusted by adjusting the number of inverters INV through which the sampling pattern SP passes.
[0103] The first delay chain 1010 may receive a sampling pattern SP and a calibration enable signal En_c. When the calibration enable signal En_c is at a low level, the NOR circuit may operate as an inverter INV. The first delay chain 1010 may add a delay corresponding to 32 units of inverters INV. For example, the sampling pattern SP may be provided to the selection circuit 911 without delay, provided to the selection circuit 911 via 32 inverters INV, provided to the selection circuit 912 via 64 inverters INV, or provided to the selection circuit 912 via 96 inverters INV. The selection circuits 911 to 913 may output the sampling pattern SP that has been passed through the sampling pattern SP without delay, 32, 64, or 96 inverters INV.
[0104] The second delay chain 1020 may receive a signal from the first delay chain 1010 and may add a delay corresponding to eight units of inverters INV. For example, a signal received from the selection circuit 913 may be provided to the selection circuit 921 without delay, provided to the selection circuit 921 via 8 inverters INV, provided to the selection circuit 922 via 16 inverters INV, or provided to the selection circuit 922 via 24 inverters INV. The selection circuits 921 to 923 may output a signal without delay, a signal that has passed through 8 inverters INV, a signal that has passed through 16 inverters INV, or a signal that has passed through 24 inverters INV.
[0105] The third delay chain 1030 may receive a signal from the second delay chain 1020, and may add a delay corresponding to one unit of the inverter INV. For example, the signal received from the selection circuit 923 may be provided to the selection circuit 931 without delay or via one inverter INV, to the selection circuit 932 via two or three inverters INV, to the selection circuit 934 via four or five inverters INV, or to the selection circuit 935 via six or seven inverters INV. The selection circuits 931 to 937 may output a signal without delay or a signal that has passed through one to seven inverters INV.
[0106] The sampling pattern SP without delay or the sampling pattern SP with a delay of up to 127 inverters INV may be output by the first to third delay chains 1010 to 1030 .
[0107] The circuits in the calibrated delay circuit 321 may generate a delay based on the input power supply voltage VDDin. As a voltage drop occurs in the input power supply voltage VDDin, a longer delay may be generated.
[0108] Fig.12 yes Figure 4 323 is a circuit diagram of an example of an edge detector 323. Fig.12 , the edge detector 323 in the even-numbered chain circuit 320 is shown, but the edge detector 333 in the odd-numbered chain circuit 330 may have the same structure.
[0109] The edge detector 323 may include a plurality of inverters INV, a plurality of flip-flops FF, a plurality of XNOR gates XNOR, and a plurality of XOR gates XOR.
[0110] The sampling pattern SP may be passed through the calibrated delay circuit 321 and the fixed delay circuit 322 to have a delay, and a first delayed sampling pattern DSP1 may be generated. The first delayed sampling pattern DSP1 may be delayed when passing through the inverter INV in the edge detector 323. n+1 flip-flops FF (n is a natural number) may generate an even mode EPT by sequentially latching a delayed signal, providing the latched signal to an XNOR gate or an XOR gate, and comparing the provided latched signal with the sampling pattern SP. The even mode EPT may include a plurality of consecutive "1's" that vary according to the amount of delay. The even mode EPT may have n bits, and bits other than the consecutive "1's" may include "0's". The position of the edge that distinguishes "1" and "0" may vary depending on the amount of delay. Reference Fig.12 , bits 0 to 2 included in the even pattern EPT may be or include "1", and the other bits may be or include "0". An edge may exist between the second bit Bit 2 and the third bit Bit 3.
[0111] As the voltage drop of the input power supply voltage VDDin becomes larger, which corresponds to an increase in circuit delay, the transmission speed of the signal may be reduced, and therefore, the position of the edge in the even mode EPT may move toward bit 0. Conversely, as the voltage drop of the input power supply voltage VDDin becomes smaller, which corresponds to a decrease in circuit delay, the transmission speed of the signal may be increased, and therefore, the position of the edge in the even mode EPT may move toward bit n.
[0112] Fig.13 is a timing diagram describing a method of generating a CPM code.
[0113] refer to Fig.13, the CPM code may be generated by selectively outputting an even mode EPT output by an even edge detector and an odd mode OPT output by an odd edge detector. The even edge detector may include an edge detector 323, and the odd edge detector may include an edge detector 333.
[0114] refer to Fig.13 , the first to fifth edges of the sampling pattern SP may be generated from the first to fifth edges of the input clock signal CLK_IN. When the sampling pattern SP passes through the calibration delay circuit 321 and the fixed delay circuit 322, the first to fifth edges of the first delayed sampling pattern DSP1 may be generated.
[0115] The first delayed sampling pattern DSP1 may be delayed while sequentially passing through the inverter INV in the edge detector 323, and the delayed signal may be sequentially provided to the flip-flops FF. Each flip-flop FF may latch the input signal D in synchronization with the first capture clock signal Capture_CLK1. The first capture clock signal Capture_CLK1 may include even cycles of the input clock signal CLK_IN.
[0116] The (2i-1)th flip-flop FF, the 2ith flip-flop FF, and the (2i+1)th flip-flop FF in the edge detector 323 can latch the input signal D in synchronization with the second edge of the first capture clock signal Capture_CLK1, and the latched signal Q can be compared with the sampling pattern SP through the NXOR gate or the XOR gate. Therefore, the values of the (2i-1)th bit, the (2i)th bit, and the (2i+1)th bit of the even mode EPT can include 1, 0, and 0, respectively.
[0117] On the other hand, the (2i-1)th flip-flop FF, the 2ith flip-flop FF, and the (2i+1)th flip-flop FF in the edge detector 323 can latch the input signal D in synchronization with the fourth edge of the first capture clock signal Capture_CLK1, and the latched signal Q can be compared with the sampling pattern SP through the NXOR gate or the XOR gate. Therefore, the values of the (2i-1)th bit, the (2i)th bit, and the (2i+1)th bit of the even mode EPT can be 1, 1, and 1, respectively.
[0118] In other words, the values of the (2i-1)th bit, (2i)th bit, and (2i+1)th bit of the even mode EPT obtained at the second and fourth edges of the input clock signal CLK_IN may be {1, 0, 0} and {1, 1, 1}, respectively.
[0119] refer to Fig.13, the first to fifth edges of the inversion sampling pattern ~SP can be generated from the first to fifth edges of the input clock signal CLK_IN, respectively. When the inversion sampling pattern ~SP passes through the calibration delay circuit 331 and the fixed delay circuit 332, the first to fifth edges of the second delayed sampling pattern DSP2 can be generated.
[0120] The second delayed sampling pattern DSP2 can be delayed by sequentially passing through the inverter INV in the edge detector 333, and the delayed signal can be sequentially provided to the flip-flops FF. Each flip-flop FF can latch the input signal D in synchronization with the second capture clock signal Capture_CLK2. The second capture clock signal Capture_CLK2 may include odd cycles of the input clock signal CLK_IN.
[0121] The (2i-1)th flip-flop FF, the 2ith flip-flop FF, and the (2i+1)th flip-flop FF in the edge detector 333 can latch the input signal D in synchronization with the third edge of the second capture clock signal Capture_CLK2, and the latched signal Q can be compared with the sampling pattern SP through the NXOR gate or the XOR gate. Therefore, the values of the (2i-1)th bit, the (2i)th bit, and the (2i+1)th bit of the odd mode OPT can be 1, 1, and 0, respectively.
[0122] On the other hand, the (2i-1)th flip-flop FF, the 2ith flip-flop FF, and the (2i+1)th flip-flop FF in the edge detector 333 can latch the input signal D in synchronization with the fifth edge of the second capture clock signal capture_CLK2, and the latched signal Q can be compared with the sampling pattern SP through the NXOR gate or the XOR gate. Therefore, the values of the (2i-1)th bit, the (2i)th bit, and the (2i+1)th bit of the odd mode OPT can be 1, 1, and 1, respectively.
[0123] In other words, the values of the (2i-1)th bit, (2i)th bit, and (2i+1)th bit of the odd mode OPT obtained at the third and fifth edges of the input clock signal CLK_IN may be {1, 1, 0} and {1, 1, 1}, respectively.
[0124] The even mode EPT and the odd mode OPT can be selectively output to generate a CPM code. In other words, in response to the second to fifth cycles of the input clock signal CLK_IN, the CPM code can be updated to {1,0,0}, {1,1,0}, {1,1,1} and {1,1,1}, respectively.
[0125] Fig.14 is a diagram of a CPM according to an embodiment.
[0126] refer to Fig.14 , the edge detector 323 may output the even mode EPT based on the first delayed sampling pattern DSP1, and the edge detector 333 may output the odd mode OPT based on the second delayed sampling pattern DSP2.
[0127] refer to Fig.13 and Fig.14 , the selection circuits 341 to 346 can generate CPM codes before correction by selectively outputting the even mode EPT or the odd mode OPT based on the inversion sampling pattern ~SP. In other words, when the inversion sampling pattern ~SP is at a high level, the even mode EPT can be output, and when the inversion sampling pattern ~SP is at a low level, the odd mode OPT can be output. The selection circuits 341 to 346 can correspond to Figure 4 The selection circuit 340 in.
[0128] For various reasons, glitches or errors may occur in the CPM code' before correction. For example, before correction, the third bit of the CPM code' should include 0, but may include 1 due to an error. The de-glitch circuit 350 may generate a CPM code by removing glitches from the CPM code' before correction.
[0129] The code conversion circuit 351 may generate a binary code based on the CPM code. The binary code may mean a binary value corresponding to the CPM code.
[0130] The first accumulator 352 may generate a current having an amplitude proportional to a binary value, and when the amplitude of the generated current is compared with a reference value val_th, it may be determined whether to deactivate the enable signal En.
[0131] like Fig.13 As shown, the value of the CPM code can be updated in each cycle of the input clock signal CLK_IN. The CPM code can be converted into a binary code and sequentially recorded in the flip-flop FF in each cycle of the input clock signal CLK_IN. In other words, the second accumulator 353 can generate a current whose amplitude is proportional to the binary value corresponding to the CPM code before being updated.
[0132] While the inventive concept has been particularly shown and described with reference to embodiments thereof, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the appended claims.
Claims
1. A semiconductor device, include: an intellectual property (IP) block configured to operate based on a first clock signal and a power supply voltage; a clock gating circuit configured to generate a first clock signal by selectively performing clock gating on a second clock signal based on an enable signal; as well as A critical path monitor (CPM) is configured to operate based on a power supply voltage and generate a digital code having a value that varies according to a voltage drop of the power supply voltage, and activate an enable signal based on a comparison of the value of the digital code with a reference value.
2. The semiconductor device according to claim 1, in, The value of the digital code decreases as the voltage drop increases.
3. The semiconductor device according to claim 1, in, The CPM includes: a waveform generator configured to generate a periodic waveform having a frequency less than that of a first clock signal, and to generate and output a first sampled waveform and a second sampled waveform having an inverted level of the first sampled waveform by sampling the periodic waveform at a first edge of the first clock signal; a first waveform generating circuit configured to generate a first waveform by delaying a first sampling waveform; A second waveform generating circuit configured to generate a second waveform by delaying a second sampling waveform; and A comparator is configured to generate an enable signal based on a value of a digital code in which the first waveform is combined with the second waveform and a reference value.
4. The semiconductor device according to claim 3, in, The first waveform generating circuit comprises: a first delay circuit configured to generate a first delayed sampling waveform by adjusting a delay of the first sampling waveform; and a first edge detector configured to generate a first waveform based on a comparison result between the first delayed sampling waveform and the first sampling waveform, Wherein, the second waveform generating circuit comprises: a second delay circuit configured to generate a second delayed sampling waveform by adjusting a delay of the second sampling waveform; and The second edge detector is configured to generate a second waveform based on a comparison result between the second delayed sampling waveform and the second sampling waveform.
5. The semiconductor device according to claim 4, in, The CPM also includes a selection circuit configured to generate a digital code by selectively outputting the first waveform or the second waveform based on the second sampling waveform.
6. The semiconductor device according to claim 1, in, The CPM is configured to: If the value of the digital code is equal to or less than the first reference value, deactivating the enable signal, and If the value of the digital code is greater than a second reference value, the enable signal is activated, wherein the second reference value is different from the first reference value.
7. The semiconductor device according to claim 1, in, The CPM is configured to deactivate the enable signal during a reference time if the value of the digital code is equal to or less than a reference value.
8. The semiconductor device according to claim 1, in, The CPM is configured to update the value of the digital code at each cycle of the second clock signal.
9. A method for operating a semiconductor device, the method comprising: include: generating a first sampled waveform and a second sampled waveform having an inverted phase with respect to the first sampled waveform by sampling an input waveform based on a first clock signal; generating a first waveform based on a comparison result between a first sampling waveform and a first delayed waveform generated by delaying the first sampling waveform using a first delay circuit that operates based on a power supply voltage; generating a second waveform based on a comparison result between the second sampling waveform and a second delayed waveform generated by delaying the second sampling waveform using a second delay circuit that operates based on a power supply voltage; generating an enable signal by comparing a value of a digital code in which the first waveform and the second waveform are combined with a reference value; as well as Clock gating is performed on the first clock signal based on the enable signal.
10. The operating method according to claim 9, in, The value of the digital code decreases as the voltage drop of the power supply voltage increases.
11. The operating method according to claim 9, in, The generating of the enable signal includes generating a digital code by selectively outputting a first waveform and a second waveform based on a second sampling waveform.
12. The operating method according to claim 9, in, The generation of the enable signal includes: in response to the value of the digital code being equal to or less than a first reference value, deactivating the enable signal; and The enable signal is activated in response to the value of the digital code being greater than a second reference value, wherein the second reference value is different from the first reference value.
13. The operating method according to claim 9, in, The generating of the enable signal includes deactivating the enable signal during a reference time when the value of the digital code is equal to or less than a reference value.
14. The operating method according to claim 9, in, The generating of the enable signal includes updating the value of the digital code at each cycle of the first clock signal.
15. The operating method according to claim 9, in, The period of the input waveform is at least twice the period of the first clock signal.
16. A semiconductor device, include: processor; a clock generator configured to generate a first clock signal; a clock gating circuit configured to generate a second clock signal provided to the processor by performing clock gating on the first clock signal based on an enable signal; as well as A critical path monitor (CPM) is configured to operate based on a power supply voltage and adjust a deactivation time of an enable signal based on a magnitude of the power supply voltage.
17. The semiconductor device according to claim 16, in, The CPM increases the deactivation time of the enable signal as the power supply voltage decreases.
18. The semiconductor device according to claim 16, in, The CPM generates a digital code representing a circuit delay due to a voltage drop of a power supply voltage, and deactivates an enable signal by comparing a value of the digital code with a reference value.
19. The semiconductor device according to claim 18, in, The value of the digital code decreases as the power supply voltage decreases.
20. The semiconductor device according to claim 18, in, The CPM includes: a calibration delay circuit configured to adjust a delay of a sampled waveform; a waveform generator configured to output a first sampling waveform and a second sampling waveform having an inverted level of the first sampling waveform based on a first clock signal; a first waveform generating circuit configured to generate a first waveform by delaying a first sampling waveform; A second waveform generating circuit configured to generate a second waveform by delaying a second sampling waveform; and A comparator is configured to generate an enable signal based on a value of a digital code in which the first waveform is combined with the second waveform and a reference value.
