A circuit for dynamically adjusting power consumption
By introducing dynamic power consumption circuits in the FPGA design, using MOS tubes and LDO circuits combined with switch modules, the problem of inflexible power consumption adjustment in the prior art is solved, and power consumption optimization and voltage adaptation in different working modes are achieved match.
Patent Information
- Application Number
- CN202011476462.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-12-15
AI Technical Summary
In the existing FPGA design, power gating technology is difficult to effectively and dynamically adjust power consumption, especially in different working modes, and the voltage of the power consumption cannot be flexibly adjusted, resulting in unbalanced power consumption.
Using a dynamic power consumption circuit based on the power gate circuit, the module voltage of the power consumption module is dynamically adjusted through the first MOS tube and the low dropout linear regulator LDO circuit, combined with the switching module and the control signal, and the module voltage of the power consumption module is increased to optimize the control branch. Power consumption configuration.
It realizes dynamic adjustment of the power consumption of the power module under different working modes, reduces the average and peak current of the system, and improves the flexibility and efficiency of power consumption.
Smart Images

Figure CN112511144B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power gating, and in particular to a circuit for dynamically adjusting power consumption. Background Art
[0002] The FPGA is composed of different module arrays, which may include multiple modules, such as BRAM, DSP, PLB (LUT / DFF logic), clock tree, etc. After power-on, the power consumption of the above modules is very high. With the continuous advancement of technology, the scale of FPGA is getting larger and larger, and the corresponding FPGA power consumption is constantly increasing.
[0003] Power gating circuit is a common technology that reduces the leakage power consumption of circuit modules in sleep or standby mode by controlling the power supply of circuit modules. It is widely used in FPGA design. The controlled circuit modules can be inside or outside the chip. Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of a power gating circuit in the prior art, which controls the module voltage of the power module according to the gate voltage of the first MOS tube M0. Summary of the invention
[0004] In order to achieve the purpose of dynamically and statically reducing the power consumption of the power-consuming module, the defects existing in the prior art are solved.
[0005] The embodiment of the present invention provides a circuit for dynamically adjusting power consumption based on a power gating circuit, including a first MOS tube, a power consumption module and a low voltage drop linear regulator LDO circuit.
[0006] The source of the first MOS tube is connected to the power supply voltage, the drain of the first MOS tube is connected to the voltage input terminal of the power module, and the drain voltage of the first MOS tube is used as the module voltage of the power module. The output terminal of the LDO circuit is connected to the gate of the first MOS tube, and the output voltage of the LDO is used as the gate voltage of the first MOS tube; by changing the output voltage of the LDO circuit, the module voltage of the power module is dynamically adjusted.
[0007] In one embodiment, the LDO circuit includes: a comparison amplifier, a second MOS tube, a first adjustable resistor, and a second adjustable resistor; wherein the first input terminal of the comparison amplifier is connected to a reference voltage; the second input terminal of the comparison amplifier is connected to the second end of the first adjustable resistor and the first end of the second adjustable resistor; the output terminal of the comparison amplifier is connected to the gate of the second MOS tube; the source of the second MOS tube is connected to a power supply voltage; the drain of the second MOS tube is connected to the first end of the first adjustable resistor; the gate of the second MOS tube serves as the output terminal of the LDO circuit; and the second end of the second adjustable resistor is grounded;
[0008] By applying an external output voltage selection signal to the first adjustable resistor and / or the second adjustable resistor, the resistance of the first adjustable resistor and / or the second adjustable resistor is changed according to the output voltage selection signal, so as to dynamically adjust the output voltage of the LDO circuit.
[0009] In one embodiment, the circuit for dynamically adjusting power consumption further includes: a first switch, a second switch and a third switch; the first switch, the second switch, the third switch and the first MOS tube constitute a switch module; wherein the first end of the first switch is connected to the gate of the first MOS tube, and the second end of the first switch is connected to the output end of the LDO circuit; the first end of the second switch is connected to the gate of the first MOS tube, and the second end of the second switch is connected to the power supply voltage; the first end of the third switch is connected to the gate of the first MOS tube, and the second end of the third switch is grounded.
[0010] In a further embodiment, the circuit for dynamically adjusting power consumption further includes N first switches, N second switches, N third switches and N first MOS tubes; one first switch, one second switch, one third switch and one first MOS tube constitute a switch module, constituting a total of N+1 switch modules of the same structure; wherein,
[0011] For each switch module, a first end of the first switch is connected to the gate of the first MOS tube, and a second end of the first switch is connected to the output end of the LDO circuit; a first end of the second switch is connected to the gate of the first MOS tube, and a second end of the second switch is connected to the power supply voltage; a first end of the third switch is connected to the gate of the first MOS tube, and a second end of the third switch is grounded;
[0012] Based on the N+1 switch modules, a voltage monitoring module is added to detect the voltage drop at the input end of the power module when the circuit is working, and dynamically adjust the number of N+1 switch modules that are turned on. For example, when the power module is in high-speed mode, the number of parallel switch modules that are turned on is increased to provide sufficient current and a smaller voltage drop; when the power module is in low-power mode, the number of parallel switch modules that are turned on is reduced to reduce transient peak current and average power consumption to meet the demand for low power consumption.
[0013] The advantages of the embodiments of the present application are: three control branches are added to the traditional power gating circuit, and the three branches are respectively connected to the power supply voltage, the ground voltage and the LDO circuit. The three control branches are respectively controlled to be turned on and off by three control signals, and the output voltage of the LDO circuit is controlled by another control signal, thereby controlling the module voltage of the power module in the power gating circuit. The values of the four control signals can be given by the configuration bits built into the FPGA chip, and the circuit is configured each time the chip is powered on, so as to achieve low-power static configuration optimization of the circuit. The values of the four control signals can also be controlled by the internal logic circuit, so as to achieve low-power dynamic switching optimization of dynamically switching the working mode during the operation of the chip system according to the user's editing. Furthermore, the number of circuit modules can be dynamically adjusted using a dynamic switch, which can further reduce the average and peak currents of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a schematic diagram of the structure of a power gating circuit in the prior art;
[0015] Figure 2 A schematic diagram of a circuit structure for dynamically adjusting power consumption according to an embodiment of the present invention;
[0016] Figure 3 A schematic diagram of a circuit structure for dynamically adjusting the power consumption of an EMB module according to an embodiment of the present invention;
[0017] Figure 4 A schematic diagram of a circuit structure for dynamically adjusting power consumption composed of multiple switch modules according to an embodiment of the present invention;
[0018] Figure 5 The present invention is a schematic diagram of a circuit structure for dynamically adjusting power consumption composed of two switch modules according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] The FPGA is composed of different module arrays. In the prior art, a power gating circuit is often used to adjust the working state of each power-consuming module in the module array, thereby reducing the power consumption of the FPGA.
[0021] Specifically, Figure 1As shown, there is a first MOS transistor M0 between the power module and the power supply voltage VDD. The gate of M0 receives an external sleep signal sleep as a control signal, and adjusts the conduction or shutdown of M0 according to the potential of sleep.
[0022] For example, when sleep is at a low potential, M0 is turned on, the power-consuming module receives VDD as the module voltage and is in normal working mode; when sleep is at a high potential, M0 is turned off, the power-consuming module receives no voltage and is in power-off mode, thereby reducing the power consumption of the power-consuming module in the power-off mode.
[0023] In the embodiment of the present invention, by changing the attached Figure 1 The gate voltage of the first MOS tube M0 in the circuit is adjusted to achieve the purpose of dynamically adjusting the module voltage of the power module. The specific method is to add multiple input signals upstream of the gate of M0, and control them by the switches of each branch, and dynamically adjust the conduction or shutdown of each branch according to the demand of the gate voltage of M0.
[0024] In a specific embodiment, Figure 2 As shown, the circuit for dynamically adjusting power consumption includes an LDO circuit, a switch module and a power consumption module. Among them, the switch module includes a first switch s1, a second switch s2, a third switch s3 and a first MOS tube M0. S1, s2 and s3 respectively correspond to the three branches upstream of the gate of M0. Among them, the first branch includes the LDO circuit and s1, the gate of M0 is connected to the first end of s1, and the second end of s1 is connected to the output end of the LDO circuit; the second branch includes s2, the gate of M0 is connected to the first end of s2, and the second end of s2 is connected to the power supply voltage VDD; the third branch includes s3, the gate of M0 is connected to the first end of s3, and the second end of s3 is grounded.
[0025] The second branch and the third branch are used to maintain the corresponding control mode of the power gating circuit in the prior art. That is, when s2 is connected and s1 and s3 are disconnected, the second branch is connected, and the gate of M0 is connected to VDD (high level), which is equivalent to the attached Figure 1 When sleep is high, M0 is turned off, the power module has no access voltage and is in power-off mode; when s3 is connected and s1 and s2 are disconnected, the third branch is connected, and the gate of M0 is grounded (low level), which is equivalent to the attached Figure 1 When sleep is at a low level, M0 is turned on, and the power module receives VDD as the module voltage and is in normal working mode.
[0026] When s1 is connected and s2 and s3 are disconnected, the first branch is connected, the gate of M0 is connected to the output end of the LDO circuit, and the output voltage Vout of the LDO circuit serves as the gate voltage Vgate of M0.
[0027] The LDO circuit includes: a comparison amplifier, a second MOS tube M1, a first adjustable resistor R1 and a second adjustable resistor R2. The first input terminal of the comparison amplifier is connected to a reference voltage Vref, the second input terminal of the comparison amplifier is connected to the second terminal of R1 and the first terminal of R2, and the output terminal of the comparison amplifier is connected to the gate of M1; the source of M1 is connected to VDD, and the drain of M1 is connected to the first terminal of R1; the gate of M1 serves as the output terminal of the LDO circuit (i.e., the output voltage Vout), and the second terminal of R2 is grounded; R1 and R2 are connected in series to form a resistor feedback network.
[0028] The LDO circuit forms a negative feedback closed-loop system through a resistor feedback network. When the voltage at the output end of the LDO circuit increases, a feedback signal is provided through the resistor feedback network, the voltage at the second input end of the comparison amplifier increases, and by comparing it with the reference voltage Vref at the first input end of the comparison amplifier, the output signal of the comparison amplifier is adjusted, the gate voltage of M1 is increased, and the output voltage Vout of the LDO circuit is reduced; conversely, when the voltage at the output end of the LDO circuit decreases, a feedback signal is provided through the resistor feedback network, the voltage at the second input end of the comparison amplifier decreases, and by comparing it with the reference voltage Vref at the first input end of the comparison amplifier, the output signal of the comparison amplifier is adjusted, the gate voltage of M1 is reduced, and the output voltage Vout of the LDO circuit is raised.
[0029] The output voltage Vout of the LDO circuit=(1+R1 / R2)Vref.
[0030] When the gate voltage Vgate of M0 is provided by the output voltage Vout of the LDO circuit, the resistance values of R1 and R2 in the LDO circuit are further controlled by the external output voltage selection signal Vout_sel to adjust the output voltage of the LDO circuit. Then, the module voltage of the power module is adjusted. This method can use the module voltage of the power module to adapt to the voltage requirements in different working modes as much as possible.
[0031] For example, when the power consumption module is a memory module EMB module, Figure 3 shown.
[0032] Four different module voltages are preset according to the normal working mode of the EMB module. s1 is controlled by the external dynamic enable signal dyn_en, s2 is controlled by the external sleep signal sleep, s3 is controlled by the external working signal active, and the output voltage of the LDO circuit is controlled by the external output voltage selection signal Vout_sel. The module voltage VDD_emb of the EMB module is dynamically adjusted by changing the gate voltage of M0. As shown in Table 1:
[0033]
[0034] Table 1
[0035] It can be seen from Table 1 that when the EMB module needs to be in normal working mode, active is set to high level, s3 is turned on, dyn_en and sleep are set to low level, s1 and s2 are disconnected, and the module voltage VDD_emb is set to the power supply voltage VDD.
[0036] When the EMB module needs to be in power-off mode, make sleep high, turn on s2, make dyn_en and active low, disconnect s1 and s3, and make the module voltage VDD_emb 0.
[0037] When the EMB module needs to be in slow working mode, active and sleep are set to low level, s2 and s3 are disconnected, dyn_en is set to high level, s1 is turned on, and the module voltage VDD_emb changes according to the gate voltage of M0. Specifically, Vout_sel at this time is the first preset value, R1 and R2 are adjusted to R1_1 and R2_1 respectively according to the first preset value, (1+R1_1 / R2_1)Vref is used as the output voltage Vout1 of the LDO circuit, and then as the gate voltage of M0, so that the module voltage is VDD_emb-Vout1.
[0038] When the EMB module needs to be in data retention (sleep state) mode, active and sleep are set to low levels, s2 and s3 are disconnected, dyn_en is set to high level, s1 is turned on, and the module voltage VDD_emb changes according to the gate voltage of M0. Specifically, Vout_sel at this time is the second preset value, R1 and R2 are adjusted to R1_2 and R2_2 respectively according to the second preset value, (1+R1_2 / R2_2)Vref is used as the output voltage Vout2 of the LDO circuit, and then as the gate voltage of M0, so that the module voltage is VDD_emb-Vout2.
[0039] It should be noted that the above slow working mode and data retention mode are both low power consumption modes with working voltage lower than VDD. That is, when the working voltage of the power module is lower than VDD, Vout_sel is configured to make the LDO output voltage the gate voltage value of M0 corresponding to the working voltage pre-realized by the power module.
[0040] The first preset value and the second preset value of the external dynamic enable signal dyn_en, the sleep signal sleep, the working signal active and the output voltage selection signal Vout_sel can be given by the configuration bits built into the chip, and configured each time the chip is powered on, so as to realize the static optimization configuration of power consumption. The external dynamic enable signal dyn_en, the sleep signal sleep, the working signal active and the output voltage selection signal Vout_sel can also be given by the internal logic fabric circuit, so as to realize the dynamic switching of the working mode during the operation of the chip system according to the user's programming, thereby realizing the dynamic optimization configuration of power consumption.
[0041] Furthermore, multiple switch modules can be connected in parallel to optimize the circuit structure and realize dynamic switching of the power module in high-speed and low-power modes. For example, when the power module is in high-speed mode, the number of switch modules connected in parallel is increased to provide sufficient current and a smaller voltage drop; when the power module is in low-power mode, the number of switch modules connected in parallel is reduced to reduce transient peak current and average power consumption.
[0042] To achieve the above purpose, Figure 4 As shown, the circuit for dynamically adjusting power consumption includes an LDO circuit, N switch modules and a power consumption module, where N is a positive integer.
[0043] The LDO circuit includes: a comparison amplifier, a second MOS tube M1, a first adjustable resistor R1 and a second adjustable resistor R2. The first input terminal of the comparison amplifier is connected to a reference voltage Vref, the second input terminal of the comparison amplifier is connected to the second terminal of R1 and the first terminal of R2, and the output terminal of the comparison amplifier is connected to the gate of M1; the source of M1 is connected to VDD, and the drain of M1 is connected to the first terminal of R1; the gate of M1 serves as the output terminal (output voltage Vout) of the LDO circuit; and the second terminal of R2 is grounded. Each switch module includes a first switch s1[s1_1:s1_N], a second switch s2[s2_1:s2_N], a third switch s3[s3_1:s3_N] and a first MOS tube M0[M0_1:M0_N]. Taking the Nth switch module as an example, a first end of the first switch s1_N is connected to the gate of the first MOS tube M0_N, and a second end of s1_N is connected to the output end of the LDO circuit; a first end of the second switch s2_N is connected to the gate of M0_N, and a second end of s2_N is connected to the power supply voltage; a first end of the third switch s3_N is connected to the gate of M0_N, and a second end of s3_N is grounded; a source of M0_N is connected to the power supply voltage, and a drain of M0_N is connected to the voltage input end of the power module.
[0044] According to the module voltage requirements of the power module, dynamically control the N external dynamic enable signals dyn_en [dyn_en_1:dyn_en_N] to control the corresponding s1 respectively, dynamically control the N external sleep signals sleep [sleep_1:sleep_N] to control the corresponding s2 respectively, dynamically control the N external working signals active [active_1:active_N] to control the corresponding s3 respectively; and dynamically control the external output voltage selection signal Vout_sel to control the output voltage of the LDO circuit, thereby controlling the gate voltage of the N M0s. The drain voltage of the N M0s is used as the module voltage of the power module.
[0045] Control the number of N s1, N s2 and N s3 that are turned on, that is, the number of switch modules in parallel. Through the external voltage monitoring module and current monitoring module, the voltage drop and current size of different numbers of switch modules in parallel when the circuit is working can be detected, and the corresponding relationship between the number of switch modules in parallel and the leakage current, maximum voltage drop and maximum instantaneous current in the circuit can be obtained.
[0046] when Figure 4 The power consumption of s3 in different numbers of switch modules is shown when the power consumption module is in normal working mode, that is, s1 and s2 of multiple switch modules are turned off, and the number of switch modules connected is determined according to the number of s3 turned on. Specifically, the number of s3 turned on is equal to the number of switch modules connected in parallel. As shown in Table 2:
[0047]
[0048] Table 2
[0049] As shown in Table 2, when only one of the N switch modules in parallel conducts s3 and the other switches are in the off state, the leakage current of the circuit is 30%, the maximum voltage drop is 4.55x, and the maximum instantaneous current is 58%. At this time, the circuit is equivalent to Figure 2 When switch s3 is turned on and switch s1 and s2 are turned off; when s3 of two of the N switch modules in parallel are turned on and the other switches are in the off state, the leakage current of the circuit is 39%, the maximum voltage drop is 3x, and the maximum instantaneous current is 74%; when s3 of four of the N switch modules in parallel are turned on and the other switches are in the off state, the leakage current of the circuit is 56%, the maximum voltage drop is 1.94x, and the maximum instantaneous current is 89%; when s3 of ten of the N switch modules in parallel are turned on and the other switches are in the off state, the leakage current of the circuit is 100%, the maximum voltage drop is 1, and the maximum instantaneous current is 100%.
[0050] The corresponding relationship between the number of switch modules and the power consumption in the above normal working mode is similar. Combined with Table 1, it can be seen that when the power module is in the slow working mode or data retention mode through the switch s1, s2 and s3 are turned off, and different numbers of switch modules are turned on according to the number of s1s that are turned on. The power consumption of the power module in the slow working mode or data retention mode can be dynamically adjusted.
[0051] In a specific embodiment, Figure 5 As shown, the circuit for dynamically adjusting power consumption includes an LDO circuit, a first switch module, a second switch module and a power consumption module.
[0052] Among them, the electrical module is a memory module EMB module. The LDO circuit includes: a comparison amplifier, a second MOS tube M1, a first adjustable resistor R1 and a second adjustable resistor R2. Among them, the first input end of the comparison amplifier is connected to the reference voltage Vref, the second input end of the comparison amplifier is connected to the second end of R1 and the first end of R2, and the output end of the comparison amplifier is connected to the gate of M1; the source of M1 is connected to VDD, and the drain of M1 is connected to the other end of R1; the gate of M1 serves as the output end of the LDO circuit (output voltage Vout); the second end of R2 is grounded. The first switch module includes switch s1_1, switch s2_1, switch s3_1 and MOS tube M0_1. The second switch module includes switch s1_2, switch s2_2, switch s3_2 and MOS tube M0_2. The second ends of s1_1 and s1_2 are connected to the output end of the LDO circuit, the second ends of s2_1 and s2_2 are connected to VDD, and the second ends of s3_1 and s3_2 are grounded; the first ends of s1_1, s2_1, and s3_1 are connected to the gate of M0_1; the first ends of s1_2, s2_2, and s3_2 are connected to the gate of M0_2. The sources of M0_1 and M0_2 are connected to VDD, and the drains of M0_1 and M0_2 are connected to the voltage input end of the EMB module.
[0053] Six different working modes are preset according to the voltage requirements of the EMB module, and corresponding module voltages are provided. s1_1 is controlled by an external dynamic enable signal dyn_en_1, s2_1 is controlled by an external sleep signal sleep_1, and s3_1 is controlled by an external working signal active_1; s1_2 is controlled by an external dynamic enable signal dyn_en_2, s2_2 is controlled by an external sleep signal sleep_2, and s3_2 is controlled by an external working signal active_2; and the output voltage of the LDO circuit is controlled by an external output voltage selection signal Vout_sel. The module voltage VDD_emb of the EMB module is dynamically adjusted by changing the gate voltages of M0_1 and M0_2. As shown in Table 3:
[0054]
[0055]
[0056] Table 3
[0057] It can be seen from Table 3 that when the EMB module needs to be in normal operation, s3_1 and s3_2 are turned on, and s1_1, s2_1, s1_2 and s2_2 are turned off, so that the module voltage VDD_emb is the power supply voltage VDD.
[0058] When the EMB module needs to be in a normal working power saving mode, s3_1 and s2_2 are turned on, and s1_1, s2_1, s1_2 and s3_2 are turned off, so that the module voltage VDD_emb is VDD.
[0059] Although the module voltage is VDD in both normal working mode and normal working power saving mode, in normal working power saving mode, s1_2 is disconnected and s2_2 is turned on, so that M0_2 does not provide voltage and current to the working module. This makes the working current of the EMB module in normal working power saving mode smaller than that in normal working mode, thus achieving the purpose of saving power.
[0060] When the EMB module needs to be in power-off mode, s2_1 and s2_2 are turned on, and s1_1, s3_1, s1_2, and s3_2 are turned off, so that the module voltage VDD_emb is 0.
[0061] When the EMB module needs to be in slow working mode, s1_1 and s1_2 are turned on, and s2_1, s3_1, s2_2 and s3_2 are turned off, so that the module voltage VDD_emb changes according to the gate voltages of M0_1 and M0_2. Specifically, Vout_sel at this time is the first preset value, R1 and R2 are adjusted to R1_1 and R2_1 according to the first preset value, and (1+R1_1 / R2_1)Vref is used as the output voltage Vout1 of the LDO circuit, and then as the gate voltage of M0_1 and M0_2, so that the module voltage is VDD_emb-Vout1.
[0062] When the EMB module needs to be in a slow-speed working power saving mode, s1_1 and s2_2 are turned on, and s2_1, s3_1, s1_2 and s3_2 are turned off, so that the module voltage VDD_emb changes according to the gate voltage of M0_1. Specifically, Vout_sel at this time is the first preset value, R1 and R2 are adjusted to R1_1 and R2_1 according to the first preset value, and (1+R1_1 / R2_1)Vref is used as the output voltage Vout1 of the LDO circuit, and then as the gate voltage of M0_1. At the same time, the gate voltage of M0_2 is the power supply voltage VDD, and M0_2 does not provide voltage and current to the working module, so that the module voltage is VDD_emb-Vout1.
[0063] The same as the above-mentioned normal working mode and normal working power saving mode. Since s1_2 is disconnected and s2_2 is turned on in the slow working power saving mode, M0_2 does not provide voltage and current to the working module. This makes the working current of the EMB module in the slow working power saving mode smaller than that in the slow working mode, achieving the purpose of saving power.
[0064] When the EMB module needs to be in data retention (sleep state) mode, s1_1 and s2_2 are turned on, s2_1, s3_1, s1_2 and s3_2 are turned off, so that the module voltage VDD_emb changes according to the gate voltage of M0_1. Specifically, Vout_sel at this time is the second preset value, R1 and R2 are adjusted to R1_2 and R2_2 according to the second preset value, and (1+R1_2 / R2_2)Vref is used as the output voltage Vout2 of the LDO circuit, and then as the gate voltage of M0_1. At the same time, the gate voltage of M0_2 is the power supply voltage VDD, and M0_2 does not provide voltage and current to the working module, so that the module voltage is VDD_emb-Vout2.
[0065] The above slow speed operation power saving mode and data retention (sleep state) mode adopt the same setting state of each switch. By configuring Vout_sel, the LDO output voltage is the gate voltage value of M0_1 corresponding to the pre-implemented working voltage of the EMB module.
[0066] The first preset value and the second preset value of the external dynamic enable signal dyn_en_1, dyn_en_2, the sleep signal sleep_1, sleep_2, the working signal active_1, active_2 and the output voltage selection signal Vout_sel can be given by the configuration bit built into the chip, and configured each time the chip is powered on, so as to realize the static optimization configuration of power consumption. It is also possible to realize the dynamic optimization configuration of power consumption by giving the above external signals through the internal logic fabric circuit, and realize the dynamic switching of the working mode during the operation of the chip system according to the user's programming.
[0067] The present invention discloses a circuit for dynamically adjusting power consumption. Three control branches are added to a traditional power gating circuit, and the three branches are respectively connected to a power supply voltage, a ground voltage, and an LDO circuit. The three control branches are respectively controlled to be turned on and off by three control signals, and the output voltage of the LDO circuit is controlled by another control signal, thereby controlling the module voltage of the power-consuming module in the power gating circuit. The values of the four control signals can be given by the configuration bits built into the FPGA chip, and the circuit is configured each time the chip is powered on, thereby realizing low-power static configuration optimization of the circuit. The values of the four control signals can also be controlled by an internal logic circuit, thereby realizing low-power dynamic switching optimization of dynamically switching working modes during chip system operation according to user editing.
[0068] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A circuit for dynamically adjusting power consumption, based on a power gating circuit, characterized in that: It includes a first MOS tube, an LDO circuit, a power module and a switch module; wherein, The source of the first MOS tube is connected to the power supply voltage, the drain of the first MOS tube is connected to the voltage input terminal of the power module, the drain voltage of the first MOS tube is used as the module voltage of the power module, the gate of the first MOS tube is connected to the output terminal of the LDO circuit, and the output voltage of the LDO circuit is used as the gate voltage of the first MOS tube; The switch module comprises: a first switch, a second switch and a third switch, wherein the first switch, the second switch, the third switch and the first MOS transistor constitute the switch module; Wherein, a first end of the first switch is connected to the gate of the first MOS transistor, and a second end of the first switch is connected to the output end of the LDO circuit; A first end of the second switch is connected to the gate of the first MOS transistor, and a second end of the second switch is connected to the power supply voltage; A first end of the third switch is connected to the gate of the first MOS transistor, and a second end of the third switch is grounded; The module voltage of the power module is dynamically adjusted by changing the output voltage of the LDO circuit and the external control signal corresponding to each switch.
2. The circuit according to claim 1, characterized in that The LDO circuit includes: a comparison amplifier, a second MOS tube, a first adjustable resistor and a second adjustable resistor; wherein, The first input terminal of the comparison amplifier is connected to the reference voltage; the second input terminal of the comparison amplifier is connected to the second end of the first adjustable resistor and the first end of the second adjustable resistor; the output terminal of the comparison amplifier is connected to the gate of the second MOS tube; the source of the second MOS tube is connected to the power supply voltage; the drain of the second MOS tube is connected to the first end of the first adjustable resistor; the gate of the second MOS tube serves as the output terminal of the LDO circuit; the second end of the second adjustable resistor is grounded; Changing the output voltage of the LDO circuit is to change the resistance value of the first adjustable resistor and / or the second adjustable resistor according to an external output voltage selection signal to dynamically adjust the output voltage of the LDO circuit.
3. The circuit according to claim 1, characterized in that It also includes N first switches, N second switches, N third switches and N first MOS tubes, where N is a positive integer; one first switch, one second switch, one third switch and one first MOS tube form a switch module, which constitutes N+1 switch modules in total; Wherein, for each of the switch modules, a first end of the first switch is connected to the gate of the first MOS tube, and a second end of the first switch is connected to the output end of the LDO circuit; a first end of the second switch is connected to the gate of the first MOS tube, and a second end of the second switch is connected to the power supply voltage; a first end of the third switch is connected to the gate of the first MOS tube, and a second end of the third switch is grounded; The gate voltage of each of the first MOS tubes is dynamically adjusted according to an external control signal corresponding to each switch.
