Power chain with delay adaptive switching
By introducing programmable delay power switching devices into the power switching system, the time delay of the delay line is dynamically programmed according to the number of active circuit blocks, which solves the problem that the wake-up time of the circuit blocks cannot be optimized, and improves the performance and surge current management capabilities of the system. .
Patent Information
- Application Number
- CN201980089395.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-12-05
AI Technical Summary
In the existing power switch system, the wake-up time of the circuit block cannot be dynamically optimized. As a result, in the multi-core system, when other circuit blocks are active, the wake-up time of the circuit block is too long, affecting performance.
Using a power switching device with programmable delay, by tracking the number of active circuit blocks in the system, the time delay of the delay line is dynamically programmed to optimize the wake-up time of the circuit block.
It realizes dynamically adjusting the wake-up time of circuit blocks according to the number of active circuit blocks, improving the system's surge current management capability and performance, especially in multi-core systems, waking up circuit blocks faster and reducing cold start time.
Smart Images

Figure CN113330389B_ABST
Abstract
Description
[0001] Priority declaration
[0002] This patent application claims priority to application No. 16 / 250,953, filed on January 17, 2019, entitled “POWER CHAIN WITH DELAYADAPTIVE SWITCHES,” which is assigned to the assignee of this patent application and is hereby expressly incorporated herein by reference. Technical Field
[0003] Aspects of the present disclosure relate generally to power switches, and more particularly to power switches having programmable delays. Background Art
[0004] The system may include multiple circuit blocks (e.g., processor cores) that share a power rail. The system may also include a power switch that allows the circuit blocks to be individually power-contracted to save power (e.g., reduce power leakage). For example, when a particular circuit block is not in use, the circuit block may be power-contracted to save power. Summary of the invention
[0005] A simplified overview of one or more implementations is presented below to provide a basic understanding of such implementations. This overview is not an extensive overview of all contemplated implementations, and is neither intended to identify the core or key elements of all implementations nor to define the scope of any or all implementations. Its sole purpose is to present some concepts of one or more implementations in a simplified form as a prelude to a more detailed description presented later.
[0006] A first aspect relates to an apparatus. The apparatus includes a first plurality of power switch devices. Each of the first plurality of power switch devices includes a delay line having a programmable time delay, and a power switch coupled between a power supply rail and a circuit block, wherein the power switch has a control input coupled to the delay line. The apparatus also includes a switch manager configured to program the time delay of the delay line in the first plurality of power switch devices based on the number of active circuit blocks in the system.
[0007] A second aspect relates to a method for programming a power switch delay in a system. The system includes a plurality of power switch devices, each of the plurality of power switch devices including a delay line having a programmable time delay and a power switch coupled between a power supply rail and a circuit block, wherein the power switch has a control input coupled to the delay line. The method includes tracking the number of active circuit blocks in the system, and programming the time delay of the delay line in the plurality of power switch devices based on the tracked number of active circuit blocks.
[0008] To achieve the above and related purposes, one or more implementations include the features fully described below and particularly pointed out in the claims. The following description and the accompanying drawings set forth in detail certain illustrative aspects of one or more implementations. However, these aspects are merely indicative of a few of the various ways in which the principles of various implementations may be employed, and the described implementations are intended to include all such aspects and their equivalents. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 An example of a system including multiple circuit blocks sharing a power supply rail in accordance with certain aspects of the present disclosure is shown.
[0010] Figure 2 An example of daisy-chain coupled power switching devices according to certain aspects of the present disclosure is shown.
[0011] Figure 3 An example of a power switch device according to certain aspects of the present disclosure is shown.
[0012] Figure 4 Examples of power switching circuits including power switching devices having programmable time delays according to certain aspects of the present disclosure are shown.
[0013] Figure 5 An example of a power switch device including a programmable delay buffer according to certain aspects of the present disclosure is shown.
[0014] Figure 6 An example implementation of a programmable delay buffer in accordance with certain aspects of the present disclosure is shown.
[0015] Figure 7 An example implementation of a power switch manager according to certain aspects of the present disclosure is shown.
[0016] Figure 8 An example is shown in which a power switch manager is coupled to a plurality of power switch circuits in accordance with certain aspects of the present disclosure.
[0017] Fig. 9 is a flow chart illustrating a method for programming power switch delays in a system according to certain aspects of the present disclosure. DETAILED DESCRIPTION
[0018] The detailed description set forth below in conjunction with the accompanying drawings is intended as a description of various configurations and is not intended to represent the only configuration in which the concepts described herein may be practiced. The detailed description includes specific details for providing a thorough understanding of the various concepts. However, it is clear to those skilled in the art that these concepts may be practiced without these specific details. In some cases, well-known structures and components are shown in block diagram form to avoid confusing such concepts.
[0019] Figure 1 An example of a system 110 is shown, which includes a plurality of circuit blocks 115A to 115D that share a power supply rail 112. For each of the circuit blocks 115A to 115D, the system 110 includes a corresponding power switch circuit 120A to 120D coupled between the shared power supply rail 112 and the circuit block for controlling power to the circuit block. The power switch circuits 120A to 120D allow the circuit blocks 115A to 115D to be individually power gated to save power (e.g., reduce power leakage). For example, when a particular circuit block is not in use, the circuit block can be power-contracted to save power by turning off the power switch in the corresponding power switch circuit. Therefore, the power switch circuits 120A to 120D allow one or more circuit blocks to be power-contracted while one or more circuit blocks in other circuit blocks are active.
[0020] In some aspects, the circuit blocks 115A to 115D and the power switch circuits 120A to 120D are integrated on the same chip (ie, die). In one example, the supply voltage on the shared power rail 112 is provided by an off-chip power management integrated circuit (PMIC). Figure 1 Four circuit blocks are shown in the example of FIG. 1 , but it should be understood that system 110 may have a different number of blocks of circuitry that are individually power gated.
[0021] In some aspects, system 110 may be a multi-core system, and each of circuit blocks 115A to 115D may include a corresponding processor core. The processor cores may be configured to read and execute instructions in parallel. In these aspects, the number of processor cores that are power-contracted by power switching circuits 120A to 120D may vary over time (e.g., depending on the processing needs of the application(s) running on system 110).
[0022] Figure 2 An example of a power switch circuit 120 for one of the circuit blocks 115A to 115D is shown. In this example, the power switch circuit 120 includes power switch devices 230-1 to 230-n (also referred to as head switch units) coupled in a daisy chain (also referred to as a power chain). The power switch devices 230-1 to 230-n may number in the thousands. As discussed further below, each of the power switch devices 230-1 to 230-n includes a power switch device coupled between a shared rail 112 and a corresponding circuit block ( Figure 2When the power switch device is turned on, the power switch in the power switch device is turned on (ie, closed). When the power switch device is turned off, the power switch in the power switch device is turned off (ie, opened).
[0023] In this example, the power controller 210 controls the power to the corresponding circuit block (e.g., processor core) by controlling the power switch devices 230-1 to 230-n. In order to shrink the power of the corresponding circuit block, the power controller 210 turns off the power switch devices 230-1 to 230-n. In this case, the power switches in the power switch devices 230-1 to 230-n are turned off, which decouples the shared power supply rail 112 from the corresponding circuit block.
[0024] In order to wake up (i.e., power up) the corresponding circuit block from the power shrinking mode, the power controller 210 outputs an enable signal to the input of the first power switch device 230-1 in the daisy chain. When the enable signal propagates through the daisy chain, the enable signal turns on the power switch devices 230-1 to 230-n one by one (i.e., sequentially). The delay between the turn-on times of the power switch devices 230-1 to 230-n depends on the delays in the power switch devices 230-1 to 230-n, as further discussed below. The output of the last power switch device 230-n can be coupled to the power controller 210. In this example, after the enable signal has propagated through the entire daisy chain, the last power switch device 230-n outputs an enable signal to the power controller 210, signaling to the power controller 210 that all the power switch devices in the power switch devices 230-1 to 230-n have been turned on.
[0025] The power switch devices 230-1 to 230-n are sequentially turned on during the power-on of the corresponding circuit blocks (e.g., processor cores) to manage the inrush current. If all the power switch devices of the power switch devices 230-1 to 230-n are turned on immediately at the beginning of power-on, a large inrush current will flow from the shared power supply rail 112 to the corresponding circuit block to charge the capacitor in the circuit block (which can be fully discharged at the beginning of power-on). The large inrush current may damage the system 110 and / or cause a large voltage drop on the shared power supply rail 112. If one or more of the other circuit blocks are active, the large voltage drop may have a negative impact on the operation of one or more other circuit blocks. Sequentially turning on the power switch devices 230-1 to 230-n gradually increases the conductance between the shared power supply rail 112 and the corresponding circuit block, which limits the inrush current at the beginning of power-on.
[0026] Figure 3 An exemplary implementation of a power switch 230 is shown. Figure 2Each of the power switch devices 230-1 to 230-n shown may be implemented using the power switch device 230 (ie, each of the power switch devices 230-1 to 230-n may be Figure 3 ). The power switch device 230 includes a delay line 328 having a non-programmable delay. The power switch device 230 also includes a power switch 330 that is coupled between the shared power rail 112 (labeled as “VDD_EXT”) and the corresponding circuit block ( Figure 3 between the internal rails (labeled “VDD_INT”) of the PCB (not shown).
[0027] The power switch 330 has a control input 332 coupled to the delay line 328. The control input 332 is used to control whether the power switch 330 is turned on (i.e., closed) or off (i.e., opened). As discussed further below, when an enable signal on the delay line 328 is input to the control input 332, the power switch 330 is turned on. When a disable signal on the delay line 328 is input to the control input 332, the power switch is turned off. Figure 3 In the example of FIG. 3 , the power switch 330 is implemented using a power transistor (eg, a p-type field effect transistor (PFET)), wherein the control input 332 of the power switch comprises the gate of the transistor. In the case of a PFET, the logic value of the enable signal is 0, and the logic value of the disable signal is 1.
[0028] The delay line 328 is coupled between the input (labeled “in”) and output (labeled “out”) of the power switch device 230 and may include one or more delay buffers. Figure 3 In the example of , the delay line 328 includes two delay buffers 320 and 325 (e.g., inverters) coupled in series between the input and output of the power switch device 230. The delay buffers 320 and 325 have non-programmable delays, as discussed further below. The input of the power switch device 230 can be coupled to the output of the previous power switch device in the daisy chain, and the output of the power switch device 230 can be coupled to the input of the next power switch device in the daisy chain. In this regard, the delay lines of the power switch devices 230-1 to 230-n are coupled in series to form a daisy chain. During power-on, the enable signal propagates through the daisy chain by propagating down the delay lines coupled in series along the power switch devices 230-1 to 230-n.
[0029] For the example where the power switch 330 is implemented with a power PFET, the gate of the power PFET is coupled to the delay line 328, the source of the power PFET is coupled to the shared power rail 112, and the drain of the power PFET is coupled to the internal rail of the corresponding circuit block. Figure 3 An example of one power transistor is shown, but it should be understood that the power switch 330 may be implemented using multiple power transistors coupled in parallel.
[0030] During power-on, the power switch device 230 receives an enable signal from the previous power switch device in the daisy chain at the input of the power switch device 230. The enable signal then propagates down the delay line 328 to the output of the power switch device 230. The enable signal is also input to the control input 332 of the power switch (which is coupled to the delay line 328). The enable signal turns on the power switch 330 in the power switch device 230. The delay buffers 320 and 325 in the delay line 328 delay the enable signal by a fixed delay. After the delay, the enable signal is output to the next power switch device in the daisy chain. Therefore, in this example, the delay between the turn-on times of the power switches in the power switch devices 230-1 to 230-n depends on the time delay of the delay buffers in the power switch devices 230-1 to 230-n.
[0031] In current systems, the delays in the power switches 230 - 1 to 230 - n are fixed. As discussed further below, a disadvantage of using fixed delays is that the wake-up time of the corresponding circuit blocks may not be optimized for different use cases.
[0032] When a circuit block (e.g., any of the circuit blocks 115A to 115D) wakes up from a power shrinking mode, the inrush current management capability of the system 110 depends on the number of circuit blocks that are already active in the system 110. The greater the number of circuit blocks that are already active in the system 110, the higher the inrush current management capability of the system 110. This is because the capacitors in the active circuit blocks (e.g., the processor core) (or the inherited capacitance of the charged standard cell logic) provide additional upstream capacitance to charge the capacitors (standard cell logic) in the circuit block (e.g., the processor core) being woken up (i.e., powered up). The higher inrush current management capability allows the wake-up time (i.e., wake-up latency) of the circuit block being woken up to be reduced for better performance (e.g., faster wake-up) while still remaining within acceptable inrush current limits.
[0033] The use of fixed delays in the power switch devices 230-1 to 230-n causes the wake-up time (i.e., wake-up delay) of the corresponding circuit block to be fixed. The wake-up time can be selected during the design phase of the system 110 to manage the inrush current for the worst case scenario (e.g., all circuit blocks in other circuit blocks in the system 110 are power-contracted). Therefore, in this example, the wake-up time of the circuit block is dominated by the worst case scenario. Because the wake-up time is fixed based on the worst case scenario, the wake-up time of the circuit block cannot be dynamically reduced during operation when one or more other circuit blocks in the system 110 are already active. As a result, in the case where one or more other circuit blocks in the system 110 are already active, the wake-up time of the circuit block is longer than the time required to manage the inrush current, resulting in lower performance (e.g., slower wake-up).
[0034] To address the above-mentioned shortcomings, various aspects of the present disclosure provide a power switch device with a programmable delay that allows the wake-up time of a circuit block (e.g., a processor core) to be dynamically controlled based on the number of active circuit blocks (e.g., processor cores) in the system, as further discussed below.
[0035] Figure 4 An example of a power switch circuit 420 for controlling power to one of the circuit blocks 115A to 115D in the system 110 is shown. In this regard, the power switch circuit 420 may be used to implement Figure 1 120A to 120D. As discussed further below, power switch circuit 420 allows programming (i.e., adjustment) of a wake-up time of a corresponding circuit block based on the number of active circuit blocks in system 110. As used herein, a circuit block may be considered active when it is coupled to shared power supply 112 through a corresponding power switch circuit 420.
[0036] In this example, the power switch circuit 420 includes programmable power switch devices 430-1 to 430-m and fixed power switch devices 435-1 to 435-k for controlling power to corresponding circuit blocks. Each of the programmable power switch devices 430-1 to 430-m has a programmable (i.e., adjustable) time delay controlled by a control signal 455, as discussed further below. Each of the fixed power switch devices 435-1 to 435-k has a non-programmable time delay and can be used Figure 2The exemplary power switch device 230 shown is implemented. The fixed delay in the fixed power switch devices 435-1 to 435-k can be shorter than the delay of the programmable power switch devices 430-1 to 430-m, because the programmable delay in the initial programmable switch devices 430-1 to 430-m can handle most of the surge current. The number of fixed delay switch devices and the programmable switch devices in the chain can be optimized and determined using power delivery network (PDN) simulation during the development stage. This approach achieves a better trade-off between performance, wiring and area because programmable switch devices consume relatively more area and also require additional wiring of control signal 455.
[0037] The programmable power switch devices 430-1 to 430-m and the fixed power switch devices 435-1 to 435-k are coupled in a daisy-chain manner, wherein the programmable power switch devices 430-1 to 430-m precede the fixed power switch devices 435-1 to 435-k in the daisy-chain. As a result, during power-up of the corresponding circuit blocks, the programmable power switch devices 430-1 to 430-m are turned on before the fixed power switch devices 435-1 to 435-k. The programmable power switch devices 430-1 to 430-m precede the fixed power switch devices 435-1 to 435-k because a significant portion of the surge current is handled by the initial switch, wherein a higher buffer delay may be required for the worst case, and if there are already active circuit blocks, the delay can be reduced. The programmable power switches 430 - 1 to 430 - m allow for programming of the wake-up time of the corresponding circuit blocks by programming the delays of the programmable power switches 430 - 1 to 430 - m , as discussed further below.
[0038] The system 110 also includes a power switch manager 440 that manages wake-up times of circuit blocks in the system 110 based on the number of active circuit blocks in the system 110, as discussed further below. In one example, the power switch manager 440 is configured to track the number of active circuit blocks (hereinafter referred to as an activity count) in the system 110. In this regard, the power switch manager 440 may increment the activity count when a circuit block in the system 110 is powered up and decrement the activity count when a circuit block in the system 110 is powered down.
[0039] In operation, when a circuit block corresponding to the power switch circuit 420 is to be awakened (i.e., powered up) from the power shrinking mode, the corresponding power controller 410 sends a power-on request to the power switch manager 440. In response to the request, the power switch manager 440 programs the delays of the programmable power switches 430-1 to 430-m in the power switch circuit 420 based on the current activity count. For example, the power switch manager 440 may program the delays of the programmable power switches 430-1 to 430-m to be shorter for higher activity counts and longer for lower activity counts.
[0040] The power switch manager 440 also sends permission to the power controller 410 to start powering up the corresponding circuit block. In response to the permission, the power controller 210 outputs an enable signal to the first programmable power switch device 430-1 in the daisy chain to start powering up the corresponding circuit block. When the enable signal propagates through the daisy chain, the enable signal sequentially turns on the power switch devices 430-1 to 430-m and 435-1 to 435-k. Since the programmable power switch devices 430-1 to 430-m precede the fixed power switch devices 435-1 to 435-k in the daisy chain, the programmable power switch devices 430-1 to 430-m are turned on before the fixed power switch devices 435-1 to 435-k.
[0041] The delay of the programmable power switch devices 430-1 to 430-m can be controlled to optimize the wake-up time of the corresponding circuit block. The shorter the delay, the shorter the wake-up time of the circuit block. Therefore, the power switch manager 440 can dynamically control the wake-up time of the corresponding circuit block based on the activity count by programming the delay of the programmable power switch devices 430-1 to 430-m based on the activity count. In this regard, the power switch manager 440 can program a shorter delay (and therefore a shorter wake-up time) for a higher activity count, and program a longer delay (and therefore a longer wake-up time) for a lower activity count.
[0042] As described above, the inrush current management capability of the system 110 is higher when the number of active circuit blocks in the system 110 is higher (i.e., the activity count is higher). This allows the power switch manager 440 to program shorter delays for the programmable power switch devices 430-1 to 430-m (and therefore shorter wake-up times for the corresponding circuit blocks) when the activity count is higher, while remaining within acceptable inrush current limits. Therefore, for situations where one or more circuit blocks in the system 110 are already active, the power switch manager 440 is able to reduce the wake-up time for the corresponding circuit blocks to achieve better performance (e.g., faster wake-up). Lower wake-up times (i.e., delays) can encourage power management software (e.g., operating system "IDLE threads") and / or hardware to use power shrinking modes more frequently for a larger number of applications to provide improved days of use (DoU).
[0043] Figure 5 An exemplary implementation of a programmable power switch 430 according to certain aspects of the present disclosure is shown. Figure 4 Each of the programmable power switch devices 430-1 to 430-m in the embodiment may be implemented using the programmable power switch device 430 (ie, each of the programmable power switch devices 430-1 to 430-m may be Figure 5 A separate instance of the programmable power switch device 430 in FIG. 1 ).
[0044] The programmable power switch device 430 includes a delay line 528 having a programmable (i.e., adjustable) time delay. In certain aspects, the power switch manager 440 uses a control signal 455 input to the delay line 528 to program the time delay of the delay line 528. For example, the power switch manager 440 can be configured to: if the number of active circuit blocks is equal to the first number, program the time delay of the delay line 528 to be equal to the first delay, and if the number of active blocks is equal to the second number, program the time delay of the delay line 528 to be equal to the second delay. In this example, the first delay is shorter than the second delay, and the first number is greater than the second number.
[0045] The programmable power switch device 430 also includes a power supply rail 112 (labeled as “VDD_EXT”) coupled to the corresponding circuit blocks ( Figure 5528). The power switch 530 has a control input 532 coupled to the delay line 528. The control input 532 is used to control whether the power switch 530 is turned on (i.e., closed) or off (i.e., opened). As discussed further below, when an enable signal on the delay line 528 is input to the control input 532, the power switch 530 is turned on. When a disable signal on the delay line 528 is input to the control input 532, the power switch is turned off. Figure 5 In the example of FIG. 5 , the power switch 530 is implemented using a power transistor (e.g., a p-type field effect transistor (PFET)), where the control input 532 of the power switch includes the gate of the transistor. In the case of a PFET, the logic value of the enable signal is 0, and the logic value of the disable signal is 1. Although in Figure 5 One power transistor is shown in the example of FIG. 5 , but it should be understood that the power switch 530 may include multiple power transistors coupled in parallel between the shared power supply rail 112 and the internal rails of the corresponding circuit blocks.
[0046] The delay line 528 is coupled between the input (labeled “in”) and the output (labeled “out”) of the programmable power switch device 430. The delay line 528 includes a programmable delay buffer 520 having a programmable time delay, which is controlled by the control signal 455 from the power switch manager 440. The delay line 528 may also include one or more fixed delay buffers 522 and 525 (e.g., inverters) coupled in series, such as Figure 5 In this example, the programmable delay buffer 520 provides programmability of the time delay of the delay line 528 . Therefore, in this example, the power switch manager programs the time delay of the delay line 528 by programming the delay of the programmable delay buffer 520 .
[0047] In some aspects, the programmable delay buffer 520 has multiple delay settings, where each delay setting corresponds to a different time delay. In one example, the control signal 455 can be a digital control signal, where the digital value of the digital control signal indicates one of the delay settings (and therefore one of the corresponding time delays). In this example, the programmable delay buffer 520 sets its delay to the delay setting (and therefore the corresponding time delay) indicated by the value of the digital control signal. Therefore, in this example, the power switch manager 440 programs the delay of the programmable power switch device 430 by setting the value of the control signal 455 according to the desired delay.
[0048] Alternatively, the programmable delay buffer 520 may have a continuously adjustable delay within a certain range. In one example, the delay of the programmable delay buffer 520 may be controlled by a parameter (e.g., voltage level) of the control signal 455. Thus, in this example, the power switch manager 440 programs the delay of the programmable power switch device 430 by setting the parameter (e.g., voltage level) of the control signal 455 according to the desired delay.
[0049] The input of the programmable power switch device 430 can be coupled to the output of the previous power switch device in the daisy chain, and the output of the power switch device 430 can be coupled to the input of the next power switch device in the daisy chain. In this regard, the delay lines 528 and 328 of the power switch devices 430-1 to 430-m and 435-1 to 435-k, respectively, are coupled in series to form a daisy chain.
[0050] For the example where the power switch 530 is implemented using one or more power PFETs, the gate of each power PFET is coupled to the delay line 528, the source of each power PFET is coupled to the shared power rail 112, and the drain of each power PFET is coupled to the internal rail of the corresponding circuit block. The gate of each power PFET can be coupled to the delay line 528 at any point along the delay line 528.
[0051] During power-up of a corresponding circuit block (e.g., a corresponding circuit block in circuit blocks 115A to 115D), the programmable power switch device 430 receives an enable signal from the previous power switch device in the daisy chain at the input of the power switch device 430. The enable signal then propagates down the delay line 528 to the output of the power switch device 430. The enable signal is also input to the control input 532 of the power switch 530 (which is coupled to the delay line 528). The enable signal turns on the power switch 530 in the power switch device 430. The programmable delay buffer 520 delays the enable signal by the delay programmed by the control signal 455. After the delay of the delay line 528, the power switch device 430 outputs the enable signal to the next power switch device in the daisy chain. For an example in which the delay line 528 includes one or more fixed delay buffers 522 and 525, the total delay of the delay line 528 includes the programmable delay of the programmable delay buffer 520 and the delay of the one or more fixed delay buffers 522 and 525. For the worst case (i.e., no active circuit blocks), the total delay of the delay line 528 of each power switch device 430-1 to 430-m can be equal to the delay of the delay line 328 of each power switch device 230, while for the case when the activity count increases, the total delay of the delay line 528 can be less than the total delay of the power switch 230. In this way, the delay is reduced / optimized to improve performance by taking advantage of the dynamic increase of the upstream capacitance as the activity count increases.
[0052] Figure 6 1 shows an exemplary implementation of a programmable delay buffer 520 according to certain aspects of the present disclosure. In this example, the programmable delay buffer 520 includes a plurality of delay paths 610-1 to 610-4, wherein each of the delay paths 610-1 to 610-4 has a different time delay. The different time delays are achieved by including a different number of delay buffers 640-1 to 640-p in each of the delay paths 610-1 to 610-4, such as Figure 6 As shown. Figure 6 In the example of FIG. 1 , delay path 610-1 (having the shortest delay) includes two delay buffers of delay buffers 640-1 and 640-2, and delay path 610-4 (having the longest delay) includes all delay buffers of delay buffers 640-1 to 640-p. Delay buffers 640-1 to 640-p may have the same delay or different delays.
[0053] The programmable delay buffer 520 also includes a multiplexer 620 having a plurality of inputs and an output. Each of the delay paths 610-1 to 610-4 is coupled between an input 625 of the programmable delay buffer 520 and a corresponding one of the inputs of the multiplexer 620. The output of the multiplexer 620 is coupled to an output 630 of the programmable delay buffer 520. The multiplexer 620 is configured to select one of the delay paths 610-1 to 610-4 based on the control signal 455 and couple the selected delay path to the output 630 of the programmable delay buffer 520. Thus, in this example, the control signal 455 controls the delay of the programmable delay buffer 520 by controlling which of the delay paths 610-1 to 610-4 the multiplexer 620 selects. When the enable signal is received at input 625 of programmable delay buffer 520 , programmable delay buffer 520 outputs the enable signal at output 630 after a time delay corresponding to the selected delay path.
[0054] exist Figure 6 In the example of FIG. 4 , the programmable delay buffer 520 includes four delay paths 610-1 to 610-4. Therefore, in this example, the power switch manager 440 can program the delay of the programmable delay buffer 520 to any one of the four different delays corresponding to the delay paths 610-1 to 610-4. For example, if the current activity count is zero, the power switch manager 440 can program the multiplexer 620 to select the delay path 610-4 (i.e., the delay path with the longest delay), if the current activity count is one, the power switch manager 440 can program the multiplexer 620 to select the delay path 610-3, if the current activity count is two, the power switch manager 440 can program the multiplexer 620 to select the delay path 610-2, and if the current activity count is three, the power switch manager 440 can program the multiplexer 620 to select the delay path 610-1 (the delay path with the shortest delay).
[0055] In some aspects, the power switch manager 440 can program the delay of the programmable delay buffer 520 by directly inputting the current activity count into the programmable delay buffer 520 as the control signal 455. In these aspects, the multiplexer 620 can be configured to select the delay path 610-4 if the current activity count is zero, select the delay path 610-3 if the current activity count is one, select the delay path 610-2 if the current activity count is two, and select the delay path 610-1 if the current activity count is three. Although in Figure 6Four delay paths 610 - 1 to 610 - 4 are shown in the example of FIG. 5 , but it should be understood that the present disclosure is not limited to this example.
[0056] exist Figure 4 In the example of FIG. 4 , the power switch circuit 420 includes a mix of programmable power switch devices 430-1 to 430-m and fixed power switch devices 435-1 to 435-k. The programmable power switch devices 430-1 to 430-m are located before the fixed power switch devices 435-1 to 435-k in the daisy chain to provide inrush current management at the beginning of power-on. The risk of large inrush current is usually greatest at the beginning of power-on because the voltage difference between the power supply rail 112 and the internal rail of the corresponding circuit block is greatest at the beginning of power-on. As the voltage on the internal rail increases during power-on, the risk of large inrush current decreases.
[0057] In the above example, the programmable power switch devices 430-1 to 430-m provide programmability of the wake-up time and inrush current management of the corresponding circuit blocks. The fixed power switch devices 435-1 to 435-k help reduce the overall size of the power switch circuit 420. This is because the fixed power switch devices 435-1 to 435-k do not include a programmable delay buffer that can be larger than the fixed delay buffer. Therefore, the number of programmable power switch devices 430-1 to 430-m and the number of fixed power switch devices 435-1 to 435-k in the power switch circuit 420 can be selected based on the trade-off between chip area, optimal wake-up time and inrush management.
[0058] Although the power switch circuit 420 includes Figure 4 4. The example of the power switch circuit 420 is a mixture of programmable power switch devices 430-1 to 430-m and fixed power switch devices 435-1 to 435-k, but it should be understood that the power switch circuit 420 is not limited to this example. For example, the power switch circuit 420 can be implemented with all programmable power switch devices coupled in a daisy chain.
[0059] Figure 7An exemplary implementation of a power switch manager 440 according to certain aspects of the present disclosure is shown. In this example, the power switch manager 440 includes a management circuit 710, an activity count tracker 720, and an activity count register 730. The activity count tracker 720 is configured to track the number of active circuit blocks in the system 110 and generate an activity count indicating the number of active circuit blocks. In this regard, the management circuit 710 can be configured to increment the activity count in the activity count tracker 720 when the block circuit in the system 110 is powered on (i.e., the power switch in the corresponding power switch circuit is turned on). When the block circuit in the system 110 is powered down (i.e., the power switch in the corresponding power switch circuit is turned off), the management circuit 710 can decrement the activity count in the activity count tracker 720. The activity count register 730 is configured to receive the current activity count from the activity count tracker 720 and program the delay of the programmable power switch devices 430-1 to 430-m of the power switch circuit 420 based on the current activity count, as further discussed below.
[0060] In operation, when the corresponding circuit block is to be awakened (i.e., powered on) from the power shrinking mode, the power controller 410 sends a power-on request to the management circuit 710 to wake up the corresponding circuit block. The decision to wake up the corresponding circuit block may come from power management software and / or hardware (not shown) based on, for example, the processing needs of the application(s) running on the system 110.
[0061] In response to the request, the management circuit 710 may grant the request by sending a grant to the power controller 410 to initiate power-up of the corresponding circuit block. The management circuit 710 may also send a command to the activity count register 730 to latch the current activity count from the activity count tracker 720 in the activity count register 730. In one example, the command to latch the current activity count may be a grant sent from the management circuit 710 to the power controller 410. In this example, the grant serves a dual purpose: granting permission to the power controller 410 to initiate power-up of the corresponding circuit block; and latching the current activity count in the activity count register 730. The activity count register 730 may maintain the latched activity count until the next request / grant exchange for the corresponding circuit block.
[0062] The activity count register 730 outputs the latched activity count as a control signal 455 to the programmable power switch devices 430-1 to 430-m to program the delay of the programmable power switch devices 430-1 to 430-m based on the activity count. For example, for each of the programmable power switch devices 430-1 to 430-m including Figure 6In the example programmable delay buffer 520 shown, the multiplexer 620 in the programmable delay buffer 520 of each programmable power switch device selects the delay path corresponding to the activity count from the activity count register 730.
[0063] In response to the permission from the management circuit 710, the power controller 410 starts the power-on of the corresponding circuit block. The power controller 410 can start the power-on by outputting an enable signal to the first power switch device 430-1 in the daisy chain. As described above, when the enable signal propagates through the daisy chain, the enable signal sequentially turns on the power switch devices 430-1 to 430-m and 435-1 to 435-k in the daisy chain. In some aspects, the last power switch device 435-k can output an enable to the power controller 410 after the enable signal has propagated through the entire daisy chain to signal the power controller 410 that all the power switch devices in the power switch devices 430-1 to 430-m and 435-1 to 435-k have been turned on. For the example in which the power switches in the power switch devices 430-1 to 430-m and 435-1 to 435-k are implemented using PFETs, the logic value of the enable signal can be zero.
[0064] After sending the grant, the management circuit 710 may increment the activity count in the activity count tracker 720. This is done to update the activity count to include the corresponding block circuit as one of the active circuits. In one example, the power controller 410 may send a signal to the management circuit 710 indicating when power-up of the corresponding block circuit is completed, and the management circuit 710 may increment the activity count in the activity count tracker 720 in response to the signal. Note that the activity count register 730 latches the activity count before the activity count is updated, so that the activity count in the activity count register reflects the number of active circuit blocks when power-up of the corresponding circuit block is initiated.
[0065] The power controller 410 and the power switch manager 440 may also use a request / grant exchange to power down (i.e., power shrink) the corresponding circuit block from the active mode to the power shrink mode. For example, when the corresponding circuit block is to be powered down from the active mode, the power controller 410 sends a power down request to the management circuit 710 to power down the corresponding circuit block. In response to the request, the management circuit 710 may grant the request by sending a grant to the power controller 410 to initiate power down of the corresponding circuit block. The management circuit 710 may also send a command to the activity count register 730 to latch the current activity count from the activity count tracker 720. In one example, the command for latching the current activity count may be a grant from the management circuit 710, in which case the grant serves a dual purpose: granting permission to the power controller 410 to initiate power down of the corresponding circuit block; and latching the current activity count in the activity count register 730. The activity count register 730 may maintain the latched activity count until the next request / grant exchange for the corresponding circuit block. In the event of a power loss, the activity count may first be decremented in the activity count tracker 720 and then the grant / latch enable asserted so as not to count as active the circuit block that will experience power shrinkage.
[0066] Before sending the grant, the management circuit 710 may decrement the activity count in the activity count tracker 720. This is done to update the activity count so that the corresponding block circuit that will experience power shrinkage should no longer be included as one of the active circuits. The activity count register 730 outputs the latched activity count to the programmable power switch devices 430-1 to 430-m in the power switch circuit 420 to program the delay of the programmable power switch devices 430-1 to 430-m.
[0067] In response to permission from the management circuit 710, the power controller 410 initiates power down of the corresponding circuit block. The power controller 410 may initiate power down by outputting a disable signal to the first power switch device 430-1 in the daisy chain. For an example in which the power switches in the power switch devices 430-1 to 430-m and 435-1 to 435-k are implemented using PFETs, the logic value of the disable signal may be one.
[0068] The power switch manager 440 may program a switching delay for each of the circuit blocks 115A to 115D (eg, processor cores). In this regard, Figure 8 A power switch manager 440 is shown coupled to the power switch circuits 420A-420D for each of the circuit blocks 115A-115D. Each power switch circuit 420A-420D may utilize Figure 4The exemplary power switch circuit 420 shown is implemented (ie, each power switch circuit 420A to 420D is Figure 4 The power switch in each power switch circuit 420A to 420D is coupled between the shared power supply rail 112 and the corresponding circuit block 115A to 115D.
[0069] exist Figure 8 In the example of FIG. 1 , each circuit block 115A to 115D has its own power controller 410A to 410D for controlling power to the circuit block. Each power controller 410A to 410D is configured to interact with a power switch manager 440 before initiating power-up or power-down of the corresponding circuit block. For example, each power controller 410A to 410D may send a request to the power switch manager 440 when the corresponding block circuit is to be powered up or powered down, and initiate power-up or power-down of the corresponding block circuit upon receiving permission of the request from the power switch manager 440.
[0070] exist Figure 8 In the example of , the power switch manager 440 includes a separate activity count register 730A-730D for each circuit block 115A-115D. Each activity count register 730A-730D is configured to latch an activity count from the activity count tracker 720 in response to a corresponding command from the management circuit 710.
[0071] In operation, when the power switch manager 440 receives a power up or power down request from one of the power controllers 410A to 410D, the power switch manager 440 sends a permission to the power controller to initiate power up or power down of the corresponding circuit block. The management circuit 710 may also send a command to the corresponding activity count register (i.e., the corresponding activity count register among the activity count registers 730A to 730D) to latch the current activity count from the activity count tracker 720 in the corresponding activity count register. In one example, the command for latching the current activity count is also a permission sent from the management circuit 710 to the power controller. The corresponding activity count register may maintain the latched activity count until the next request / permit exchange for the corresponding circuit block. The corresponding activity count register 730 outputs the latched activity count as a control signal 455 to the programmable power switch device 430-1 to 430-m in the corresponding power switch circuit to program the delay of the programmable power switch device 430-1 to 430-m based on the activity count.
[0072] The power controller initiates power-up or power-down of the corresponding circuit block in response to permission from the management circuit 710. The power controller 410 may initiate power-up by outputting an enable signal to the first power switch device 430-1 in the corresponding power switch circuit, or initiate power-down by outputting a disable signal to the first power switch device 430-1 in the corresponding power switch circuit.
[0073] After sending the grant, the management circuit 710 may increment the activity count in the activity count tracker 720 if the corresponding circuit block is being powered on, or before sending the grant, the management circuit 710 may decrement the activity count in the activity count tracker 720 if the corresponding circuit block is being powered off.
[0074] In some aspects, the power switch manager 440 is configured to grant only one request for powering up or powering down at a time. In these aspects, if the power switch manager 440 receives requests from two or more of the power controllers 410A to 410D, the management circuit 710 grants the requests one at a time. For example, if the power switch manager 440 receives power-up requests from a first power controller and a second power controller of the power controllers 410A to 410D, the management circuit 710 may grant the request of the first power controller and wait until the circuit block corresponding to the first power controller is powered up before granting the request of the second power controller.
[0075] At the beginning of a cold start, all of the circuit blocks 115A to 115D may initially be power-contracted, or if multiple constricted circuits want to wake up at the same time (because of simultaneous wake-up interrupts), the power switch manager 440 may receive a power-on request from each of the power controllers 410A to 410D. In response to the request, the power switch manager 440 may grant the request one at a time so that the circuit blocks 115A to 115D are powered up one at a time (i.e., sequentially). A mechanism to stagger / sequentially distribute grants to the power controllers is needed to manage inrush current.
[0076] For example, the management circuit 710 may first grant a request from a power controller for a first circuit block in the circuit blocks 115A to 115D. In this example, the activity count register for the first circuit block latches the current activity count from the activity count tracker 720, which is zero because all circuit blocks in the circuit block are initially power-contracted. As a result, the programmable power switch device in the corresponding power switch circuit is programmed based on the activity count of zero. In response to the grant, the power controller for the circuit block initiates power-on of the first circuit block. The management circuit 710 also increments the activity count in the activity count tracker 720 to a count value of one.
[0077] After the first circuit block is powered on, the management circuit 710 may then grant a request from a power controller for a second circuit block in the circuit blocks 115A to 115D. The activity count register for the second circuit block latches the current activity count value from the activity count tracker 720, which is one. As a result, the programmable power switch device in the corresponding power switch circuit is programmed based on an activity count of one. In response to the grant, the power controller for the second circuit block initiates power on of the second circuit block. The management circuit 710 also increments the activity count in the activity count tracker 720 to a count value of two.
[0078] After the second circuit block is powered on, the management circuit 710 may then grant the request from the power controller for the third circuit block in the circuit blocks 115A to 115D. The activity count register for the third circuit block latches the current activity count value from the activity count tracker 720, which is two. As a result, the programmable power switch device in the corresponding power switch circuit is programmed based on the activity count of two. In response to the grant, the power controller for the third circuit block initiates power-on of the third circuit block. The management circuit 710 also increments the activity count in the activity count tracker 720 to a count value of three.
[0079] After the third circuit block is powered on, the management circuit 710 may then grant a request from a power controller for a fourth circuit block in the circuit blocks 115A to 115D. The activity count register for the fourth circuit block latches the current activity count value of the activity count tracker 720, which is three. As a result, the programmable power switch device in the corresponding power switch circuit is programmed based on the activity count of three. In response to the grant, the power controller for the fourth circuit block initiates power on of the fourth circuit block.
[0080] Therefore, for the case of a cold start, the power switch manager 440 sequentially powers up the circuit blocks 115A to 115D. In addition, the power switch manager 440 programs a shorter wake-up time for each subsequent circuit block that is powered up during a cold start. This assumes that the activity count of the activity count tracker 720 increases as more circuit blocks are powered up, and shorter switching delays are programmed for higher activity counts. The reduction in the wake-up time for each subsequent circuit block reduces the overall time (i.e., latency) for a cold start. Therefore, the power switch manager 440 accelerates a cold start by reducing the wake-up time for each subsequent circuit block that is powered up during a cold start.
[0081] Fig. 9An exemplary method 900 for programming a power switch delay in a system is shown, wherein the system includes a plurality of power switch devices, each of the plurality of power switch devices including a delay line having a programmable time delay and a power switch coupled between a power rail and a circuit block. The plurality of power switch devices may correspond to programmable power switch devices 430-1 to 430-m, and the circuit block may correspond to one of the circuit blocks 115A to 115D. The delay line of each power switch device may include a programmable delay buffer that provides programmability of the time delay of the delay line.
[0082] At block 910, the number of active circuit blocks in the system is tracked. For example, the number of active circuit blocks may be tracked using an activity count that is incremented when a circuit block in the system is powered on and decremented when a circuit block in the system is powered off.
[0083] At block 920, time delays of delay lines in the plurality of power switch devices are programmed based on the number of active circuit blocks tracked. For example, if the number of active circuit blocks is equal to a first number, the time delay of at least one of the delay lines may be programmed to be equal to the first delay, and if the number of active circuit blocks is equal to a second number, the time delay of at least one of the delay lines may be programmed to be equal to the second delay. In this example, the first delay is shorter than the second delay, and the first number is greater than the second number.
[0084] The power switch manager 440 and management circuit 710 discussed above may be implemented using a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete hardware components (e.g., logic gates), or any combination thereof designed to perform the functions described herein. The processor may perform the functions described herein by executing software including code for performing the functions. The software may be stored on a computer readable storage medium such as RAM, ROM, EEPROM, optical disk, and / or magnetic disk.
[0085] Any reference to an element using names such as "first", "second" etc. herein does not generally limit the number or order of these elements. On the contrary, these names are used as a convenient way to distinguish two or more elements or element instances in this article. Therefore, the reference to the first element and the second element does not mean that only two elements can be used, nor does it mean that the first element must be before the second element.
[0086] In this disclosure, the word "exemplary" is used to mean "serving as an example, instance, or illustration." Any implementation or aspect described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other aspects of the disclosure. Likewise, the term "aspect" does not require that all aspects of the disclosure include the discussed feature, advantage, or mode of operation. The term "coupled" is used herein to refer to a direct or indirect electrical coupling between two structures.
[0087] The previous description of the disclosure is provided to enable those skilled in the art to make or use the disclosure. Various modifications to the disclosure will be clear to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Therefore, the disclosure is not intended to be limited to the examples described herein, but to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A device, include: a first plurality of power switching devices, wherein each power switching device of the first plurality of power switching devices comprises: delay lines with programmable time delays; and a power switch coupled between the power supply rail and the circuit block, wherein the power switch has a control input coupled to the delay line; and A switch manager is configured to program the time delays of the delay lines in the first plurality of power switches based on a number of active circuit blocks in a system.
2. The apparatus of claim 1 , wherein the power switch in each of the first plurality of power switch devices include: A transistor is coupled between the power supply rail and the circuit block, wherein the control input of the power switch comprises a gate of the transistor. 3 . The apparatus of claim 1 , wherein the delay lines in the first plurality of power switches are coupled in series to form a daisy chain.
4. The device according to claim 1, further comprising: include: a second plurality of power switching devices, wherein each power switching device in the second plurality of power switching devices comprises: delay lines having non-programmable time delays; and a power switch coupled between the power supply rail and the circuit block, wherein the power switch has a control input coupled to the delay line; Wherein the delay line in the first plurality of power switches and the delay line in the second plurality of power switches are coupled in series to form a daisy chain. 5 . The apparatus of claim 4 , wherein the first plurality of power switches precedes the second plurality of power switches in the daisy chain. 6 . The apparatus of claim 1 , further comprising a power controller configured to initiate power-up of the circuit block by outputting an enable signal to a first power switch of the first plurality of power switches.
7. The device according to claim 6, in: The power controller is configured to send a request to the switch manager to power on the circuit block; the switch manager configured to program the time delay of the delay line in the first plurality of power switches in response to the request; The switch manager is configured to send a grant of the request to the power controller; as well as The power controller is configured to initiate the powering up of the circuit block in response to the permission.
8. The apparatus of claim 1, wherein the switch manager is configured to: If the number of active circuit blocks is equal to a first number, programming the time delay of at least one of the delay lines to be equal to a first delay line ; as well as programming the time delay of the at least one of the delay lines to be equal to a second delay if the number of active circuit blocks is equal to a second number; Wherein the first delay is shorter than the second delay, and the first number is greater than the second number.
9. The apparatus of claim 1, wherein the switch manager include: an activity count tracker configured to generate an activity count indicative of a number of said active circuit blocks in said system; an activity count register configured to receive the activity count from the activity count tracker; as well as a management circuit configured to cause the activity count register to latch the received activity count; Wherein the activity count register is further configured to output the latched activity count to the delay line in the first plurality of power switches to program the time delay of the delay line in the first plurality of power switches.
10. The apparatus of claim 9, wherein the management circuit is configured to increment the activity count in the activity count tracker when a circuit block in the system is powered on. 11 . The apparatus of claim 10 , wherein the management circuit is configured to decrement the activity count in the activity count tracker when a circuit block in the system is powered off.
12. The apparatus of claim 9, wherein the delay line in each of the first plurality of power switches include: Programmable delay buffers including: Multiple delay paths; and A multiplexer is configured to receive the latched activity count from the activity count register and select one of the plurality of delay paths based on the latched activity count.
13. The apparatus of claim 1, wherein the circuit block comprises a processor core and the active circuit block comprises an active processor core.
14. The apparatus of claim 1, wherein the circuit block and the active circuit block share the power supply rail.
15. A method for programming a power switch delay in a system, wherein the system comprises a plurality of power switch devices, each of the plurality of power switch devices comprising a delay line having a programmable time delay and a power switch coupled between a power supply rail and a circuit block, wherein the power switch has a control input coupled to the delay line, the method include: tracking the number of active circuit blocks in the system; as well as The time delays of the delay lines in the plurality of power switches are programmed based on the tracked number of active circuit blocks.
16. The method of claim 15, wherein the time delay of the delay line is programmed include: programming the time delay of at least one of the delay lines to be equal to a first delay if the number of active circuit blocks is equal to a first number; as well as programming the time delay of the at least one of the delay lines to be equal to a second delay if the number of active circuit blocks is equal to a second number; Wherein the first delay is shorter than the second delay, and the first number is greater than the second number. 17 . The method of claim 15 , wherein the delay lines in the plurality of power switching devices are coupled in series to form a daisy chain. 18 . The method of claim 17 , further comprising initiating power-up of the circuit block by outputting an enable signal to a first power switch of the plurality of power switches.
19. The method according to claim 15, in: Tracking the number of active circuit blocks in the system includes generating an activity count indicative of the number of active circuit blocks tracked; as well as Programming the time delay of the delay line in the plurality of power switching devices comprises: latching the activity count; as well as The latched activity count is output to the delay line in the plurality of power switches.
20. The method of claim 19, wherein tracking the number of active circuit blocks comprises incrementing the activity count when a circuit block in the system is powered on.
21. The method of claim 20, wherein tracking the number of active circuit blocks comprises decrementing the activity count when a circuit block in the system is powered off.
Citation Information
Patent Citations
Power chain with delay adaptive switches
US10459510B1
Semiconductor integrated circuit device
US20010052800A1
Distributed supply current switch circuits for enabling individual power domains
US20060184808A1
