CN112650651A - Power consumption detection IP (Internet protocol), management method and system - Google Patents

Power consumption detection IP (Internet protocol), management method and system Download PDF

Info

Publication number
CN112650651A
CN112650651A CN202110011692.XA CN202110011692A CN112650651A CN 112650651 A CN112650651 A CN 112650651A CN 202110011692 A CN202110011692 A CN 202110011692A CN 112650651 A CN112650651 A CN 112650651A
Authority
CN
China
Prior art keywords
power consumption
detection
consumption detection
power
application object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110011692.XA
Other languages
Chinese (zh)
Inventor
渠慎征
王昕�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qingkun Information Technology Co Ltd
Original Assignee
Shanghai Qingkun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Qingkun Information Technology Co Ltd filed Critical Shanghai Qingkun Information Technology Co Ltd
Priority to CN202110011692.XA priority Critical patent/CN112650651A/en
Publication of CN112650651A publication Critical patent/CN112650651A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)

Abstract

The invention belongs to the field of chips, and provides a power consumption detection IP (Internet protocol), a management method and a system thereof, wherein the system comprises a power consumption management device which is connected with a system on chip and used for mapping the received performance grade of a software application object executed by the system on chip to the corresponding performance grade of a power domain, outputting a driving detection signal to drive the power consumption detection IP to detect, updating the performance grade once based on the power consumption detection result output by the power consumption detection IP, and calculating the power consumption calculation result of the application object within the detection time; and the power consumption detection IP is connected with the power consumption management device and used for receiving the power consumption detection signal, detecting the power consumption of the application object and outputting a power consumption detection result. Based on the measurement of the power consumption detection IP and the cooperation of the driving software, the whole system can carry out the configuration of the minimum low power consumption under the condition of comprehensively considering the temperature of each power domain and the requirement of the software running performance.

Description

