Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
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 of a power supply output node and the load node that is attached thereto, and this resistor matrix is made 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 there is no sequencing, and first measuring resistance matrix or first measuring voltage matrix all can.Service condition comprises CPU (central processing unit) (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 energy 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, pad is the node of electric power network, 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 may 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.Each node in the electric power network can be numbered, measure the resistance between any two nodes on the electric power network, thereby draw the resistor matrix of electric power network, because the topological structure of each electric power network is determined, therefore, the resistor matrix of each electric power network determines 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 the voltage between consideration 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 default 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, 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 the energy consumption of integrated circuit and CPU usage, 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, constitute resistor matrix and voltage matrix in the electric power network by the load node of measuring each power supply output node in the integrated circuit and be attached thereto, 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, improved 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 each node in the electric power network be numbered, make up resistor matrix, making up resistor matrix can be in the following way:
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.
Below only for constituting an example of voltage matrix, the construction method of voltage matrix can also change along with the variation of resistor matrix building mode.
S205, obtain 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 of electric power network and voltage matrix;
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, the power pins pad of same integrated circuit not necessarily.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 and load node 3 are pads of the power pins of integrated circuit A, and load node 2 is pads of the power pins of integrated circuit B.If calculate integrated circuit A at the power that above-mentioned electric power network consumes, 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 the resistor matrix and the voltage matrix of n electric power network correspondence 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 the energy consumption of integrated circuit and CPU usage, interior nuclear temperature, running frequency.
The energy consumption of integrated circuits measuring method that present embodiment provides, constitute resistor matrix and voltage matrix in the electric power network by the load node of measuring each power supply output node in the integrated circuit and be attached thereto, 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, improved 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 finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out 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 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 of a power supply output node and the load node that is attached thereto;
Data processing module 52, the voltage that is used for resistor matrix, voltage matrix and the relative ground of electric power network of the described electric power network measured 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 be provided with to-be-measured integrated circuit, to-be-measured integrated circuit is moved under a certain service condition, and then can be consuming time at the energy 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, 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 may 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 is numbered, thereby measure the resistance between any two nodes on the electric power network successively by 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 determined, therefore, the resistor matrix of each electric power network is also determined, the resistor matrix of each electric power network only need be measured once, 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 the voltage between consideration power supply output node and the load node.After the to-be-measured integrated circuit energising, can be in one section default 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, just begin to measure when measurement module 51 detects the content of mating with predefined measurement beginning label, when measurement module 51 detects predefined end mark, just stop to measure.Measurement module 51 whenever carries out one-shot measurement and just the voltage data that measures is built into voltage matrix, and voltage matrix is sent to data processing module 52.
For the comprehensive assessment integrated circuit operates in 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 the energy consumption of integrated circuit and CPU usage, 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, constitute resistor matrix and voltage matrix in the electric power network by the load node of measuring each power supply output node in the integrated circuit and be attached thereto, 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, 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 and resistor matrix generate subelement 5112;
Resistance measurement subelement 5111 is used for measuring resistance between any two load nodes of electric power network and the resistance between load node and the power supply output node;
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 and voltage matrix generate subelement 5122;
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, is used for the corresponding voltage matrix of voltage generation electric power network between the load node measured 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 is used for the resistor matrix of the electric power network measured according to measurement module 51 and voltage matrix and obtains electric current on the load node that electric power network belongs to the 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 and generates the corresponding resistor matrix of each electric power network according to the resistance between any two load nodes and load node with resistance between 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 each node in the electric power network be numbered, and makes up resistor matrix, and making up resistor matrix can be in the following way:
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 electric current on the load node that belongs to to-be-measured integrated circuit in the electric power network according to the resistor matrix of electric power network and voltage matrix, 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 described 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 is according to the total energy consumption on the energy consumption acquisition to-be-measured integrated circuit 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, the power pins pad of same integrated circuit not necessarily.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 and load node 3 are pads of the power pins of integrated circuit A, and load node 2 is pads of the power pins of integrated circuit B.If calculate integrated circuit A at the power that above-mentioned electric power network consumes, 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 the resistor matrix and the voltage matrix of n electric power network correspondence 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 the energy consumption of integrated circuit and CPU usage, 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, constitute resistor matrix and voltage matrix in the electric power network by the load node of measuring each power supply output node in the integrated circuit and be attached thereto, 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, improved 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 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, obtain the voltage matrix that the voltage between the load node and power supply output node constitutes in the electric power network under the control of control module 1, electric power network is made of a power supply output node and the load node that is attached thereto; Voltage according to resistor matrix, voltage matrix and the relative ground of electric power network of the electric power network of measuring obtains to belong in the electric power network load node energy consumption of 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;
Display module 2 is used for showing the measurement and the data processed result of described energy consumption of integrated circuits measurement mechanism 3 under the control of control module 1.
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 by 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 at the energy 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, 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 may 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 is 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 determines that therefore, the resistor matrix of each electric power network determines 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 the voltage between consideration power supply output node and the load node.After the to-be-measured integrated circuit energising, can be in one section default 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 the feedback measurement result is 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 the voltage data that measures is built into voltage matrix.
For the comprehensive assessment integrated circuit operates in 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 the energy consumption of integrated circuit and CPU usage, 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 by 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, constitute resistor matrix and voltage matrix in the electric power network by the load node of measuring each power supply output node in the integrated circuit and be attached thereto, 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, need not surface-mounted integrated circuit to be measured is done any change, improved measuring accuracy.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, 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 modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.