Multi-power domain adaptive voltage regulation method and system based on RISC architecture chip
Through the multi-power domain adaptive voltage regulation method, the voltage and frequency of the RISC-V architecture chip are dynamically adjusted, solving the problems of high power consumption and resource waste, achieving low-power design, and suitable for different working modes.
Patent Information
- Application Number
- CN202410741346.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-11
AI Technical Summary
There is a lack of design solutions for adaptively adjusting voltage and frequency in chips based on RISC-V architecture, leading to problems of high power consumption, increased temperature, and waste of resources.
Using a multi-power domain adaptive voltage regulation method, it collects the operating voltage, frequency and temperature data of the chip, analyzes the critical path, adjusts the voltage value, and feeds it back to the CPU core according to the critical frequency to dynamically adjust the voltage and frequency to support different working modes. low power consumption design.
It realizes dynamic adjustment of multiple power domains within the chip, reduces power consumption, and is suitable for low-power SoC design to meet different customer needs.
Smart Images

Figure CN118313343B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip design, and in particular to a multi-power domain adaptive voltage regulation method and system based on a RISC architecture chip. Background Art
[0002] The field of chip design is getting hotter and hotter. ASIC is a dedicated integrated circuit with the advantages of high density, high speed and low cost. RISC is a reduced instruction set architecture, characterized by an open source instruction set, while ARM is not open source, so chip design based on RISC-V architecture is getting more and more attention.
[0003] In the early chip design, the main parameters concerned were area and performance, and the chip area was minimized while ensuring chip performance. However, as more and more circuits are packaged in the chip and the operating frequency becomes higher and higher, the static power consumption of the transistor increases a lot. In addition, the reduction of threshold voltage and operating power supply voltage will also lead to an increase in leakage current, which will lead to high power consumption of the chip.
[0004] Excessive power consumption will cause the temperature inside the chip to rise, requiring a more stringent heat dissipation design; at the same time, the temperature rise will also affect the reliability and aging of the chip, and bring additional electromagnetic interference. In addition, if the chip works at a fixed host frequency and a fixed core voltage, at certain times, the working margin is large, resulting in a certain waste of resources and suboptimal efficiency. In chips based on the RISC-V architecture, there are relatively few design solutions that can adaptively adjust voltage and frequency. The lack of chip design solutions for adjusting voltage and frequency affects the low power consumption and optimized design of RISC-V architecture chips. Summary of the invention
[0005] In view of the lack of design solutions for adaptively adjusting voltage and frequency in RISC-V architecture chips, the present invention provides a multi-power domain adaptive voltage regulation method based on RISC architecture chips.
[0006] In the first aspect, the present invention provides a multi-power domain adaptive voltage regulation method based on a RISC architecture chip. The technical solution adopted to solve the above technical problems is as follows:
[0007] A multi-power domain adaptive voltage regulation method based on a RISC architecture chip comprises the following steps:
[0008] S1. Collect the current operating voltage, frequency and temperature of the RISC-V architecture chip;
[0009] S2. Save the acquired data, analyze the currently constrained critical path of the RISC-V architecture chip and output the signal;
[0010] S3, adjusting the voltage value according to the output signal, copying the critical path, and determining the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work;
[0011] S4. Adjust the voltage according to the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work, and at the same time, feed back the critical frequency to the CPU core.
[0012] Optionally, step S3 is performed to copy the critical path using a double-stacked delay module, the delay module includes a double-stacked PMOS tube and an NMOS tube, there are 8 PMOS tubes, respectively called P1, P2, P3, P4, P5, P6, P7, and P8, and there are 6 NMOS tubes, respectively called N1, N2, N3, N4, N5, and N6, wherein:
[0013] The sources of P1, P3, P5, and P7 are connected to the power supply voltage VDD, and the drains of P1, P3, P5, and P7 are connected to the sources of P2, P4, P6, and P8 respectively;
[0014] The sources of N2, N4, and N6 are connected to the ground GND, and the drains of N2, N4, and N6 are connected to the sources of N1, N3, and N5;
[0015] The drain of P2 is correspondingly connected to the drain of N1, and the common connection point Q1 of P2 and N1 is output to the gates of P3, P4 and N4;
[0016] The drains of P4 and P6 are connected to the drain of N3, and the common connection point Q2 of P4, P6 and N3 controls the gates of P8, N5 and N6;
[0017] The reset signal RST is connected to the gates of P1, P2, P7, N1 and N2, the input signal IN is connected to the gates of P5, P6 and N3, and the drains of P8 and N5 are connected to output the OUT signal.
[0018] Optionally, the RISC-V architecture chip includes the following five working modes: normal mode, low power mode 1, low power mode 2, sleep mode and deep sleep mode, among which,
[0019] In normal mode, all peripherals and cores of the RISC-V architecture chip work normally;
[0020] In low power mode 1, the upper-layer software of the RISC-V architecture chip chooses to turn off direct memory access DMA, PSRAM controller, SD card controller, ADC and DAC by writing registers;
[0021] In low power mode 2, the upper layer software of the RISC-V architecture chip chooses to shut down USB, Timer, GPIO, Ethernet controller, flash controller, and off-chip master clock by writing registers, and chooses to shut down a certain group of GPIOs by grouping configuration registers. Eight GPIOs with adjacent port numbers are a group.
[0022] In sleep mode, RISC-V core 1, PLL, WDT, eFlash and ROM in the chip are turned off. RISC-V core 1 is the main core part that controls peripherals, AHB bus, and dynamic voltage and frequency regulation.
[0023] In deep sleep mode, only RISC-V core 2 and the always-on module AON work. The always-on module AON is a power-on domain, including a power management module, a backup register group, an RTC module, and a reset module. RISC-V core 2 will wait for the count activation flag of the always-on module AON. When RISC-V core 1 is not working, it will control the mode selection register to wake up the chip from deep sleep mode.
[0024] Preferably, the RISC-V architecture chip involved is in normal mode, low power mode 1 and low power mode 2, and the delay module works;
[0025] When the delay module is working, the reset signal RST is valid at high level;
[0026] When the reset signal RST is at a high level, P1 and P2 are disconnected, N1 and N2 are turned on, the connection point Q1 is at a low level, P3 and P4 are turned on, the connection point Q2 is at a high level, N5 and N6 are turned on, and the output signal OUT is set to zero;
[0027] When the reset signal RST is at a low level and a rising edge appears on the input signal IN, the connection point Q1 is at a high level, N3 and N4 are turned on, the connection point Q2 is at a low level, P7 and P8 are turned on, and N5 and N6 are cut off, the output signal OUT is at a high level, and a rising edge is output, thereby realizing fixed delay processing of the input signal and determining the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can operate.
[0028] Optionally, the collected data of step S1 is transmitted via the AHB bus, and the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can operate is fed back to the CPU core via the AHB bus. The CPU core is used to control peripherals, process data, and adjust the main frequency of the chip.
[0029] In a second aspect, the present invention provides a multi-power domain adaptive voltage regulation system based on a RISC architecture chip, and the technical solution adopted to solve the above technical problems is as follows:
[0030] A multi-power domain adaptive voltage regulation system based on a RISC architecture chip, comprising:
[0031] The data acquisition module is used to collect the current operating voltage, frequency and temperature of the RISC-V architecture chip detected by the sensor and transmit them to the data processing module;
[0032] The data processing module is used, on the one hand, to store the data transmitted by the data acquisition module into the memory, analyze the critical path currently constrained by the RISC-V architecture chip, and output the critical path signal currently constrained by the RISC-V architecture chip; on the other hand, it is used to receive the return data from the margin processing module, process the return data into information that can be recognized by the power control module, and then transmit it to the power control module;
[0033] A margin processing module is used to adjust the voltage value according to the critical path signal currently constrained by the RISC-V architecture chip, copy the critical path, determine the critical frequency at which the critical path currently constrained by the RISC-V architecture chip can work, and return it to the data processing module;
[0034] The power control module is used to control the low-voltage difference voltage regulator to adjust the voltage according to the transmission information of the data processing module, and at the same time feed back the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work to the CPU core.
[0035] Optionally, the margin processing module involved uses a double-stacked delay module to replicate the critical path. The delay module includes a double-stacked PMOS tube and an NMOS tube. There are 8 PMOS tubes, respectively called P1, P2, P3, P4, P5, P6, P7, and P8, and 6 NMOS tubes, respectively called N1, N2, N3, N4, N5, and N6, where:
[0036] The sources of P1, P3, P5, and P7 are connected to the power supply voltage VDD, and the drains of P1, P3, P5, and P7 are connected to the sources of P2, P4, P6, and P8 respectively;
[0037] The sources of N2, N4, and N6 are connected to the ground GND, and the drains of N2, N4, and N6 are connected to the sources of N1, N3, and N5;
[0038] The drain of P2 is correspondingly connected to the drain of N1, and the common connection point Q1 of P2 and N1 is output to the gates of P3, P4 and N4;
[0039] The drains of P4 and P6 are connected to the drain of N3, and the common connection point Q2 of P4, P6 and N3 controls the gates of P8, N5 and N6;
[0040] The reset signal RST is connected to the gates of P1, P2, P7, N1 and N2, the input signal IN is connected to the gates of P5, P6 and N3, and the drains of P8 and N5 are connected to output the OUT signal.
[0041] Further optionally, the RISC-V architecture chip involved includes the following five working modes: normal mode, low power mode 1, low power mode 2, sleep mode and deep sleep mode, wherein:
[0042] In normal mode, all peripherals and cores of the RISC-V architecture chip work normally;
[0043] In low power mode 1, the upper-layer software of the RISC-V architecture chip chooses to turn off direct memory access DMA, PSRAM controller, SD card controller, ADC and DAC by writing registers;
[0044] In low power mode 2, the upper layer software of the RISC-V architecture chip chooses to shut down USB, Timer, GPIO, Ethernet controller, flash controller, and off-chip master clock by writing registers, and chooses to shut down a certain group of GPIOs by grouping configuration registers. Eight GPIOs with adjacent port numbers are a group.
[0045] In sleep mode, RISC-V core 1, PLL, WDT, eFlash and ROM in the chip are turned off. RISC-V core 1 is the main core part that controls peripherals, AHB bus, and dynamic voltage and frequency regulation.
[0046] In deep sleep mode, only RISC-V core 2 and the always-on module AON work. The always-on module AON is a power-on domain, including a power management module, a backup register group, an RTC module, and a reset module. RISC-V core 2 will wait for the count activation flag of the always-on module AON. When RISC-V core 1 is not working, it will control the mode selection register to wake up the chip from deep sleep mode.
[0047] Preferably, the RISC-V architecture chip involved is in normal mode, low power mode 1 and low power mode 2, and the delay module works;
[0048] When the delay module is working, the reset signal RST is valid at high level;
[0049] When the reset signal RST is at a high level, P1 and P2 are disconnected, N1 and N2 are turned on, the connection point Q1 is at a low level, P3 and P4 are turned on, the connection point Q2 is at a high level, N5 and N6 are turned on, and the output signal OUT is set to zero;
[0050] When the reset signal RST is at a low level and a rising edge appears on the input signal IN, the connection point Q1 is at a high level, N3 and N4 are turned on, the connection point Q2 is at a low level, P7 and P8 are turned on, and N5 and N6 are cut off, the output signal OUT is at a high level, and a rising edge is output, thereby realizing fixed delay processing of the input signal and determining the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can operate.
[0051] Optionally, the data processing module involved obtains the collected data of the data collection module through the AHB bus. At the same time, the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work is fed back to the CPU core through the AHB bus. The CPU core is used to control peripherals, process data, and adjust the main frequency of the chip.
[0052] The invention discloses a multi-power domain adaptive voltage regulation method and system based on a RISC architecture chip, which has the following beneficial effects compared with the prior art:
[0053] The present invention supports multiple power domains inside a chip, dynamically adjusts voltage and frequency in different working modes, is suitable for low-power SoC design, can reduce redundant power consumption, and meet different customer needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Attached Figure 1 1 is a diagram of five working modes of a RISC-V architecture chip in an embodiment of the present invention;
[0055] Attached Figure 2 is a circuit diagram of a delay module in an embodiment of the present invention;
[0056] Attached Figure 3 Schematic diagram of module connection in an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.
[0058] Embodiment 1: This embodiment proposes a multi-power domain adaptive voltage regulation method based on a RISC architecture chip, which includes the following steps:
[0059] S1. Use sensors to collect the current operating voltage, frequency and temperature of the RISC-V architecture chip.
[0060] Reference Figure 1 ,RISC-V architecture chips include the following five working modes: normal mode, low power mode 1, low power mode 2, sleep mode and deep sleep mode.
[0061] (A) In normal mode, all peripherals and cores of the RISC-V architecture chip operate normally.
[0062] (B) In low power mode 1, the upper-level software of the RISC-V architecture chip chooses to shut down the direct memory access DMA, pseudo-static random access memory controller (also known as PSRAM controller), secure digital card controller (also known as SD card controller), analog-to-digital converter ADC and digital-to-analog converter DAC by writing registers.
[0063] (C) In low power mode 2, the upper-level software of the RISC-V architecture chip chooses to shut down the universal serial bus USB, timer Timer, general-purpose input and output port GPIO, Ethernet controller, flash memory controller, and external main clock by writing registers, and chooses to shut down a group of general-purpose input and output ports GPIO through group configuration registers. Eight general-purpose input and output ports GPIO with adjacent port numbers are a group.
[0064] (D) In sleep mode, RISC-V core 1, phase-locked loop PLL, watchdog timer WDT, embedded flash eFlash and read-only memory ROM in the chip are turned off. Among them, RISC-V core 1 is the main core part that controls peripherals, AHB bus, and dynamic voltage and frequency regulation.
[0065] (E) In deep sleep mode, only RISC-V core 2 and the always-on module AON work. The always-on module AON is a power-on domain, including a power management module, a backup register group, an RTC module, and a reset module. RISC-V core 2 will wait for the count activation flag of the always-on module AON. When RISC-V core 1 is not working, it will control the mode selection register to wake up the chip from deep sleep mode.
[0066] S2. Save the acquired data, analyze the currently constrained critical path of the RISC-V architecture chip and output the signal.
[0067] S3. Adjust the voltage value according to the output signal, copy the critical path, and determine the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can operate.
[0068] Combined with Figure 2, the replication critical path uses a double-stacked delay module, the delay module includes a double-stacked PMOS tube and an NMOS tube. There are 8 PMOS tubes, respectively called P1, P2, P3, P4, P5, P6, P7, and P8, and 6 NMOS tubes, respectively called N1, N2, N3, N4, N5, and N6. Among them: the source of P1, P3, P5, and P7 is connected to the power supply voltage VDD, and the drain of P1, P3, P5, and P7 is connected to the source of P2, P4, P6, and P8; the source of N2, N4, and N6 is connected to the ground GND, the drains of N2, N4, and N6 are connected to the sources of N1, N3, and N5; the drain of P2 is correspondingly connected to the drain of N1, and the common connection point Q1 of P2 and N1 is output to the gates of P3, P4, and N4; the drains of P4 and P6 are connected to the drain of N3, and the common connection point Q2 of P4, P6, and N3 controls the gates of P8, N5, and N6; the reset signal RST is connected to the gates of P1, P2, P7, N1, and N2, the input signal IN is connected to the gates of P5, P6, and N3, and the drains of P8 and N5 are connected to output the OUT signal.
[0069] The delay module works when the RISC-V architecture chip is in normal mode, low power mode 1, and low power mode 2. When the delay module works, the reset signal RST is valid at a high level.
[0070] When the reset signal RST is at a high level, P1 and P2 are disconnected, N1 and N2 are turned on, the connection point Q1 is at a low level, P3 and P4 are turned on, the connection point Q2 is at a high level, N5 and N6 are turned on, and the output signal OUT is set to zero;
[0071] When the reset signal RST is at a low level and a rising edge appears on the input signal IN, the connection point Q1 is at a high level, N3 and N4 are turned on, the connection point Q2 is at a low level, P7 and P8 are turned on, and N5 and N6 are cut off, the output signal OUT is at a high level, and a rising edge is output, thereby realizing fixed delay processing of the input signal and determining the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can operate.
[0072] The delay module can realize fixed delay processing of the input signal, where the delay of the copied critical path is greater than that of the original critical path. If the original critical path can work normally at a certain frequency M, but the copied critical path cannot work normally, then this frequency M is the critical operating frequency of the circuit. This frequency M limits the effective range of the system's dynamic frequency modulation, ensuring that the system can still maintain normal working state after frequency modulation.
[0073] S4. Adjust the voltage according to the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work, and at the same time, feed back the critical frequency to the CPU core.
[0074] It should be added that the collected data of step S1 is transmitted through the AHB bus, and the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work is fed back to the CPU core through the AHB bus. The CPU core is used to control peripherals, process data, and adjust the main frequency of the chip.
[0075] Embodiment 2: Combining with Figure 3 This embodiment proposes a multi-power domain adaptive voltage regulation system based on a RISC architecture chip, which includes:
[0076] The data acquisition module is used to collect the current operating voltage, frequency and temperature of the RISC-V architecture chip detected by the sensor and transmit them to the data processing module;
[0077] The data processing module is used, on the one hand, to store the data transmitted by the data acquisition module into the memory, analyze the critical path currently constrained by the RISC-V architecture chip, and output the critical path signal currently constrained by the RISC-V architecture chip; on the other hand, it is used to receive the return data from the margin processing module, process the return data into information that can be recognized by the power control module, and then transmit it to the power control module;
[0078] A margin processing module is used to adjust the voltage value according to the critical path signal currently constrained by the RISC-V architecture chip, copy the critical path, determine the critical frequency at which the critical path currently constrained by the RISC-V architecture chip can work, and return it to the data processing module;
[0079] The power control module is used to control the low-voltage difference voltage regulator to adjust the voltage according to the transmission information of the data processing module, and at the same time feed back the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work to the CPU core.
[0080] In this embodiment, combined with the attached Figure 1, RISC-V architecture chips include the following five working modes: normal mode, low power mode 1, low power mode 2, sleep mode and deep sleep mode, among which: (A) In normal mode, all peripherals and cores of RISC-V architecture chips work normally. (B) In low power mode 1, the upper-level software of RISC-V architecture chips chooses to shut down direct memory access DMA, pseudo-static random access memory controller (also known as PSRAM controller), secure digital card controller (also known as SD card controller), analog-to-digital converter ADC and digital-to-analog converter DAC by writing registers. (C) In low power mode 2, the upper-level software of RISC-V architecture chips chooses to shut down universal serial bus USB, timer Timer, general purpose input and output port GPIO, Ethernet controller, flash memory controller, off-chip main clock by writing registers, and chooses to shut down a group of general purpose input and output ports GPIO through group configuration registers. Eight general purpose input and output ports GPIO with adjacent port numbers are a group. (D) In sleep mode, RISC-V core 1, phase-locked loop PLL, watchdog timer WDT, embedded flash memory eFlash and read-only memory ROM in the chip are turned off. Among them, RISC-V core 1 is the main core part that controls peripherals, AHB bus, dynamic voltage and frequency regulation. (E) In deep sleep mode, only RISC-V core 2 and always-on module AON work. The always-on module AON is a power-on domain, including power management module, backup register group, RTC module and reset module; RISC-V core 2 will wait for the count activation flag of the always-on module AON. When RISC-V core 1 is not working, it controls the mode selection register to wake up the chip from deep sleep mode.
[0081] In this embodiment, combined with the attached Figure 2The margin processing module involved uses a double-stacked delay module to replicate the critical path. The delay module includes a double-stacked PMOS tube and an NMOS tube. There are 8 PMOS tubes, namely P1, P2, P3, P4, P5, P6, P7, and P8, and 6 NMOS tubes, namely N1, N2, N3, N4, N5, and N6. Among them, the source of P1, P3, P5, and P7 is connected to the power supply voltage VDD, and the drain of P1, P3, P5, and P7 is connected to the source of P2, P4, P6, and P8; the source of N2, N4, and N6 is connected to the source of Connected to ground GND, the drains of N2, N4, and N6 are connected to the sources of N1, N3, and N5; the drain of P2 is correspondingly connected to the drain of N1, and the common connection point Q1 of P2 and N1 is output to the gates of P3, P4, and N4; the drains of P4 and P6 are connected to the drain of N3, and the common connection point Q2 of P4, P6, and N3 controls the gates of P8, N5, and N6; the reset signal RST is connected to the gates of P1, P2, P7, N1, and N2, the input signal IN is connected to the gates of P5, P6, and N3, and the drains of P8 and N5 are connected to output the OUT signal.
[0082] The delay module works when the RISC-V architecture chip is in normal mode, low power mode 1, and low power mode 2. When the delay module works, the reset signal RST is valid at a high level.
[0083] (i) When the reset signal RST is at a high level, P1 and P2 are disconnected, N1 and N2 are turned on, the connection point Q1 is at a low level, P3 and P4 are turned on, the connection point Q2 is at a high level, N5 and N6 are turned on, and the output signal OUT is set to zero;
[0084] (ii) When the reset signal RST is at a low level and a rising edge appears on the input signal IN, the connection point Q1 is at a high level, N3 and N4 are turned on, the connection point Q2 is at a low level, P7 and P8 are turned on, and N5 and N6 are turned off, the output signal OUT is at a high level, and a rising edge is output, thereby realizing fixed delay processing of the input signal and determining the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can operate.
[0085] The delay module can realize fixed delay processing of the input signal, where the delay of the copied critical path is greater than that of the original critical path. If the original critical path can work normally at a certain frequency M, but the copied critical path cannot work normally, then this frequency M is the critical operating frequency of the circuit. This frequency M limits the effective range of the system's dynamic frequency modulation, ensuring that the system can still maintain normal working state after frequency modulation.
[0086] It should be added that the data processing module involved obtains the collected data of the data acquisition module through the AHB bus. At the same time, the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work is fed back to the CPU core through the AHB bus. The CPU core is used to control peripherals, data processing, and adjust the main frequency of the chip.
[0087] In summary, the multi-power domain adaptive voltage regulation method and system based on the RISC architecture chip of the present invention supports multiple power domains inside the chip, dynamically adjusts the voltage and frequency under different working modes, is suitable for low-power SoC design, can reduce unnecessary power consumption, and meet different customer needs.
[0088] The above specific examples are used to explain the principles and implementation methods of the present invention in detail. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made by technicians in this technical field without departing from the principles of the present invention should fall within the scope of patent protection of the present invention.
Claims
1. A multi-power domain adaptive voltage regulation method based on RISC architecture chip, characterized in that: The steps include: S1. Collect the current operating voltage, frequency and temperature of the RISC-V architecture chip, where the RISC-V architecture chip includes the following five operating modes: normal mode, low power mode 1, low power mode 2, sleep mode and deep sleep mode; S2. Save the acquired data, analyze the currently constrained critical path of the RISC-V architecture chip and output the signal; S3. Adjust the voltage value according to the output signal, copy the critical path, and determine the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work; in this process, the critical path is copied using a double-stacked delay module, and the delay module includes a double-stacked PMOS tube and an NMOS tube. There are 8 PMOS tubes, namely P1, P2, P3, P4, P5, P6, P7, and P8, and 6 NMOS tubes, namely N1, N2, N3, N4, N5, and N6, among which: P1, P3 The sources of P1, P3, P5 and P7 are connected to the power supply voltage VDD, and the drains of P1, P3, P5 and P7 are connected to the sources of P2, P4, P6 and P8; the sources of N2, N4 and N6 are connected to the ground GND, and the drains of N2, N4 and N6 are connected to the sources of N1, N3 and N5; the drain of P2 is connected to the drain of N1, and the common connection point Q1 of P2 and N1 is output to the gates of P3, P4 and N4; the drains of P4 and P6 are connected to the drain of N3, and the common connection point Q1 of P4, P6 and N3 is connected to the drain of N3. 2 controls the gates of P8, N5 and N6; the reset signal RST is connected to the gates of P1, P2, P7, N1 and N2, the input signal IN is connected to the gates of P5, P6 and N3, and the drains of P8 and N5 are connected to output the OUT signal; the RISC-V architecture chip is in normal mode, low power mode 1 and low power mode 2, and the delay module works. At this time, the reset signal RST is valid at a high level; when the reset signal RST is at a high level, P1 and P2 are disconnected, N1 and N2 are turned on, and the connection point Q1 is at a low level. , P3 and P4 are turned on, the connection point Q2 is at a high level, N5 and N6 are turned on, and the output signal OUT is set to zero; when the reset signal RST is at a low level and a rising edge appears on the input signal IN, the connection point Q1 is at a high level, N3 and N4 are turned on, the connection point Q2 is at a low level, P7 and P8 are turned on, and N5 and N6 are turned off, the output signal OUT is at a high level, and a rising edge is output, thereby realizing fixed delay processing of the input signal and determining the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work; S4. Adjust the voltage according to the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work, and at the same time, feed back the critical frequency to the CPU core.
2. The method for adaptively regulating voltage in multiple power domains based on a RISC architecture chip according to claim 1, characterized in that: In normal mode, all peripherals and cores of the RISC-V architecture chip work normally; In low power mode 1, the upper-layer software of the RISC-V architecture chip chooses to turn off direct memory access DMA, PSRAM controller, SD card controller, ADC and DAC by writing registers; In low power mode 2, the upper layer software of the RISC-V architecture chip chooses to shut down USB, Timer, GPIO, Ethernet controller, flash controller, and off-chip master clock by writing registers, and chooses to shut down a certain group of GPIOs by grouping configuration registers. Eight GPIOs with adjacent port numbers are a group. In sleep mode, RISC-V core 1, PLL, WDT, eFlash and ROM in the chip are turned off. RISC-V core 1 is the main core part that controls peripherals, AHB bus, and dynamic voltage and frequency regulation. In deep sleep mode, only RISC-V core 2 and the always-on module AON work. The always-on module AON is a power-on domain, including a power management module, a backup register group, an RTC module, and a reset module. RISC-V core 2 will wait for the count activation flag of the always-on module AON. When RISC-V core 1 is not working, it will control the mode selection register to wake up the chip from deep sleep mode.
3. The method for adaptively regulating voltage in multiple power domains based on a RISC architecture chip according to claim 1, characterized in that: The collected data of step S1 is transmitted through the AHB bus, and the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work is fed back to the CPU core through the AHB bus. The CPU core is used to control peripherals, process data, and adjust the main frequency of the chip.
4. A multi-power domain adaptive voltage regulation system based on RISC architecture chip, characterized in that: It includes: A data acquisition module is used to collect the current operating voltage, frequency and temperature of the RISC-V architecture chip detected by the sensor and transmit them to the data processing module, wherein the RISC-V architecture chip includes the following five working modes: normal mode, low power mode 1, low power mode 2, sleep mode and deep sleep mode; The data processing module is used, on the one hand, to store the data transmitted by the data acquisition module into the memory, analyze the critical path currently constrained by the RISC-V architecture chip, and output the critical path signal currently constrained by the RISC-V architecture chip; on the other hand, it is used to receive the return data from the margin processing module, process the return data into information that can be recognized by the power control module, and then transmit it to the power control module; The margin processing module is used to adjust the voltage value according to the critical path signal currently constrained by the RISC-V architecture chip, copy the critical path, determine the critical frequency at which the critical path currently constrained by the RISC-V architecture chip can work, and return it to the data processing module; in this process, the margin processing module uses a double-stacked delay module to copy the critical path, and the delay module includes a double-stacked PMOS tube and an NMOS tube. There are 8 PMOS tubes, namely P1, P2, P3, P4, P5, P6, P7, P8, and NMOS There are 6 transistors, namely N1, N2, N3, N4, N5, and N6, among which: the sources of P1, P3, P5, and P7 are connected to the power supply voltage VDD, and the drains of P1, P3, P5, and P7 are connected to the sources of P2, P4, P6, and P8; the sources of N2, N4, and N6 are connected to the ground GND, and the drains of N2, N4, and N6 are connected to the sources of N1, N3, and N5; the drain of P2 is connected to the drain of N1, and the common connection point Q1 of P2 and N1 is output to the gates of P3, P4, and N4; the drains of P4 and P6 are connected to N 3, and the common connection point Q2 of P4, P6 and N3 controls the gates of P8, N5 and N6; the reset signal RST is connected to the gates of P1, P2, P7, N1 and N2, the input signal IN is connected to the gates of P5, P6 and N3, and the drains of P8 and N5 are connected to output the OUT signal; the RISC-V architecture chip is in normal mode, low power mode 1 and low power mode 2, and the delay module works. At this time, the reset signal RST is valid at a high level; when the reset signal RST is at a high level, P1 and P2 are disconnected, and N1 and N2 are turned on , the connection point Q1 is at a low level, P3 and P4 are turned on, the connection point Q2 is at a high level, N5 and N6 are turned on, and the output signal OUT is set to zero; when the reset signal RST is at a low level and a rising edge appears on the input signal IN, the connection point Q1 is at a high level, N3 and N4 are turned on, the connection point Q2 is at a low level, P7 and P8 are turned on, and N5 and N6 are turned off, the output signal OUT is at a high level, and a rising edge is output, thereby realizing fixed delay processing of the input signal and determining the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work; The power control module is used to control the low-voltage difference voltage regulator to adjust the voltage according to the transmission information of the data processing module, and at the same time feed back the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work to the CPU core.
5. The multi-power domain adaptive voltage regulation system based on RISC architecture chip according to claim 4 is characterized in that: In normal mode, all peripherals and cores of the RISC-V architecture chip work normally; In low power mode 1, the upper-layer software of the RISC-V architecture chip chooses to turn off direct memory access DMA, PSRAM controller, SD card controller, ADC and DAC by writing registers; In low power mode 2, the upper layer software of the RISC-V architecture chip chooses to shut down USB, Timer, GPIO, Ethernet controller, flash controller, and off-chip master clock by writing registers, and chooses to shut down a certain group of GPIOs by grouping configuration registers. Eight GPIOs with adjacent port numbers are a group. In sleep mode, RISC-V core 1, PLL, WDT, eFlash and ROM in the chip are turned off. RISC-V core 1 is the main core part that controls peripherals, AHB bus, and dynamic voltage and frequency regulation. In deep sleep mode, only RISC-V core 2 and the always-on module AON work. The always-on module AON is a power-on domain, including a power management module, a backup register group, an RTC module, and a reset module. RISC-V core 2 will wait for the count activation flag of the always-on module AON. When RISC-V core 1 is not working, it will control the mode selection register to wake up the chip from deep sleep mode.
6. The multi-power domain adaptive voltage regulation system based on RISC architecture chip according to claim 4, characterized in that: The data processing module obtains the collected data of the data collection module through the AHB bus. At the same time, the critical frequency at which the currently constrained critical path of the RISC-V architecture chip can work is fed back to the CPU core through the AHB bus. The CPU core is used to control peripherals, process data, and adjust the main frequency of the chip.
Citation Information
Patent Citations
Self-adaptive fast power voltage regulation system
CN106873696A
Control method for low-power-consumption design
CN110334445A