Power consumption detection IP (Internet protocol), management method and system
Technical Field
The invention relates to the field of chips, in particular to a power consumption detection IP and management method and system.
Background
With the integration degree of the SOC chip and the higher frequency of operation, the power consumption problem of the SOC chip becomes one of the key factors influencing the application of the SOC chip. In order to reduce the power consumption of the SOC chip and system, various methods are proposed at the process level, the gate level, the RTL level, the SOC system level, and the architecture level. At the system and architecture level, the most common methods include power domain and clock domain division, dynamic voltage adjustment of the power domain, power down of the power domain, dynamic frequency adjustment of the clock domain, clock gating of the clock domain, mixed DVFS, and low-power software and hardware division, but these methods still have the following problems:
1. the lack of IP to provide top-level power consumption information makes power-related test optimization tedious, time consuming, and sometimes even limited to board-level design.
2. And a scheme capable of comprehensively coordinating a plurality of low-power-consumption design methods is lacked, so that the requirements of application software and the selection of the temperature, the voltage and the frequency of a power domain are difficult to be considered simultaneously.
3. The low-power-consumption scheme with application software participation is lacked, the application software cannot acquire the power consumption consumed by the self-running in time, and the power consumption characteristic configuration suitable for different application software requirements cannot be provided.
4. And a scheme for simultaneously considering PCB level and SOC internal power consumption detection is lacked.
Disclosure of Invention
The invention provides a power consumption detection IP, a management method and a system, which are based on the measurement of the power consumption detection IP and the cooperation of driving software, so that the whole system can carry out the configuration of minimum low power consumption under the condition of comprehensively considering the temperature of each power domain and the requirement of software running performance. When the software is completely operated, the power consumption consumed by the operation of the software can be obtained, and a basis is provided for the continuous optimization of the application software.
The technical scheme provided by the invention is as follows:
a power consumption detection IP, comprising:
the bus interface is connected with the power consumption management device and the internal register of the power consumption detection IP and used for providing the internal register access and parameter configuration of the power consumption detection IP;
an enabling control module connected with the bus interface and used for starting the power consumption detection IP, selecting an application object of the power consumption detection IP and converting an enabling/disabling mode of input data of each application object under the control of the power consumption management device;
and the power consumption detection module is connected with the enabling control module and the internal register and used for carrying out power consumption detection on the application object under the control of the enabling control module and storing a power consumption detection result in the internal register.
Further preferably, the power consumption detection module further includes:
the detection submodule is used for detecting the temperature, the current and the voltage of an application object of the system on chip and outputting a detection signal;
the data amplification submodule is connected with the detection submodule and used for receiving and amplifying the detection signal to a preset range and outputting the amplified detection signal;
and the AD conversion sub-module is connected with the data amplification sub-module and used for performing AD conversion on the amplified detection signal and outputting a power consumption detection result to the register of the application object in the internal register.
Further preferably, the detection sub-module comprises the temperature detection sub-module, and the temperature sub-module comprises:
the temperature sensor is used for detecting the temperature voltage of each power domain inside the system on chip;
and the temperature sensor voltage input interface is connected with the temperature sensor and used for outputting the temperature voltage of each power domain.
Further preferably, the detection sub-module comprises a current detection sub-module, the current detection sub-module comprising:
a power switch to output a power switch current for each internal power domain of the system-on-chip;
and the current-to-voltage differential input end is used for outputting the power switch voltage of each board-level power domain.
Further preferably, the detection submodule comprises a voltage detection submodule, and the voltage detection submodule comprises:
and the voltage detection input end is used for outputting the power consumption voltage of each internal power domain and each board-level power domain of the system on chip.
A power consumption detection management system, comprising:
the power consumption management device is connected with the system on chip and used for mapping the received performance level of the system on chip execution application object to the corresponding performance level of the power domain, outputting a driving detection signal to drive the power consumption detection IP to detect, updating the performance level once based on the power consumption detection result output by the power consumption detection IP, and calculating the power consumption calculation result of the application object in the detection time;
and the power consumption detection IP is connected with the power consumption management device and used for receiving the power consumption detection signal, detecting the power consumption of the application object and outputting the power consumption detection result.
Further preferably, the power consumption management apparatus includes:
the system on chip comprises an acquisition interface, a processing interface and a processing interface, wherein the acquisition interface is used for acquiring the performance grade of an application object when the system on chip starts the application object;
the control interface is used for outputting a signal for initializing and controlling the power consumption detection IP;
a starting interface for outputting a signal for starting the power consumption detection IP;
the mapping module is used for mapping the performance levels of the power domains according to the performance levels of the application objects;
the computing module is used for computing the power consumption computing result of the application object in each detection time according to the power consumption detection result of each time when a plurality of application objects are scheduled or a single application object is executed, wherein the power consumption computing result comprises single power consumption and accumulated power consumption;
and the display module is used for displaying the power consumption detection result, the performance level mapping and the power consumption calculation result.
A power consumption detection management method comprises the following steps:
mapping the received performance grade of the system-on-chip execution application object to the corresponding performance grade of the power domain through a power consumption management device, outputting a driving detection signal to drive a power consumption detection IP for detection, updating a primary performance grade based on a power consumption detection result output by the power consumption detection IP, and calculating a power consumption calculation result of the application object within detection time;
and receiving the power consumption detection signal by using a power consumption detection IP, detecting the power consumption of the application object, and outputting the power consumption detection result.
Further preferably, the receiving, by the power consumption detection IP, the power consumption detection signal, detecting the power consumption of the application object, and outputting the power consumption detection result includes:
providing internal register access and parameter configuration of a power consumption detection IP through a bus interface;
starting the power consumption detection IP, selecting an application object of the power consumption detection IP and converting an enabling/disabling mode of input data of each application object by an enabling control module of the power consumption detection IP under the control of a system on chip;
and the power consumption detection module of the power consumption detection IP is used for carrying out power consumption detection on the application object under the control of the enabling control module, and storing a power consumption detection result in an internal register of the power consumption detection IP.
Further preferably, the power consumption detection module that detects the power consumption of the IP through the power consumption performs the power consumption detection on the application object under the control of the enabling control module, and stores the power consumption detection result in an internal register of the IP, including:
detecting the temperature, the current and the voltage of an application object of the system on chip and outputting a detection signal;
receiving and amplifying the detection signal to a preset range, and outputting the amplified detection signal;
and performing AD conversion on the amplified detection signal, and outputting a power consumption detection result to the register of the application object in the internal register.
The power consumption detection IP, the management method and the system provided by the invention at least have the following beneficial effects:
1) based on the measurement of the power consumption detection IP and the cooperation of the driving software, the whole system can carry out the configuration of the minimum low power consumption under the condition of comprehensively considering the temperature of each power domain and the requirement of the software running performance. When the software is completely operated, the power consumption consumed by the operation of the software can be obtained, and a basis is provided for the continuous optimization of the application software.
2) Due to the fact that real-time measurement of power consumption detection IP is achieved, test optimization related to power consumption is simple and easy to conduct.
3) The invention can comprehensively consider the performance requirements of application software and the selection of the temperature, the voltage and the frequency of the power domain.
4) The invention provides the low power consumption characteristic for the application software programming, so that the application software can obtain the power consumption consumed by the self operation in time, and the power consumption adaptation of the system to different application software is improved;
5) the invention realizes the management of both PCB level and SOC internal power consumption.
Drawings
The invention is described in further detail below with reference to the following figures and detailed description:
FIG. 1 is a schematic diagram of one embodiment of a power consumption detection IP in the present invention;
FIG. 2 is a schematic diagram of a detection submodule in the present invention;
fig. 3 is a schematic diagram of an embodiment of a power consumption detection management method in the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In this context, it is to be understood that, unless otherwise explicitly stated or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
Note that, in the present invention, the power domain: and a power supply area managed by the same power switch in the SOC chip uses fixed voltage or uniformly adjustable voltage. Clock domain: and a clock area managed by the same clock gate inside the SOC chip uses a fixed frequency or uniformly adjustable clock frequency. Power consumption detection: the power domain voltage, current, temperature are measured at the time of designation.
Example one
The present invention provides an embodiment of a power consumption detection IP, as shown in fig. 1, including:
and the bus interface is connected with the power consumption management device and the internal register of the power consumption detection IP and used for providing the internal register access and parameter configuration of the power consumption detection IP.
And the enabling control module is connected with the bus interface and used for starting the power consumption detection IP, selecting an application object of the power consumption detection IP and converting an enabling/disabling mode of input data of each application object under the control of the power consumption management device.
And the power consumption detection module is connected with the enabling control module and the internal register and used for carrying out power consumption detection on the application object under the control of the enabling control module and storing a power consumption detection result in the internal register.
In this embodiment, the power consumption detection IP includes: bus interface, temperature detection, current detection, voltage detection, automatic gain amplification, multi-channel AD conversion, register, and enable control.
The bus interface comprises a Slave interface and provides access to registers inside the IP; the type and width can be configured using parameters, supporting AXI/AHB/APB. The enabling control module supports an enabling/disabling mode of the whole detection IP; enabling/disabling of detection for each power domain; enabling/disabling of detection of each AD channel input is supported.
On the basis of the existing low-power-consumption design technology, the measurement based on the power consumption detection IP is adopted, so that the whole system can be configured with the minimum low power consumption under the condition of comprehensively considering the temperature of each power domain and the requirement of software operation performance. Due to the fact that real-time measurement of power consumption detection IP is achieved, test optimization related to power consumption is simple and easy to conduct.
Example two
Based on the foregoing embodiment, in this embodiment, preferably, as shown in fig. 1, the power consumption detection module further includes:
and the detection submodule is used for detecting the temperature, the current and the voltage of an application object of the system on chip and outputting a detection signal.
And the data amplification submodule is connected with the detection submodule and used for receiving and amplifying the detection signal to a preset range and outputting the amplified detection signal.
Illustratively, the automatic gain amplifying device shown in fig. 1 adaptively amplifies the temperature detection signal, the current detection signal and the voltage detection signal of each power domain to an optimal range, and the AD conversion sub-module can perform digital-to-analog conversion on the amplified data.
And the AD conversion sub-module is connected with the data amplification sub-module and used for performing AD conversion on the amplified detection signal and outputting a power consumption detection result to the register of the application object in the internal register.
For example, as shown in fig. 1, in the multi-channel AD conversion, different signals, that is, amplified detection signals, can be simultaneously AD-converted by the multi-channel AD conversion, so that the conversion efficiency, that is, the power consumption detection efficiency, is improved, and the subsequent power consumption test is faster.
EXAMPLE III
Based on the foregoing embodiment, in this embodiment, preferably, the detection sub-module includes the temperature detection sub-module, and the temperature sub-module includes:
the temperature sensor is used for detecting the temperature voltage of each power domain inside the system on chip;
and the temperature sensor voltage input interface is connected with the temperature sensor and used for outputting the temperature voltage of each power domain.
Illustratively, as shown in fig. 2, the power domain detection circuit includes a temperature detection submodule, which provides a built-in temperature sensor for each power domain inside the SOC; providing an external temperature sensor voltage input interface for each board-level power domain; the output voltage of the temperature sensor is adaptively amplified to an optimal range and then subjected to AD conversion; the enable control initiates the transition, and the transition value is saved to a temperature register of the power domain.
Example four
Based on the foregoing embodiment, in this embodiment, it is preferable that the detection submodule includes a current detection submodule, and the current detection submodule includes:
a power switch to output a power switch current for each internal power domain of the system-on-chip;
and the current-to-voltage differential input end is used for outputting the power switch voltage of each board-level power domain.
Illustratively, as shown in fig. 2, the power domain detection circuit includes a current detection submodule, which provides a built-in power switch for each power domain inside the SOC; providing an external current-to-voltage differential input terminal for each board-level power domain; the terminal voltage of the power switch is adaptively amplified to an optimal range and then subjected to AD conversion; calculating the current of the power domain according to the terminal voltage and the on-resistance of the electronic switch; the enable control initiates the transition, with the transition value saved to the current register of the power domain.
EXAMPLE five
Based on the foregoing embodiment, in this embodiment, preferably, the detection submodule includes a voltage detection submodule, and the voltage detection submodule includes:
and the voltage detection input end is used for outputting the power consumption voltage of each internal power domain and each board-level power domain of the system on chip.
Illustratively, as shown in fig. 2, the power domain detection circuit includes a voltage detection submodule, which provides a voltage detection input terminal for each power domain inside the SOC; providing a voltage detection input terminal for each board-level power domain; performing AD conversion on the input voltage of the power domain; the enable control initiates the transition, and the transition value is saved to a temperature register of the power domain.
EXAMPLE six
The invention provides an embodiment of a power consumption detection IP, which comprises the following steps:
bus interface: the system comprises a Slave interface for providing access to registers inside an IP; the type and width can be configured using parameters, supporting AXI/AHB/APB.
And (3) temperature detection: providing a built-in temperature sensor for each power domain inside the SOC; providing an external temperature sensor voltage input interface for each board-level power domain; the output voltage of the temperature sensor is adaptively amplified to an optimal range and then subjected to AD conversion; the enable control initiates the transition, and the transition value is saved to a temperature register of the power domain.
Current detection: providing a built-in power switch for each power domain in the SOC; providing an external current-to-voltage differential input terminal for each board-level power domain; the terminal voltage of the power switch is adaptively amplified to an optimal range and then subjected to AD conversion; calculating the current of the power domain according to the terminal voltage and the on-resistance of the electronic switch; the enable control initiates the transition, with the transition value saved to the current register of the power domain.
Voltage detection: providing a voltage detection input end for each power domain in the SOC; providing a voltage detection input terminal for each board-level power domain; performing AD conversion on the input voltage of the power domain; the enable control initiates the transition, and the transition value is saved to a temperature register of the power domain.
Enabling control: support the enabling/disabling mode of the whole detection IP; enabling/disabling of detection for each power domain; enabling/disabling of detection of each AD input is supported.
On the basis of the existing low-power-consumption design technology, the measurement of the power consumption detection IP and the cooperation of the driving software enable the whole system to carry out the configuration of the minimum low power consumption under the condition of comprehensively considering the temperature of each power domain and the requirement of the software running performance. When the software is operated, the power consumption consumed by the operation of the software can be obtained, and the real-time measurement of the power consumption detection IP is provided for the continuous optimization of the application software, so that the test optimization related to the power consumption is simple and easy; the performance requirements of application software and the selection of the temperature, the voltage and the frequency of a power domain can be comprehensively considered. The low power consumption characteristic is provided for the application software programming, the application software can acquire the power consumption consumed by the self operation in time, and the power consumption adaptation of the system to different application software is improved; and the PCB level and SOC internal power consumption management are considered.
EXAMPLE seven
The invention provides an embodiment of a power consumption detection management system, which comprises:
and the power consumption management device is connected with the system on chip and used for mapping the received performance level of the system on chip execution application object to the corresponding performance level of the power domain, outputting a driving detection signal to drive the power consumption detection IP to detect, updating the performance level once based on the power consumption detection result output by the power consumption detection IP, and calculating the power consumption calculation result of the application object in the detection time.
Illustratively, the system-on-chip comprises an SOC chip, the application objects comprise application software and application tasks, and the power domain comprises a power domain inside the system-on-chip and a PCB (printed circuit board) level power domain.
The power consumption management device runs power consumption management software which comprises application software power consumption programming and can enable the application software to submit the performance requirement level of the application software through an interface provided by a power consumption management driver; the application software can submit the performance requirement level of the application software at different positions once or for multiple times in the execution process; the power management driver maps the performance demand level of the application software to the performance level of the respective power domain.
The power consumption management device also comprises a power consumption management driver which is used for providing an interface for initializing and controlling the power consumption IP; providing an interface for initiating power consumption detection; mapping to the performance level of each power domain according to the performance requirement level of the application software; calculating the power consumption of the current time slice according to a primary detection result; when the tasks are scheduled or in the independent tasks, the power consumption management driver is called to start power consumption detection, performance level mapping and power consumption calculation; an interface is provided that displays power consumption detection, performance level mapping, and power consumption calculation results.
And the power consumption detection IP is connected with the power consumption management device and used for receiving the power consumption detection signal, detecting the power consumption of the application object and outputting the power consumption detection result.
Illustratively, the power consumption detection IP includes: the bus interface comprises a Slave interface and provides access to registers inside the IP; the type and width can be configured using parameters, supporting AXI/AHB/APB.
And (3) temperature detection: providing a built-in temperature sensor for each power domain inside the SOC; providing an external temperature sensor voltage input interface for each board-level power domain; the output voltage of the temperature sensor is adaptively amplified to an optimal range and then subjected to AD conversion; the enable control initiates the transition, and the transition value is saved to a temperature register of the power domain.
Current detection: providing a built-in power switch for each power domain in the SOC; providing an external current-to-voltage differential input terminal for each board-level power domain; the terminal voltage of the power switch is adaptively amplified to an optimal range and then subjected to AD conversion; calculating the current of the power domain according to the terminal voltage and the on-resistance of the electronic switch; the enable control initiates the transition, with the transition value saved to the current register of the power domain.
Voltage detection: providing a voltage detection input end for each power domain in the SOC; providing a voltage detection input terminal for each board-level power domain; performing AD conversion on the input voltage of the power domain; the enable control initiates the transition, and the transition value is saved to a temperature register of the power domain.
Enabling control: support the enabling/disabling mode of the whole detection IP; enabling/disabling of detection for each power domain; enabling/disabling of detection of each AD input is supported.
The power consumption detection management system provides power consumption programming for application software based on measurement of power consumption detection IP and cooperation of driving software on the basis of existing system-level power consumption management of power domain, clock domain division, dynamic voltage and frequency regulation, clock gating, power failure and the like, so that the whole system can perform configuration of minimum power consumption under the condition of comprehensively considering the requirements of temperature and software running performance of each power domain. When the software is completely operated, the power consumption consumed by the operation of the software can be obtained, and a basis is provided for the continuous optimization of the application software.
Preferably, the power consumption management apparatus includes:
and the acquisition interface is used for acquiring the performance grade of the application object when the system on chip starts the application object.
And the control interface is used for outputting a signal for initializing and controlling the power consumption detection IP.
And the starting interface is used for outputting a signal for starting the power consumption detection IP.
And the mapping module is used for mapping the performance levels of the power domains according to the performance levels of the application objects.
And the calculation module is used for calculating the power consumption calculation result of the application object in each detection time according to the power consumption detection result of each time when a plurality of application objects are scheduled or a single application object is executed, wherein the power consumption calculation result comprises single power consumption and accumulated power consumption.
And the display module is used for displaying the power consumption detection result, the performance level mapping and the power consumption calculation result.
In this embodiment, based on the existing low power consumption design technology, the measurement of the power consumption detection IP and the cooperation of the driver software enable the whole system to perform the configuration of the minimum low power consumption while taking the temperature of each power domain and the software operation performance into consideration. When the software is completely operated, the power consumption consumed by the operation of the software can be obtained, and a basis is provided for the continuous optimization of the application software.
Meanwhile, due to the real-time measurement of the power consumption detection IP, the test optimization related to the power consumption is simple and easy to implement; the performance requirements of application software and the selection of the temperature, the voltage and the frequency of a power domain can be comprehensively considered; the low power consumption characteristic is provided for the application software programming, the application software can acquire the power consumption consumed by the self operation in time, and the power consumption adaptation of the system to different application software is improved; and the PCB level and SOC internal power consumption management are considered.
Example eight
The invention provides an embodiment of a power consumption detection management method, which comprises the following steps:
mapping the received performance grade of the system-on-chip execution application object to the corresponding performance grade of the power domain through a power consumption management device, outputting a driving detection signal to drive a power consumption detection IP to detect, updating a primary performance grade based on a power consumption detection result output by the power consumption detection IP, and calculating a power consumption calculation result of the application object within detection time.
And receiving the power consumption detection signal by using a power consumption detection IP, detecting the power consumption of the application object, and outputting the power consumption detection result.
Preferably, the receiving, by the power consumption detection IP, the power consumption detection signal, detecting the power consumption of the application object, and outputting the power consumption detection result includes:
internal register access and parameter configuration of the power consumption detection IP are provided through a bus interface.
And starting the power consumption detection IP, selecting an application object of the power consumption detection IP and converting an enabling/disabling mode of input data of each application object by the enabling control module of the power consumption detection IP under the control of the system on chip.
And the power consumption detection module of the power consumption detection IP is used for carrying out power consumption detection on the application object under the control of the enabling control module, and storing a power consumption detection result in an internal register of the power consumption detection IP.
Preferably, the power consumption detection module that detects the power consumption of the IP through the power consumption performs the power consumption detection on the application object under the control of the enabling control module, and stores the power consumption detection result in an internal register of the IP, including:
detecting the temperature, the current and the voltage of an application object of the system on chip and outputting a detection signal;
receiving and amplifying the detection signal to a preset range, and outputting the amplified detection signal;
and performing AD conversion on the amplified detection signal, and outputting a power consumption detection result to the register of the application object in the internal register.
Preferably, the power consumption detection module that detects the power consumption of the IP through the power consumption performs the power consumption detection on the application object under the control of the enabling control module, and stores the power consumption detection result in an internal register of the IP, including:
and detecting the temperature data of each power domain through a built-in temperature sensor of each power domain in the system-on-chip.
And outputting the temperature data through a voltage input interface of the temperature sensor externally arranged in each power domain.
And amplifying the temperature voltage signal to a preset range through an amplifying submodule in the power consumption detection module.
And starting an AD conversion sub-module in the power consumption detection module through the enabling control module, carrying out AD conversion on the amplified temperature voltage signal, and outputting a temperature power consumption detection result to store the temperature register of the power domain in the internal register.
Preferably, the power consumption detection module that detects the power consumption of the IP through the power consumption performs the power consumption detection on the application object under the control of the enabling control module, and stores the power consumption detection result in an internal register of the IP, including:
and outputting the end current of the power switch through a power switch built in each power domain in the system on chip.
And outputting the terminal voltage of the power switch through a current-to-voltage differential input end externally arranged in each power domain.
And amplifying the current data to a preset range through an amplifying submodule in the power consumption detection module.
And starting an AD conversion sub-module in the power consumption detection module through the enabling control module, carrying out AD conversion on the amplified temperature voltage signal, and outputting a temperature power consumption detection result to store the temperature register of the power domain in the internal register.
Example nine
The invention provides an embodiment of a power consumption detection management method, as shown in fig. 3, specifically including the steps of:
starting application software or application tasks; the application software submits the performance level requirements of the application software through a power consumption management driver; a task scheduling or an independent power consumption management task starts primary power consumption IP detection through a power consumption management drive, updates a primary performance grade, and calculates the power consumption in the current time slice and the accumulated power consumption of the task; each power domain driver selects and sets the performance level of the power domain driver according to the performance level requirement of the application software and the temperature limit of the power domain; when only the idle task exists, the system performs the operations of frequency reduction, voltage reduction, clock turning off and power turning off according to the conventional method; after the application task is executed, the power consumption consumed by the execution can be obtained through the power consumption management driver; when the application task is executed again for many times, each power domain can compare the consumed power consumption and the performance level configuration to select a more optimized performance level.
Illustratively, an application or task is started, a corresponding performance level requirement is submitted, and the power consumption management module: starting one-time power consumption detection, refreshing one-time performance distribution and calculating one-time task power consumption. Each power domain 1-n selects and sets a power consumption grade 1-m and a performance grade 1-m according to the performance grade requirement input by the power consumption management module and the self temperature limit and maximum frequency limit so as to realize the minimum power consumption of the temperature meeting the requirement. The power consumption management module starts once more power consumption detection, refreshes once performance distribution, calculates once task power consumption and can calculate the accumulated power consumption.
In this embodiment, on the basis of the existing system-level power consumption management such as power domain, clock domain division, dynamic voltage and frequency adjustment, clock gating, power failure, and the like, power consumption programming is provided for application software based on measurement of power consumption detection IP and cooperation of driver software, so that the entire system can perform configuration of minimum power consumption while taking overall consideration of the requirements of the temperature of each power domain and the software operation performance. When the software is completely operated, the power consumption consumed by the operation of the software can be obtained, and a basis is provided for the continuous optimization of the application software.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described system embodiments are merely exemplary, and it is exemplary that the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, and it is exemplary that a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A power consumption detection IP, comprising:
the bus interface is connected with the power consumption management device and the internal register of the power consumption detection IP and used for providing the internal register access and parameter configuration of the power consumption detection IP;
an enabling control module connected with the bus interface and used for starting the power consumption detection IP, selecting an application object of the power consumption detection IP and converting an enabling/disabling mode of input data of each application object under the control of the power consumption management device;
and the power consumption detection module is connected with the enabling control module and the internal register and used for carrying out power consumption detection on the application object under the control of the enabling control module and storing a power consumption detection result in the internal register.
2. The power consumption detection IP according to claim 1, wherein the power consumption detection module further comprises:
the detection submodule is used for detecting the temperature, the current and the voltage of an application object of the system on chip and outputting a detection signal;
the data amplification submodule is connected with the detection submodule and used for receiving and amplifying the detection signal to a preset range and outputting the amplified detection signal;
and the AD conversion sub-module is connected with the data amplification sub-module and used for performing AD conversion on the amplified detection signal and outputting a power consumption detection result to the register of the application object in the internal register.
3. The power consumption detection IP of claim 2, wherein the detection submodule comprises the temperature detection submodule, the temperature submodule comprising:
the temperature sensor is used for detecting the temperature voltage of each power domain inside the system on chip;
and the temperature sensor voltage input interface is connected with the temperature sensor and used for outputting the temperature voltage of each power domain.
4. The power consumption detection IP according to claim 2, wherein the detection submodule comprises a current detection submodule comprising:
a power switch to output a power switch current for each internal power domain of the system-on-chip;
and the current-to-voltage differential input end is used for outputting the power switch voltage of each board-level power domain.
5. The power consumption detection IP according to any one of claims 2 to 4, wherein the detection submodule comprises a voltage detection submodule, and the voltage detection submodule comprises:
and the voltage detection input end is used for outputting the power consumption voltage of each internal power domain and each board-level power domain of the system on chip.
6. A power consumption detection management system, comprising:
the power consumption management device is connected with the system on chip and used for mapping the received performance level of the system on chip execution application object to the corresponding performance level of the power domain, outputting a driving detection signal to drive the power consumption detection IP to detect, updating the performance level once based on the power consumption detection result output by the power consumption detection IP, and calculating the power consumption calculation result of the application object in the detection time;
and the power consumption detection IP is connected with the power consumption management device and used for receiving the power consumption detection signal, detecting the power consumption of the application object and outputting the power consumption detection result.
7. The power consumption detection management system according to claim 6, wherein the power consumption management means comprises:
the system on chip comprises an acquisition interface, a processing interface and a processing interface, wherein the acquisition interface is used for acquiring the performance grade of an application object when the system on chip starts the application object;
the control interface is used for outputting a signal for initializing and controlling the power consumption detection IP;
a starting interface for outputting a signal for starting the power consumption detection IP;
the mapping module is used for mapping the performance levels of the power domains according to the performance levels of the application objects;
the computing module is used for computing the power consumption computing result of the application object in each detection time according to the power consumption detection result of each time when a plurality of application objects are scheduled or a single application object is executed, wherein the power consumption computing result comprises single power consumption and accumulated power consumption;
and the display module is used for displaying the power consumption detection result, the performance level mapping and the power consumption calculation result.
8. A power consumption detection management method is characterized by comprising the following steps:
mapping the received performance grade of the system-on-chip execution application object to the corresponding performance grade of the power domain through a power consumption management device, outputting a driving detection signal to drive a power consumption detection IP for detection, updating a primary performance grade based on a power consumption detection result output by the power consumption detection IP, and calculating a power consumption calculation result of the application object within detection time;
and receiving the power consumption detection signal by using a power consumption detection IP, detecting the power consumption of the application object, and outputting the power consumption detection result.
9. The power consumption detection and management method according to claim 8, wherein the receiving the power consumption detection signal by using the power consumption detection IP, detecting the power consumption of the application object, and outputting the power consumption detection result comprises:
providing internal register access and parameter configuration of a power consumption detection IP through a bus interface;
starting the power consumption detection IP, selecting an application object of the power consumption detection IP and converting an enabling/disabling mode of input data of each application object by an enabling control module of the power consumption detection IP under the control of a system on chip;
and the power consumption detection module of the power consumption detection IP is used for carrying out power consumption detection on the application object under the control of the enabling control module, and storing a power consumption detection result in an internal register of the power consumption detection IP.
10. The power consumption detection management method according to claim 9, wherein the power consumption detection module that detects the IP through the power consumption performs power consumption detection on the application object under the control of the enable control module, and stores a power consumption detection result in an internal register of the power consumption detection IP, and the method comprises:
detecting the temperature, the current and the voltage of an application object of the system on chip and outputting a detection signal;
receiving and amplifying the detection signal to a preset range, and outputting the amplified detection signal;
and performing AD conversion on the amplified detection signal, and outputting a power consumption detection result to the register of the application object in the internal register.
CN202110011692.XA 2021-01-06 2021-01-06 Power consumption detection IP (Internet protocol), management method and system Pending CN112650651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110011692.XA CN112650651A (en) 2021-01-06 2021-01-06 Power consumption detection IP (Internet protocol), management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110011692.XA CN112650651A (en) 2021-01-06 2021-01-06 Power consumption detection IP (Internet protocol), management method and system

