Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The energy consumption of integrated circuits measuring method process flow diagram that Fig. 1 provides for one embodiment of the invention, as shown in Figure 1, this method comprises:
S101, under preset operating conditions; Obtain the resistor matrix of electric power network on the to-be-measured integrated circuit; Wherein, Electric power network is made up of a power supply output node and the load node that is attached thereto, and this resistor matrix is made up of resistance between any two load nodes and the resistance between load node and the power supply output node in the electric power network;
S102, in preset measuring time, obtain the voltage matrix that the voltage between the load node and power supply output node constitutes in the electric power network;
Wherein, S101 and S102 do not have sequencing, and first measuring resistance matrix or first measuring voltage matrix all can.Service condition comprises CPU (the Central Processing Unit of to-be-measured integrated circuit; Hereinafter to be referred as: operational factors such as nuclear temperature, frequency of operation CPU); Before to-be-measured integrated circuit is measured; To-be-measured integrated circuit is run under a certain service condition; The ability of being convenient in the end to draw to-be-measured integrated circuit like this is consuming time, can analyze the relation of energy consumption and operational factor, and then the energy consumption situation under the different operational factors is assessed.
Usually, printed circuit board (PCB) (PrintedCircuitBoard; Hereinafter to be referred as: have a plurality of integrated circuit PCB), can measure the energy consumption of each integrated circuit respectively.Electric power network is meant the network that a certain power supply output node on the pcb board and all via holes that are attached thereto, pad and PCB cabling constitute, and wherein, the power supply output node is the node for the pcb board power supply.Wherein, PCB cabling and via hole are the lines of electric power network, and pad is the node of electric power network, and the node except the power supply output node all is a load node; And the part in the load node is the power pins of to-be-measured integrated circuit plate; Power pins is to be the node of integrated circuit power supply, and the power pins of integrated circuit possibly belong to each different electric power network respectively, and the energy consumption of measuring integrated circuit mainly is to measure the energy consumption of each power pins on the surface-mounted integrated circuit.
In an electric power network, we only need choose the bigger load node of electric current usually, and the load node that electric current is less is ignored, and the load node of choosing is many more, and the precision of measurement is high more.Fig. 2 has provided the structural representation of an electric power network; Referring to Fig. 2; Comprise a power supply output node and three load nodes in this electric power network; All via holes in this electric power network all merge on the PCB cabling, and then the resistance between any two nodes is that PCB walks line resistance and via resistance sum on the electric power network.Can each node in the electric power network be numbered; Measure the resistance between any two nodes on the electric power network; Thereby draw the resistor matrix of electric power network, owing to the topological structure of each electric power network is confirmed, therefore; The resistor matrix of each electric power network confirms that also the resistor matrix of each electric power network only need be measured once.
When measuring the voltage matrix of electric power network, only need to consider the voltage between power supply output node and the load node, after the to-be-measured integrated circuit energising; Voltage between power supply output node and the load node has only tens millivolts usually; Even littler, can in one section preset acquisition time, implement to gather the voltage between power supply output node and each load node; And the formation voltage matrix, can obtain the energy consumption curve of each load node on the electric power network in one section acquisition time like this.
The voltage on S103, the resistor matrix according to electric power network, voltage matrix and the relative ground of electric power network obtains to belong in the electric power network load node energy consumption of to-be-measured integrated circuit power pins;
Resistor matrix and voltage matrix according to each electric power network; Can obtain the electric current on each load node in the electric power network; And in the load node in the electric power network, only some is the power pins of to-be-measured integrated circuit, and we only are concerned about the energy consumption of this part power pins; Voltage according to this relative ground of electric power network; Just can obtain the energy consumption of load node on this electric power network that belongs to the to-be-measured integrated circuit power pins, wherein, the voltage on the relative ground of electric power network is the voltage of electric power network with respect to " zero potential ".
S104, basis belong to the total energy consumption of the load node energy consumption acquisition to-be-measured integrated circuit of to-be-measured integrated circuit power pins.
The energy consumption of to-be-measured integrated circuit is each power pins energy consumption summation in electric power network separately respectively; After measuring end; Can extremely depict the energy consumption of integrated circuit as relation curve, thereby can observe the variation tendency of energy consumption of integrated circuits with Measuring Time.Further; Can also draw the relation curve between the parameters such as energy consumption and the CPU usage of integrated circuit, interior nuclear temperature, running frequency; Carry out parts selection, power supply design and managing power consumption when being convenient to develop integrated circuit; And then help energy-saving and emission-reduction, reduce cost and promote the green energy conservation product.
The energy consumption of integrated circuits measuring method that present embodiment provides; Each power supply output node constitutes resistor matrix and voltage matrix in the electric power network with the load node that is attached thereto in the integrated circuit through measuring; Acquisition belongs to the energy consumption of load node on to-be-measured integrated circuit of to-be-measured integrated circuit power pins; And then the energy consumption of acquisition to-be-measured integrated circuit; Can measure the integrated circuit extensive, that power pins is a lot, and need not surface-mounted integrated circuit to be measured is done any change, improve measuring accuracy.
The energy consumption of integrated circuits measuring method process flow diagram that Fig. 3 provides for another embodiment of the present invention, as shown in Figure 3, this method comprises:
Resistance in S201, the measurement electric power network between any two load nodes and the resistance between load node and the power supply output node;
S202, generate the corresponding resistor matrix of each electric power network with resistance between the power supply output node according to the resistance between any two load nodes and load node; The diagonal entry of resistor matrix is the resistance between load node and the power supply output node, and other elements of resistor matrix are the resistance between any two load nodes;
Referring to Fig. 4, can number each node in the electric power network, make up resistor matrix, make up resistor matrix and can adopt following mode:
Wherein, the diagonal entry R in the resistor matrix
IiResistance between expression load node i and the power supply output node, other elements R
Ij(resistance between expression load node i of i ≠ j) and the load node j, for example: R
11Resistance between expression load node 1 and the power supply output node, R
23Resistance between expression load node 2 and the load node 3.Obviously, R
Ij=R
Ji, promptly this resistor matrix is a symmetric matrix.
Below only provide an example that constitutes resistor matrix, resistor matrix can also adopt other forms to make up, and does not enumerate one by one.
Voltage in S203, the interior electric power network of measurement preset measuring time between load node and the power supply output node;
S204, generate the corresponding voltage matrix of electric power network according to the voltage between load node and the power supply output node;
Voltage matrix can adopt following form:
U wherein
iVoltage difference between expression load node i and the power supply output node.Because the resistance between each node of electric power network is very little, the voltage difference between load node and the power supply output node also has only tens millivolts usually, even littler.
More than be merely an example that constitutes voltage matrix, the construction method of voltage matrix can also change along with the variation of resistor matrix building mode.
S205, obtain the electric current on the load node that belongs to the to-be-measured integrated circuit power pins in the electric power network according to the resistor matrix and the voltage matrix of electric power network;
Concrete, the inverse matrix of resistor matrix R is the admittance matrix Y of electric power network, Y can be expressed as
The diagonal entry Y of admittance matrix
IiAdmittance between expression load node i and the power supply output node, other elements Y
Ij(the admittance between expression load node i of i ≠ j) and the load node j.Admittance matrix is the same with resistor matrix to be symmetric matrix.According to Ohm law, the current matrix that flows through each load node is:
Wherein, each I of current matrix I
iThe electric current of load node i is flow through in expression.
The load node energy consumption that belongs to the to-be-measured integrated circuit power pins in S206, the voltage acquisition electric power network according to electric current on the load node that belongs to the to-be-measured integrated circuit power pins and the relative ground of electric power network;
Owing to obtained each I of current matrix I
iThe electric current of load node i is flow through in expression, therefore, can obtain to belong to the energy consumption of load node on this electric power network of to-be-measured integrated circuit power pins according to the voltage on this relative ground of electric power network.
S207, basis belong to the total energy consumption of the load node energy consumption acquisition to-be-measured integrated circuit of to-be-measured integrated circuit power pins.
For the load node of choosing in the electric power network, be not necessarily the power pins pad of same integrated circuit.Therefore, if calculate certain integrated circuit, will calculate the power consumption of this integrated circuit pad of all power pins on this electric power network at the power that this electric power network consumes.Such as, in 3 POLs of above-mentioned electric power network, load node 1 is pads of the power pins of integrated circuit A with load node 3, and load node 2 is pads of the power pins of integrated circuit B.If calculate the power that integrated circuit A consumes at above-mentioned electric power network, will pick out the electric current of load node 1 and load node 3, form current matrix I ':
Certainly, if the power pins pad that above-mentioned 3 load nodes all are integrated circuit A, I '=I so.If the relative ground voltage of electric power network is V
1, the power matrix P of electric current I ' consumed so
1:
Wherein, p
1And p
3Represent the power that load node 1 and load node 3 are consumed respectively.Because load node 1 and POL 3 all are that the power pins of integrated circuit A is at electric power network V
1On pad, integrated circuit A is at electric power network V
1The power P of last consumption
V1Be matrix P
1Middle all elements sum is:
P
V1=∑p
i
Wherein, p
iBe that the to-be-measured integrated circuit power pins is at electric power network V
1On pad, i.e. the power that consumed of load node point i.Here, integrated circuit A is at electric power network V
1The power of last consumption is:
P
V1=p
1+p
3
In fact a lot of integrated circuit are linked on a plurality of electric power networks, for example: integrated circuit A also links voltage and is respectively V
2V
nN electric power network on, the energy consumption of integrated circuit A is its power consumed sum on n electric power network so, can extract n electric power network corresponding resistor matrix and voltage matrix respectively, calculates the energy consumption on these electric power networks more respectively:
Wherein, P
ViBe that to-be-measured integrated circuit is at electric power network V
iOn energy consumption, can be by electric power network V
iResistor matrix, voltage matrix and electric power network magnitude of voltage V
iCalculate.If integrated circuit A has three kinds of power pins pads, linking voltage respectively is V
1, V
2And V
3Three electric power networks on, the energy consumption of integrated circuit A is so:
P=P
v1+P
v2+P
v3
Certainly, if integrated circuit A has only a kind of power pins pad, link electric power network V
1On, can calculate energy consumption of integrated circuits and be:
P=P
V1
The energy consumption summation that the energy consumption of to-be-measured integrated circuit is each power pins on electric power network separately, measure finish after, can be with the energy consumption of integrated circuit to depicting relation curve as with Measuring Time, thus can observe the variation tendency of energy consumption of integrated circuits.Further, can also draw relation curve between the parameters such as energy consumption and the CPU usage of integrated circuit, interior nuclear temperature, running frequency.
The energy consumption of integrated circuits measuring method that present embodiment provides; Each power supply output node constitutes resistor matrix and voltage matrix in the electric power network with the load node that is attached thereto in the integrated circuit through measuring; Obtain belonging to the electric current that flows through on the load node of to-be-measured integrated circuit power pins; And then acquisition belongs to the energy consumption of load node on to-be-measured integrated circuit of to-be-measured integrated circuit power pins; Can measure the integrated circuit extensive, that power pins is a lot, need not the pcb board at to-be-measured integrated circuit place is done any change, improve measuring accuracy.Carry out design of parts selection, power supply and managing power consumption when present embodiment is convenient to develop integrated circuit, and then help energy-saving and emission-reduction, reduce cost and promote the green energy conservation product.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The energy consumption of integrated circuits measurement mechanism structural representation that Fig. 5 provides for one embodiment of the invention, as shown in Figure 5, this device comprises: measurement module 51 and data processing module 52;
Measurement module 51; Be used under preset operating conditions; Obtain the resistor matrix of electric power network on the to-be-measured integrated circuit, this resistor matrix is made up of resistance between any two load nodes and the resistance between load node and the power supply output node in the electric power network, and in preset measuring time; Obtain the voltage matrix that the voltage between the load node and power supply output node constitutes in the electric power network, electric power network is made up of a power supply output node and the load node that is attached thereto;
Data processing module 52; The voltage on resistor matrix, voltage matrix and the relative ground of electric power network of the said electric power network that is used for measuring according to measurement module 51 obtains the load node energy consumption that electric power network belongs to the to-be-measured integrated circuit power pins, and obtains the total energy consumption of to-be-measured integrated circuit according to the load node energy consumption that belongs to the to-be-measured integrated circuit power pins.
Wherein, Preset operating conditions comprises operational factors such as the CPU core temperature, frequency of operation of to-be-measured integrated circuit, before to-be-measured integrated circuit is measured, can to-be-measured integrated circuit be provided with; To-be-measured integrated circuit is moved under a certain service condition; And then can be consuming time in the ability that draws to-be-measured integrated circuit, can analyze the relation of energy consumption and operational factor, and then the energy consumption situation under the different operational factors is assessed.
Electric power network is the network that a certain power supply output node and all via holes of being attached thereto, pad and PCB cabling constitute on the pcb board.Wherein, PCB cabling and via hole are the lines of electric power network; Pad is the node of electric power network, and the node except the power supply output node all is a load node, and the part in the load node is the power pins of to-be-measured integrated circuit plate; The power pins of integrated circuit possibly belong to each different electric power network respectively, and the energy consumption of measuring integrated circuit mainly is to measure the energy consumption of each power pins on the integrated circuit.
In an electric power network, only need choose the bigger load node of electric current usually, and the load node that electric current is less is ignored, the load node of choosing is many more, and the precision of measurement is high more.Resistance on the electric power network between any two nodes is that PCB walks line resistance and via resistance sum.Before measuring; Can be at the load node number during each electric power network is set; And each node in the electric power network numbered, thereby measure the resistance between any two nodes on the electric power network successively through measurement module 51, and with these resistance to being kept in the measurement module 51; After treating that all resistance measurements finish, in measurement module 51, draw the resistor matrix of electric power network.Because the topological structure of each electric power network is confirmed; Therefore; The resistor matrix of each electric power network is also confirmed; The resistor matrix of each electric power network only need be measured once, and after measuring end, the resistor matrix that measurement module 51 will be measured each electric power network of gained is sent to data processing module 52.
When measuring the voltage matrix of electric power network, only need to consider the voltage between power supply output node and the load node.After the to-be-measured integrated circuit energising; Can be in one section preset acquisition time; Gather the voltage between power supply output node and each load node in real time, and constitute voltage matrix, can obtain the energy consumption curve of each load node on the electric power network in one section acquisition time like this.
Concrete; Measuring Time can be provided with in advance; Can in measurement module 51, be provided with and measure beginning, end mark; In measuring process, when detecting the content of mating with predefined measurement beginning label, measurement module 51 just begins to measure,, measurement module 51 just stops to measure when detecting predefined end mark.Measurement module 51 whenever carries out one-shot measurement and just is built into voltage matrix to the voltage data that measures, and voltage matrix is sent to data processing module 52.
For the comprehensive assessment integrated circuit operates in the efficiency under the AD HOC, measurement module 51 1 detects measures beginning, just gathers voltage data automatically repeatedly and sends voltage matrix to data processing module 52, till measurement module 51 detects end mark.
After data processing module 52 gets access to the resistor matrix and voltage matrix of each electric power network that measurement module 51 sends; Can obtain the electric current on each load node in the electric power network; And in the load node in the electric power network; Only some is the power pins of to-be-measured integrated circuit; The energy consumption of our this part power pins, according to the voltage on this relative ground of electric power network, promptly electric power network just can obtain the energy consumption of load node on this electric power network that belongs to the to-be-measured integrated circuit power pins with respect to the voltage of " zero potential ".
The energy consumption of to-be-measured integrated circuit is the energy consumption summation of each power pins in electric power network separately; After measuring end; Data processing module 52 can extremely be depicted the energy consumption of integrated circuit as relation curve with Measuring Time, thereby can observe the variation tendency of energy consumption of integrated circuits.Further; Data processing module 52 can also draw the relation curve between the parameters such as energy consumption and the CPU usage of integrated circuit, interior nuclear temperature, running frequency; Carry out parts selection, power supply design and managing power consumption when being convenient to develop integrated circuit; And then help energy-saving and emission-reduction, reduce cost and promote the green energy conservation product.
The energy consumption of integrated circuits measurement mechanism that present embodiment provides; Each power supply output node constitutes resistor matrix and voltage matrix in the electric power network with the load node that is attached thereto in the integrated circuit through measuring; Acquisition belongs to the energy consumption of load node on to-be-measured integrated circuit of to-be-measured integrated circuit power pins, and then obtains the energy consumption of to-be-measured integrated circuit, can measure the integrated circuit extensive, that power pins is a lot; Need not surface-mounted integrated circuit to be measured is done any change, improved measuring accuracy.
The energy consumption of integrated circuits measurement mechanism structural representation that Fig. 6 provides for another embodiment of the present invention, as shown in Figure 6, this device comprises: measurement module 51 and data processing module 52;
Further, measurement module 51 comprises: resistor matrix measuring unit 511 and voltage matrix measuring unit 512;
Resistor matrix measuring unit 511 is used for obtaining the resistor matrix of electric power network on the to-be-measured integrated circuit;
Resistor matrix measuring unit 511 comprises: resistance measurement subelement 5111 generates subelement 5112 with resistor matrix;
Resistance measurement subelement 5111 is used for measuring resistance and the resistance between load node and the power supply output node between any two load nodes of electric power network;
Resistor matrix generates subelement 5112; The corresponding resistor matrix of resistance generation electric power network between resistance between any two load nodes that are used for measuring and load node and the power supply output node according to resistance measurement subelement 5111; The diagonal entry of resistor matrix is the resistance between load node and the power supply output node, and other elements of resistance matrix are the resistance between any two load nodes.
Voltage matrix measuring unit 512 is used for obtaining the voltage matrix of electric power network;
Voltage matrix measuring unit 512 comprises: voltage measurement subelement 5121 generates subelement 5122 with voltage matrix;
Voltage measurement subelement 5121 is used for measuring the voltage between interior electric power network load node of preset measuring time and the power supply output node;
Voltage matrix generates subelement 5122, the corresponding voltage matrix of voltage generation electric power network between the load node that is used for measuring according to voltage measurement subelement 5121 and the power supply output node.
Data processing module 52 comprises: current calculation unit 521 and energy consumption calculation unit 522;
Current calculation unit 521, the resistor matrix of the electric power network that is used for measuring according to measurement module 51 and voltage matrix acquisition electric power network belong to the electric current on the load node of to-be-measured integrated circuit power pins;
Energy consumption calculation unit 522; Electric current on each load node that is used for calculating according to current calculation unit 521 and relatively the voltage on ground obtain the load node energy consumption that electric power network belongs to the to-be-measured integrated circuit power pins, and according to the load node energy consumption that belongs to the to-be-measured integrated circuit power pins obtain under the preset operating conditions, the total energy consumption of to-be-measured integrated circuit.
Concrete; Resistance in the resistance measurement subelement 5111 measurement electric power networks in the resistor matrix measuring unit 511 between any two load nodes and the resistance between load node and the power supply output node; Resistor matrix generates subelement 5112 according to the corresponding resistor matrix of resistance each electric power network of generation between the resistance between any two load nodes and load node and the power supply output node; The diagonal entry of resistor matrix is the resistance between load node and the power supply output node, and other elements of resistor matrix are the resistance between any two load nodes.
Resistor matrix generates subelement 5112 and can number each node in the electric power network, makes up resistor matrix, makes up resistor matrix and can adopt following mode:
Wherein, the diagonal entry R in the resistor matrix
IiResistance between expression load node i and the power supply output node, other elements R
Ij(resistance between expression load node i of i ≠ j) and the load node j, for example: R
11Resistance between expression load node 1 and the power supply output node, R
23Resistance between expression load node 2 and the load node 3.Obviously, R
Ij=R
Ji, promptly this resistor matrix is a symmetric matrix.Certainly, resistor matrix generates subelement 5112 and can also adopt other forms to generate resistor matrix, does not enumerate one by one.
Voltage in the interior electric power network of voltage measurement subelement 5121 measurement preset measuring time in the voltage matrix measuring unit 512 between load node and the power supply output node; Voltage matrix generates subelement 5122 according to the corresponding voltage matrix of voltage generation electric power network between load node and the power supply output node, and voltage matrix can adopt following form:
U wherein
iVoltage difference between expression load node i and the power supply output node.Because the resistance between each node of electric power network is very little, the voltage difference between load node and the power supply output node also has only tens millivolts usually, even littler.Voltage matrix generates subelement 5122 and can also generate the variation that subelement 5112 generates the resistor matrix modes according to resistor matrix and change.
Current calculation unit 521 in the data processing module 52 obtains the electric current on the load node that belongs to to-be-measured integrated circuit in the electric power network according to the resistor matrix and the voltage matrix of electric power network; Concrete; The inverse matrix of resistor matrix R is the admittance matrix Y of electric power network, and Y can be expressed as:
The diagonal entry Y of admittance matrix
IiAdmittance between expression load node i and the power supply output node, other elements Y
Ij(the admittance between expression load node i of i ≠ j) and the load node j.Admittance matrix is the same with resistor matrix to be symmetric matrix.According to Ohm law, the current matrix that flows through each load node is:
Wherein, each I of current matrix I
iThe electric current of load node i is flow through in expression.
Energy consumption calculation unit 522 in the data processing module 52 obtains to belong in the electric power network energy consumption of the load node of to-be-measured integrated circuit power pins according to the voltage on electric current on the load node that belongs to the to-be-measured integrated circuit power pins and the relative ground of electric power network, owing to obtained each I of current matrix I
iThe electric current of load node i is flow through in expression, and therefore, energy consumption calculation unit 522 can obtain to belong to the energy consumption of load node on this electric power network of said to-be-measured integrated circuit power pins according to the voltage on this relative ground of electric power network.
Further, energy consumption calculation unit 522 obtains the total energy consumption on the to-be-measured integrated circuit according to the energy consumption of power pins in electric power network separately of to-be-measured integrated circuit.
For the load node of choosing in the electric power network, be not necessarily the power pins pad of same integrated circuit.Therefore, if calculate certain integrated circuit, will calculate the power consumption of this integrated circuit pad of all power pins on this electric power network at the power that this electric power network consumes.Such as, in 3 POLs of above-mentioned electric power network, load node 1 is pads of the power pins of integrated circuit A with load node 3, and load node 2 is pads of the power pins of integrated circuit B.If calculate the power that integrated circuit A consumes at above-mentioned electric power network, will pick out the electric current of load node 1 and load node 3, form current matrix I ':
Certainly, if the power pins pad that above-mentioned 3 load nodes all are integrated circuit A, I '=I so.If the relative ground voltage of electric power network is V
1, the power matrix P of electric current I ' consumed so
1:
Wherein, p
1And p
3Represent the power that load node 1 and load node 3 are consumed respectively.Because load node 1 and POL 3 all are that the power pins of integrated circuit A is at electric power network V
1On pad, integrated circuit A is at electric power network V
1The power P of last consumption
V1Be matrix P
1Middle all elements sum is:
P
V1=∑p
i
Wherein, p
iBe that the to-be-measured integrated circuit power pins is at electric power network V
1On pad, i.e. the power that consumed of load node point i.Here, integrated circuit A is at electric power network V
1The power of last consumption is:
P
V1=p
1+p
3
In fact a lot of integrated circuit are linked on a plurality of electric power networks, for example: integrated circuit A also links voltage and is respectively V
2V
nN electric power network on, the energy consumption of integrated circuit A is its power consumed sum on n electric power network so, can extract n electric power network corresponding resistor matrix and voltage matrix respectively, calculates the energy consumption on these electric power networks more respectively:
Wherein, P
ViBe that to-be-measured integrated circuit is at electric power network V
iOn energy consumption, can be by electric power network V
iResistor matrix, voltage matrix and electric power network magnitude of voltage V
iCalculate.If integrated circuit A has three kinds of power pins pads, linking voltage respectively is V
1, V
2And V
3Three electric power networks on, the energy consumption of integrated circuit A is so:
P=P
v1+P
v2+P
v3
Certainly, if integrated circuit A has only a kind of power pins pad, link electric power network V
1On, so only need an energy consumption calculation unit just can calculate energy consumption of integrated circuits:
P=P
V1
The energy consumption of the to-be-measured integrated circuit that energy consumption calculation unit 522 obtains is the energy consumption summation of each power pins on electric power network separately in the to-be-measured integrated circuit; Energy consumption calculation unit 522 can also calculate the relation between the parameters such as energy consumption and the CPU usage of integrated circuit, interior nuclear temperature, running frequency respectively, thereby draws the energy consumption of integrated circuit and the relation curve between the various operational factor.
Further, based on the method for this measurement device energy consumption of integrated circuits, data processing module 52 can also calculate the energy consumption of CPU execution command, carries out the energy consumption of an instruction, carries out the energy consumption of certain section procedure script.
The energy consumption of integrated circuits measurement mechanism that present embodiment provides; Each power supply output node constitutes resistor matrix and voltage matrix in the electric power network with the load node that is attached thereto in the integrated circuit through measuring; Obtain belonging to the electric current that flows through on the load node of to-be-measured integrated circuit power pins; And then acquisition belongs to the energy consumption of load node on to-be-measured integrated circuit of to-be-measured integrated circuit power pins; Can measure the integrated circuit extensive, that power pins is a lot, need not the pcb board at to-be-measured integrated circuit place is done any change, improve measuring accuracy.Carry out design of parts selection, power supply and managing power consumption when being convenient to develop integrated circuit, and then help energy-saving and emission-reduction, reduce cost and promote the green energy conservation product.
The energy consumption of integrated circuits measuring system structural representation that Fig. 7 provides for one embodiment of the invention, as shown in Figure 7, this device comprises control module 1, display module 2 and energy consumption of integrated circuits measurement mechanism 3;
Control module 1 is used to be provided with service condition and Measuring Time, and control integrated circuit energy consumption measuring device 3 is measured and data processing;
Energy consumption of integrated circuits measurement mechanism 3 is used under the control of control module 1; Under the service condition that is provided with, obtain the resistor matrix of electric power network on the to-be-measured integrated circuit; Resistor matrix is made up of resistance between any two load nodes and the resistance between load node and the power supply output node in the electric power network; And in the Measuring Time that is provided with; Under the control of control module 1, obtain the voltage matrix that the voltage between the load node and power supply output node constitutes in the electric power network, electric power network is made up of a power supply output node and the load node that is attached thereto; Obtain to belong in the electric power network load node energy consumption of to-be-measured integrated circuit power pins according to the voltage on resistor matrix, voltage matrix and the relative ground of electric power network of the electric power network of measuring, and obtain the total energy consumption of to-be-measured integrated circuit according to the load node energy consumption that belongs to the to-be-measured integrated circuit power pins;
Display module 2 is used under the control of control module 1, showing the measurement and the data processed result of said energy consumption of integrated circuits measurement mechanism 3.
Wherein, Preset operating conditions comprises operational factors such as the CPU core temperature, frequency of operation of to-be-measured integrated circuit, before to-be-measured integrated circuit is measured, can be provided with through 1 pair of to-be-measured integrated circuit of control module; To-be-measured integrated circuit is moved under a certain service condition; And then can be consuming time in the ability that draws to-be-measured integrated circuit, can analyze the relation of energy consumption and operational factor, and then the energy consumption situation under the different operational factors is assessed.
Electric power network is the network that a certain power supply output node and all via holes of being attached thereto, pad and PCB cabling constitute on the pcb board.Wherein, PCB cabling and via hole are the lines of electric power network; Pad is the node of electric power network, and the node except the power supply output node all is a load node, and the part in the load node is the power pins of to-be-measured integrated circuit plate; The power pins of integrated circuit possibly belong to each different electric power network respectively, and the energy consumption of measuring integrated circuit mainly is to measure the energy consumption of each power pins on the integrated circuit.
In an electric power network, only need choose the bigger load node of electric current usually, and the load node that electric current is less is ignored, the load node of choosing is many more, and the precision of measurement is high more.Resistance on the electric power network between any two nodes is that PCB walks line resistance and via resistance sum.Before measuring; Load node number in each electric power network can be set in control module 1; And each node in the electric power network numbered, thereby make control module 1 control integrated circuit energy consumption measuring device 3 measure the resistance between any two nodes on the electric power network successively, and these resistance are preserved; After treating that all resistance measurements finish, in energy consumption of integrated circuits measurement mechanism 3, draw the resistor matrix of electric power network.Because the topological structure of each electric power network confirms that therefore, the resistor matrix of each electric power network confirms that also the resistor matrix of each electric power network only need be measured once.
When measuring the voltage matrix of electric power network, only need to consider the voltage between power supply output node and the load node.After the to-be-measured integrated circuit energising; Can be in one section preset acquisition time; Energy consumption of integrated circuits measurement mechanism 3 is gathered the voltage between power supply output node and each load node in real time; And the formation voltage matrix, can obtain the energy consumption curve of each load node on the electric power network in one section acquisition time like this.
Concrete; Measuring Time can be provided with in control module 1 in advance; Can be provided with and measure beginning, end mark, in test process, constantly feed back measurement result to control module 1; Begin to measure with regard to control integrated circuit energy consumption measuring device 3 if control module 1 detects the content of mating with predefined measurement beginning label, control energy consumption of integrated circuits measurement mechanism 3 stops to measure when control module 1 detects predefined end mark.Whenever carry out one-shot measurement and just be built into voltage matrix to the voltage data that measures.
For the comprehensive assessment integrated circuit operates in the efficiency under the AD HOC, control module 1 one detects measures beginning, and just control integrated circuit energy consumption measuring device 3 is gathered voltage data automatically repeatedly, till control module 1 detects end mark.
Energy consumption of integrated circuits measurement mechanism 3 can obtain the electric current on each load node in the electric power network according to the resistor matrix and the voltage matrix of each electric power network; And in the load node in the electric power network; Only some is the power pins of to-be-measured integrated circuit; The energy consumption of our this part power pins; According to the voltage on this relative ground of electric power network, promptly electric power network just can obtain the energy consumption of load node on this electric power network that belongs to the to-be-measured integrated circuit power pins with respect to the voltage of " zero potential ".
The energy consumption of to-be-measured integrated circuit is the energy consumption summation of each power pins in electric power network separately; After measuring end; Energy consumption of integrated circuits measurement mechanism 3 can extremely be depicted the energy consumption of integrated circuit as relation curve with Measuring Time, thereby can observe the variation tendency of energy consumption of integrated circuits.Further; Energy consumption of integrated circuits measurement mechanism 3 can also draw the relation curve between the parameters such as energy consumption and the CPU usage of integrated circuit, interior nuclear temperature, running frequency; Carry out parts selection, power supply design and managing power consumption when being convenient to develop integrated circuit; And then help energy-saving and emission-reduction, reduce cost and promote the green energy conservation product.Wherein, each the pacing amount result and the data processed result of energy consumption of integrated circuits measurement mechanism 3 all can show through display module 2, thereby make measuring process directly perceived more and be convenient to analysis to measure and result data.
The energy consumption of integrated circuits measuring system that present embodiment provides; Each power supply output node constitutes resistor matrix and voltage matrix in the electric power network with the load node that is attached thereto in the integrated circuit through measuring; Acquisition belongs to the energy consumption of load node on to-be-measured integrated circuit of to-be-measured integrated circuit power pins, and then obtains the energy consumption of to-be-measured integrated circuit, can measure the integrated circuit extensive, that power pins is a lot; Need not surface-mounted integrated circuit to be measured is done any change, improved measuring accuracy.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.