Publications (1)

Publication Number Publication Date
CN112650651A true CN112650651A (en) 2021-04-13

Family

ID=75367641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110011692.XA Pending CN112650651A (en) 2021-01-06 2021-01-06 Power consumption detection IP (Internet protocol), management method and system

Country Status (1)

Country Link
CN (1) CN112650651A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113359935A (en) * 2021-06-10 2021-09-07 海光信息技术股份有限公司 Voltage regulation method and device of SOC power domain and storage medium
CN113434368A (en) * 2021-07-06 2021-09-24 深圳市商汤科技有限公司 Data processing device, method, computer equipment and storage medium
CN114637387A (en) * 2022-05-09 2022-06-17 南京芯驰半导体科技有限公司 Performance and power consumption management system and method of multi-core heterogeneous chip

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162479A (en) * 2007-11-06 2008-04-16 西安交通大学 Design method of electric energy quality monitoring application-specific integrated circuits based on soft nucleus CPU technology
US20110276812A1 (en) * 2010-05-07 2011-11-10 Samsung Electronics Co., Ltd. System On Chip, Devices Having The Same, and Method For Power Control of the SOC
CN104501877A (en) * 2015-01-22 2015-04-08 浪潮(北京)电子信息产业有限公司 Data acquisition method and device
CN108108797A (en) * 2016-11-25 2018-06-01 北京同方微电子有限公司 A kind of low consumption circuit generates system
CN109116970A (en) * 2018-08-31 2019-01-01 中国电子科技集团公司第五十八研究所 A kind of dynamic voltage frequency regulating system and method
CN110488082A (en) * 2019-07-12 2019-11-22 宁波中车时代传感技术有限公司 A kind of measure voltage & current chip of integrated numeral output
CN110703898A (en) * 2019-09-06 2020-01-17 无锡江南计算技术研究所 Dynamic management system and method for processor power consumption based on periodic query and interrupt

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162479A (en) * 2007-11-06 2008-04-16 西安交通大学 Design method of electric energy quality monitoring application-specific integrated circuits based on soft nucleus CPU technology
US20110276812A1 (en) * 2010-05-07 2011-11-10 Samsung Electronics Co., Ltd. System On Chip, Devices Having The Same, and Method For Power Control of the SOC
CN104501877A (en) * 2015-01-22 2015-04-08 浪潮(北京)电子信息产业有限公司 Data acquisition method and device
CN108108797A (en) * 2016-11-25 2018-06-01 北京同方微电子有限公司 A kind of low consumption circuit generates system
CN109116970A (en) * 2018-08-31 2019-01-01 中国电子科技集团公司第五十八研究所 A kind of dynamic voltage frequency regulating system and method
CN110488082A (en) * 2019-07-12 2019-11-22 宁波中车时代传感技术有限公司 A kind of measure voltage & current chip of integrated numeral output
CN110703898A (en) * 2019-09-06 2020-01-17 无锡江南计算技术研究所 Dynamic management system and method for processor power consumption based on periodic query and interrupt

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113359935A (en) * 2021-06-10 2021-09-07 海光信息技术股份有限公司 Voltage regulation method and device of SOC power domain and storage medium
CN113359935B (en) * 2021-06-10 2022-09-09 海光信息技术股份有限公司 Voltage regulation method and device of SOC power domain and storage medium
CN113434368A (en) * 2021-07-06 2021-09-24 深圳市商汤科技有限公司 Data processing device, method, computer equipment and storage medium
CN114637387A (en) * 2022-05-09 2022-06-17 南京芯驰半导体科技有限公司 Performance and power consumption management system and method of multi-core heterogeneous chip

Similar Documents

Publication Publication Date Title
CN112650651A (en) Power consumption detection IP (Internet protocol), management method and system
US8892931B2 (en) Power channel monitor for a multicore processor
Mahesri et al. Power consumption breakdown on a modern laptop
CN102109572B (en) Method for testing and method for testing and controlling transmission chip
US8117469B2 (en) Automatically determining operating parameters of a power management device
CN102377956B (en) Dynamic backlight regulation method of LCD (liquid crystal display) television
CN102656541B (en) The external device (ED) Electric control intervened without CPU in low power sleep mode
WO2007090431A1 (en) Electronic apparatus and method of conserving energy
US7584067B2 (en) Apparatus for measuring average power consumption of computer system
CN202710975U (en) Data acquisition device
CN108806565B (en) Display screen lighting test device and method
CN101540154B (en) Method for dynamically reducing power of liquid crystal display
US9032129B2 (en) Advanced energy profiler
CN108181590A (en) A kind of battery power display circuit and its method, chip, remote controler and air-conditioning
CN108562795A (en) A kind of solar cell impedance measurement system
CN106950885A (en) A kind of time and frequency domain analysis system of signal
WO2018032514A1 (en) Electric power management system and method
US20180278089A1 (en) Power analyzer and method for the use thereof
CN107450774A (en) Touch control detecting method, circuit, storage medium, processor and terminal
CN114117356A (en) Method and equipment for realizing remote low-power-consumption sensor
CN109283875B (en) ARM9 architecture-based high-performance cogeneration unit operation data acquisition terminal
CN116047259A (en) Detection system and detection method
KR100604985B1 (en) Apparatus and method for measuring power consumption
CN104749430A (en) Circuit line loss monitoring device
CN102446397B (en) Dynamic experimental testing wireless management system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination