Embodiment
1. representational embodiment.
The summary of the representational embodiment of invention disclosed among the application at first, is described.In the summary description to representational embodiment, the Reference numeral of additional bracket reference only example illustrates textural element included in the notion of the textural element of giving this Reference numeral.
[1] current measuring method is as follows in the sheet of representational embodiment of the present invention: comprising the circuit block (C1) with predetermined function and can provide the foregoing circuit piece in the SIC (semiconductor integrated circuit) (SoC) of work with the power switch (PSW1) of power supply, being provided with first handles and second processing, wherein, the voltage between terminals that above-mentioned power switch is switched on the above-mentioned power switch under the state is calculated in above-mentioned first processing; Above-mentioned second processing is calculated the electric current that flows into the foregoing circuit piece according to the voltage between terminals of above-mentioned power switch and the conducting resistance of above-mentioned power switch.
According to said structure, calculate the voltage between terminals that above-mentioned power switch is switched on the above-mentioned power switch under the state, according to the voltage between terminals of above-mentioned power switch and the conducting resistance of above-mentioned power switch, calculate the electric current that flows into the foregoing circuit piece.Thus, can under being the state of operate as normal, chip carry out the current measurement of circuit block.
[2] at this moment, the electric current result of calculation that will obtain in above-mentioned second handles via the outside terminal of above-mentioned SIC (semiconductor integrated circuit) outputs to the outside, makes it possible to carry out the exterior monitoring of above-mentioned electric current result of calculation.
[3] according to another viewpoint, constitute SIC (semiconductor integrated circuit), this SIC (semiconductor integrated circuit) comprises the circuit block (C1) with predetermined function; Can provide the power switch (PSW1) of work to the foregoing circuit piece with power supply; And the voltage between terminals of the above-mentioned power switch under the state that is switched on according to above-mentioned power switch and the conducting resistance of above-mentioned power switch, calculate the current measurement circuit (100) of the electric current that flows into the foregoing circuit piece.
According to the SIC (semiconductor integrated circuit) of said structure, the voltage between terminals of the above-mentioned power switch under the state that current measurement circuit is switched on according to above-mentioned power switch and the conducting resistance of above-mentioned power switch are calculated the electric current that flows into the foregoing circuit piece.
[4] at this moment, above-mentioned current measurement circuit comprises: amplifier (Amp1), and the voltage between terminals of the above-mentioned power switch under the state that is used for above-mentioned power switch is switched on is converted to its corresponding electric current; AD converter (ADC1) is used for the output signal of above-mentioned amplifier is converted to digital signal; And computing circuit (DSP1), can calculate the electric current that flows into the foregoing circuit piece according to the conversion output of above-mentioned AD converter.
When [5] many group foregoing circuit pieces and the above-mentioned power switch corresponding with it being set, above-mentioned amplifier and above-mentioned power switch dispose a plurality of accordingly.
[6] above-mentioned amplifier and above-mentioned power switch dispose when a plurality of accordingly, and above-mentioned current measurement circuit also comprises traffic pilot (MUX1), this traffic pilot can with the output signal selection of above-mentioned a plurality of amplifiers output to above-mentioned AD converter.
[7] in addition, in order to make the shared above-mentioned AD converter of above-mentioned a plurality of amplifier, above-mentioned computing circuit, above-mentioned current measurement circuit also comprises controller (CTL2), this controller can be by the above-mentioned a plurality of amplifiers of control, with the output signal selection of above-mentioned a plurality of amplifiers output to above-mentioned AD converter.
[8] above-mentioned current measurement circuit also comprises: voltage frequency conversioning circuit (VFC1), and the voltage between terminals of the above-mentioned power switch under the state that is used for above-mentioned power switch is switched on is converted to its corresponding oscillation frequency; Frequency-voltage conversion circuit (FVC) is used for the output signal of above-mentioned voltage frequency conversioning circuit is converted to its corresponding voltage; And computing circuit (DSP2), can calculate the electric current that flows into the foregoing circuit piece according to the conversion output of said frequencies voltage conversion circuit.
When [9] many group foregoing circuit pieces and the power switch corresponding with it being set, above-mentioned voltage frequency conversioning circuit disposes a plurality of with above-mentioned power switch accordingly.
[10] according to another viewpoint, constitute SIC (semiconductor integrated circuit), this SIC (semiconductor integrated circuit) comprises: circuit block (C1) has predetermined function; Regulator (Reg1) has the transistor (MP3) that is used to reduce supply voltage, by control the work voltage that above-mentioned transistorized conducting resistance forms the foregoing circuit piece according to reference voltage; And current measurement circuit (100), via above-mentioned transistor the foregoing circuit piece being provided above-mentioned work, calculate the electric current that flows into the foregoing circuit piece according to above-mentioned transistor drain-voltage between source electrodes with under the state of voltage.
According to the SIC (semiconductor integrated circuit) of said structure, current measurement circuit is calculated the electric current that flows into the foregoing circuit piece via above-mentioned transistor the foregoing circuit piece being provided work with under the state of voltage according to above-mentioned transistor drain-voltage between source electrodes.Thus, can under the state of chip operate as normal, carry out the current measurement of circuit block.
[11] above-mentioned current measurement circuit comprises: amplifier (Ampn1) is used for and will provides above-mentioned work to be converted to its corresponding electric current with the above-mentioned transistor drain-voltage between source electrodes under the state of voltage to the foregoing circuit piece via above-mentioned transistor; AD converter (ADC1) is used for the output signal of above-mentioned amplifier is converted to digital signal; And computing circuit (100), can calculate the electric current that flows into the foregoing circuit piece according to the conversion output of above-mentioned AD converter.
When [12] many group foregoing circuit pieces and the above-mentioned regulator corresponding with it being set, above-mentioned amplifier and above-mentioned regulator dispose a plurality of accordingly.
2. the explanation of embodiment
Below, further describe embodiment.
All figure being used for illustrating embodiment give same label to same parts in principle, omit it and explain over and over again.In addition, each textural element of formation semiconductor device, each signal name etc. only describe with the label of giving it sometimes.
Figure 15 represents as the SoC of an example of SIC (semiconductor integrated circuit) of the present invention (SystemOn a Chip).SoC shown in Figure 1 is not limited especially, but utilizes known SIC (semiconductor integrated circuit) manufacturing technology, for example is formed on Semiconductor substrate such as monocrystalline substrate.This SoC is coupled with external memory storage MEM in custom system, can utilize the internal logic circuit LC visit said external memory MEM of SoC.
Fig. 1 represents the structure example of above-mentioned internal logic circuit LC.
Above-mentioned internal logic circuit LC comprises current measurement circuit 100, this current measurement circuit be used for measure flowing into a plurality of power supply area Area1, Area2 ..., AreaN and above-mentioned a plurality of power supply area Area1, Area2 ..., the electric current of circuit block C1 that AreaN comprised.Above-mentioned a plurality of power supply area Area1, Area2 ..., circuit block C1 that AreaN comprised, do not limited especially, but be respectively functional module, as CPU (central processing unit), baseband processor, application processor, storer or Interrupt Process controller etc. with predetermined function.
Power supply area Area1, Area2 ..., AreaN provided hot side power supply (VDD) and the earthing power supply VSS inequality respectively with the power supply that uses at other power supply areas independently of one another.In addition, at these power supply areas, by distinguish independent control setting in Area1 in the power switch (being PSW1) of each power supply area, the power supply that can cut off each circuit block C1.Power switch is not limited especially, but is taken as the n channel type MOS transistor.Above-mentioned current measurement circuit 100 comprises amplifier Amp1~AmpN, traffic pilot MUX1, MUX controller CTL1, AD (analog/digital) converter ADC1, digital signal processor DSP 1, read only memory ROM 1.Generally, above-mentioned amplifier Amp1~AmpN, ADC1 are mimic channel.Above-mentioned amplifier Amp1~AmpN has following function, promptly power supply area Area1, the Area2 of correspondence ..., when the power switch PSW1 among the AreaN connects, will be converted to its corresponding electric current because of flowing through the terminal voltage that electric current I produces between drain electrode-source electrode.Traffic pilot MUX1 is optionally with the lead-out terminal of above-mentioned amplifier Amp1~AmpN and the AD converter ADC1 coupling of back level.This work is controlled by MUX controller CTL1.The output signal of above-mentioned AD converter ADC1 is transferred to the digital signal processor DSP 1 of back level.This digital signal processor DSP 1, according to the output signal of above-mentioned AD converter ADC1, calculate to flow into above-mentioned power supply area Area1, Area2 ..., the electric current of the power switch PSW1 among the AreaN, promptly flow into the electric current of corresponding circuit block C1.The information of the amplification coefficient α of known amplifier when in ROM1, storing conducting resistance R, the design of known power switch of when design.When calculating electric current, as required with reference to the canned data of ROM1.ROM1 can be made of nonvolatile memories such as ROM (read-only memory) such as mask ROM or flash memories.The output signal Dout1 of digital signal processor DSP 1 can output to the outside by the outside terminal Output of SoC.In addition, the output signal Dout1 of digital signal processor DSP 1, can be transferred to as required above-mentioned power supply area Area1, Area2 ..., AreaN, be used for FEEDBACK CONTROL.For example, if power supply area AreaN is the Interrupt Process controller, then during the current value more than flowing through standard, can control and make the CPU that in other power supply areas, installs give notice, the power supply of regulating chip integral body provides voltage, frequency of operation or Processing tasks number etc., current value is reduced to below the mark.
In this example, carry out in the process of operate as normal, also can measure the electric current that flows into each circuit block C1 as described below at chip.
The electric current that flows into circuit block C1 is temporarily compiled by power switch PSW1.Therefore, by the flow through electric current I of power switch of measurement, can obtain the electric current that flows into circuit block C1.Used power switch in order to measure the electric current that flows into circuit block in the prior art.But this power switch plays a role with switch as the selection of measured circuit block eventually.Therefore, be switched on or switched off by the power switch that only makes the circuit block that to measure and only make this circuit block work.That is, when chip is operate as normal (a plurality of circuit block work in the general operate as normal) state, can not carry out the current measurement of each circuit block.But,, can power supply be provided and make the chip operate as normal all or a part of power supply area on one side, Yi Bian carry out the current measurement of single circuit block C1 according to this example.
At this, according to the step of the current measurement in this example of flowchart text of Fig. 6.
At first, connect as the pairing power switch PSW1 of the circuit block C1 of measuring object (ST1).Thus, the working current I that flows through among the power switch PSW1 is because of the conducting resistance of power switch PSW1 produces voltage drop (ST2).Utilize this voltage drop, the voltage between the node (Vd) of the circuit block side among the power switch PSW1 and the node (Vs) of earthing potential side is transferred to corresponding amplifier Amp1, carries out electric current and voltage conversion (ST3) in this amplifier Amp1.The output signal of amplifier Amp1 optionally is transferred to AD converter ADC1 (ST4) by traffic pilot MUX1, and this signal is transferred to digital signal processor DSP 1 after being converted into digital signal (ST5).In digital signal processor DSP 1,, calculate the electric current that flows into power switch PSW1, promptly flow into the electric current (ST6) of circuit block C1 according to the conducting resistance of terminal voltage and the power switch PSW1 of power switch PSW1.The information of the conducting resistance of power switch PSW1 is stored among the ROM1 in advance, and this information is by digital signal processor DSP 1 reference.The electric current that flows into circuit block C1 can be by obtaining with the conducting resistance of the known power switch (PSW1) when designing of the voltage between the node (Vs) of the node (Vd) of the circuit block side of power switch and earthing potential side.In above-mentioned current measurement, also it doesn't matter even the power switch of all power supply areas is all connected, the current measurement of each circuit block in the time of therefore can carrying out the chip operate as normal.Operation result in the above-mentioned digital signal processor DSP 1 is fed to internal circuit, or outputs to outside (ST7) by outside terminal Output.
Because the conducting resistance of power switch PSW1 is less, so voltage is that signal intensity is less about 10mV between the Vd-Vs in the expectation actual chips.Therefore, if make when this signal transmitted in chip everywhere then might sneak into noise like this.Therefore, near the circuit block that amplifier Amp1~AmpN is arranged on correspondence, can shorten the length of signal transmission path from power switch to pairing amplifier Amp1~AmpN as far as possible.So, even sneak into a little noise, also can carry out current with high accuracy and measure.
Fig. 2 represents the structure example of above-mentioned amplifier Amp1~AmpN.
This amplifier is roughly divided then and comprised: the voltage in Out1 input is carried out the source follower circuit SF1 of voltage transitions, is the current mirroring circuit CM that is formed by p channel type MOS transistor MP1, MP2 of current signal with voltage transitions.The magnification α roughly available p channel type MOS transistor MP1 of this circuit and the component size of MP2 are recently represented.Vbias1 is the offset signal that is used to make SF1 work.MN1 is the N channel type MOS transistor that is used for the output voltage signal of SF1 is converted to current signal.This amplifier is a mimic channel, therefore is applied in the voltage VCC higher than the vdd voltage of digital circuit (about 3V).
Fig. 3 represents the layout of the major part of above-mentioned SoC.
Power supply area is made of these 5 of Area1~Area5.(PSW1~PSW5) is present in the both sides of each circuit block to power switch substantially.Each power supply area is made of so-called digital circuit, and amplifier Amp1~AmpN (mimic channel) is arranged on mimic channel (near the An1~An5).Thus, the distance of transmission feeble signal in chip can be shortened, high-precision measurement can be carried out.Because AD converter ADC can be shared in chip, so be arranged at certain of chip.DSP1 can be arranged at any one among power supply area Area1~Area5.
Fig. 4 represents the layout around the above-mentioned power switch.
In Fig. 4, connect up with the first metal layer M1 in the wiring that the x direction is extended, arrange VDD power lead VDDM1 and illusory ground connection (VSSM) power lead VSSMM1.VSSM is the power lead that can be cut into real ground connection (VSS) by power switch described later.The wiring of extending in the y direction use with the first metal layer of x direction wiring different, for example the second metal level M2 connects up.VDD and VSSM reduce so seek resistance by the vertical main line (VDDM2, VSSMM2) of concatenate rule owing to connect up globally at power supply area.In Fig. 4, only illustrate one respectively, but the voltage drop during for the electric current of requirements such as operating rate that internal logic circuit will be provided is controlled in the setting, rule and suitably being configured.Configuration is called as the layout of the such basic circuit of negative circuit (INV), NAND circuit (NAND), NOR circuit (NOR), the trigger (FF) of standard block in power supply area.Power switch PSW is formed by drain side diffusion layer DINV, grid G ATE1, source-side diffusion layer SINV.PSW is formed by NMOS usually.DINV is connected by the contact with VSSMM1, and SINV is connected by the contact with new ground connection VSS.That suitable with Vd node among Fig. 1 is VSSM, and that corresponding with the Vs node is VSS.Usually, thus VSS, VSSM because to be connected impedance low with the vertical main line of rule.Therefore, the test point of Vd, Vs in VSS, VSSM, have respectively 1 just much of that.On the other hand, the benefit that multi-point sampler point is set is to absorb a small amount of voltage error that produces in the power supply area.
Generally, the grid oxidation film of power switch forms thicklyer than the standard block in the power supply area.During disconnecting power switch GATE1 is set at low level (0V), during the energized switch GATE1 is set at high level (1.5V).Thus, control the annexation of illusory ground connection VSSM and new ground connection VSS.
The A-A ' of Fig. 5 presentation graphs 4, the section of B-B '.
The section of the A-A ' of (a) presentation graphs 4 of Fig. 5.Be by being formed on N type trap (Nwell) on the P type substrate (Psub), being formed on the 3 heavy well structures that the P type trap (PW1, Pwell) on the Nwell constitutes.Power switch is the N channel type MOS transistor that is formed at PW1.Form the PMOS of a part that is equivalent to the standard block in the power supply area across element Disengagement zone (ST1).GP, DP, SP are equivalent to grid, drain electrode, source electrode respectively.
The section of B-B ' in (b) presentation graphs 4 of Fig. 5.Said identical with the front, be 3 heavy well structures, the structure of power switch is also identical.Across ST1 formation is the NMOS that is equivalent to the part of standard block.GN, DN, SN are equivalent to grid, drain electrode, source electrode respectively.
According to above-mentioned example, can obtain following action effect.
(1) in the aggregate SoC of the circuit block of cutting apart by function, can under the normal operating conditions of chip, estimate, measure and analyze each circuit block institute consumed current value.In addition,, can feed back, thereby can improve the fiduciary level of chip chip controls based on the current value of measuring.
(2) because the conducting resistance of power switch PSW1 is less, so voltage is 10mV between the Vd-Vs in the expectation actual chips, signal intensity is less, but near the circuit block that amplifier Amp1~AmpN is arranged on correspondence, shorten as far as possible from power switch to the length of the signal transmission path of its corresponding amplifier Amp1~AmpN, even then sneak into a little noise, also can carry out current with high accuracy and measure.
(3) when the electric current that continues in circuit block more than the standard of flowing through, the thermal value of chip will increase, and the fiduciary level of chip will be reduced, and therefore, the electric current of the circuit block when measuring operate as normal as described above will help to improve the fiduciary level of chip.In addition, because the electric current of each circuit block can measure operate as normal the time, so evaluation analysis chip easily.
Fig. 7 represents other structure example of major part among the above-mentioned SoC.
The maximum differential of structure shown in Figure 7 and structure shown in Figure 1 is, has omitted traffic pilot MUX, utilizes the direct control amplifier Ampc1~AmpcN of control line SIG by controller CTL2, thereby has omitted traffic pilot MUX this point.For example, in the time will making Ampc1 work, the SIG that only will be input to Ampc1 is taken as high level, other control lines SIG is taken as low level gets final product.
The structure example of amplifier Ampc1 in Fig. 8 presentation graphs 7.Other amplifier architectures are identical.
Be imported into amplifier from Vd, Out1, the Out2 of Vs voltage signal of power supply area Area1 output, this is with shown in Figure 2 identical.In addition, the structure of amplifier body AMP is with shown in Figure 2 identical.In structure shown in Figure 7, newly-increased between the power supply VCC of amplifier and ground connection power switch (PSWAD, PSWAS) is set, and is provided with the switch (SW1) of amplifier.For example when having selected Area1, signal wire SIG1 is a high level, n channel type MOS transistor PSWAD, PSWAS conducting, and pair amplifier AMP provide power supply.In addition this moment, switch SW 1 is connected, and the output signal of amplifier AMP is exported from lead-out terminal AoutX.On the other hand, signal wire SIG1 is a low level, and n channel type MOS transistor PSWAD, PSWAS end, and pair amplifier AMP does not provide power supply.In addition, switch SW 1 disconnects, and prevents that neutral signal from outputing to lead-out terminal AoutX.
According to such structure, the state of the amplifier AMP work that is connected with measured power supply area appears having only, can suppress other amplifier institute consumed current, can realize that therefore the power consumption among the SoC reduces.
Fig. 9 represents other structure example of major part among the above-mentioned SoC.
The maximum differential of structure shown in Figure 9 and structure shown in Figure 1 is, replace amplifier among Fig. 1 be provided with voltage frequency conversioning circuit VFC1, VFC2 ..., VFCN, cut down the needed analog circuit area this point of each power supply area.From each voltage frequency conversioning circuit VFC1, VFC2 ..., VFCN output signal Aoutf1, Aoutf2, this signal is optionally offered frequency-voltage conversion circuit FVC by the traffic pilot MUX2 of back level.The work of multipath conversion MUX2 is controlled by controller CTL3.Voltage frequency conversioning circuit VFC1, VFC2 ..., VFCN vibrates with the voltage correspondent frequency that is transfused to respectively.Frequency-voltage conversion circuit FVC is converted into voltage according to the frequency of the signal of being imported.The output voltage of frequency-voltage conversion circuit FVC is provided for the DSP2 of back level.
During working voltage freq converting circuit VFC, the signal of importing from each power supply area is 3 systems.Promptly from the voltage level signal Out3 of hot side power vd D and two end signal Out4, the Out5 of power switch PSW1.Need the reason of voltage level signal Out3 to be, under the small voltage of degree between Vd-Vs, do not work as the characteristic of voltage frequency conversioning circuit.The Signal Processing mode of these 3 systems will be explained below.
Figure 10 represents the structure example of above-mentioned voltage frequency conversioning circuit VFC1.The structure of the voltage frequency conversioning circuit of other power supply areas is also identical.
Above-mentioned voltage frequency conversioning circuit VFC1 has 2 ring oscillators.This ring oscillator is formed by connecting by odd number phase inverter INV.Known this ring oscillator is to vibrate with the roughly proportional frequency of difference of supply voltage that is provided (source potential of p channel type MOS transistor) and ground voltage (source potential of n channel type MOS transistor).Therefore, hot side power vd D and node Vd voltage, hot side power vd D and node Vs voltage as input, are converted to frequency output with separately voltage difference.Finally, calculate the voltage difference of Vd-Vs, thereby obtain the electric current that flows into power switch PSW1 from its difference on the frequency.
The input of higher level's ring oscillator is Out3 (VDD), Out4 (Vd) among Figure 10, and the input of subordinate's ring oscillator is Out3 (VDD), Out5 (Vs) among Figure 10.To the waveform of Aoutf1~Aoutf2 output to vibrate with the roughly proportional frequency of voltage difference separately.From the signal of voltage frequency conversioning circuit VFC1 output is the oscillator signal of ring oscillator, even therefore sneak into noise a little, also because little and can carry out current with high accuracy and measure to the influence of this frequency.Output Aoutf1~Aoutf2 is imported into frequency-voltage conversion circuit FVC via traffic pilot MUX2.
Figure 11 represents the structure example of said frequencies voltage conversion circuit FVC.
In said frequencies voltage conversion circuit FVC, signal Aoutf1, the Aoutf2 that is imported is converted to the voltage that depends on frequency by the frequency-voltage conversion circuit FVCC of inside.In addition, these voltages are converted to electric current by the amplifier AMP of back level, and further the AD converter ADC by the back level is converted to digital signal.That is, the signal that outputs to DSPin1 is the information of voltage between VDD-Vd, and the information that outputs to DSPin2 is the information of voltage between VDD-Vs.Digital signal processor DSP 2 is according to the voltage between these information calculations Vd-Vs, and is later on identical with situation shown in Figure 1, calculates the current value of the power switch that flows into measured object.
According to said structure, can form the VFC circuit that is provided with each power supply area by enough standard blocks, can reduce area of chip.In addition, the information of exporting from VFC is frequency, therefore is not subject to The noise, can carry out current with high accuracy and measure.
Figure 12 represents other structure example of major part among the above-mentioned SoC.
The maximum differential of structure shown in Figure 12 and structure shown in Figure 1 is, utilizes regulator Reg1 to carry out the power supply of the circuit block C1 of each power supply area is provided, and carries out the current measurement this point of circuit block C1 by this regulator Reg1.When using regulator, use the supply voltage VCC higher than the hot side supply voltage VDD of logical circuit.
Figure 13 represents the structure example of the regulator of power supply area Area1.The controller structure of other power supply areas is identical.
Regulator Reg1 is coupled to form by reference voltage generating circuit VREFC, operational amplifier OPAmp, p channel type MOS transistor MP3.Operational amplifier OPAmp work makes the output voltage of node Vrs and reference voltage generating circuit VREFC equate.For example, when Vrs was lower than reference value, the voltage that operational amplifier OPAmp output is lower will make the voltage of node Vrs get back to reference value.Provide stable power to circuit block C1 thus.When SoC at the chip operation state acute variation has taken place (when especially resetting), circuit can delay work because of the voltage drop that chip internal takes place sometimes.Different therewith, if use regulator Reg1 then can alleviate such problem.For the electric current that flows into circuit block C1, measuring the electric current that flows into p channel type MOS transistor MP3 gets final product, identical with the situation of power switch shown in Figure 1, drain side node voltage (Vrd), the source side node voltage (Vrs) with p channel type MOS transistor MP3 outputs to Out6, Out7 respectively.This output is transferred to amplifier Ampn1~AmpnN, is converted to electric current there.
Figure 14 represents the structure example of above-mentioned amplifier Ampn1.The structure of other amplifiers is identical.
The maximum differential of structure shown in Figure 14 and structure shown in Figure 2 is to import the structure of elementary source follower SF2.From signal Out6, the Out7 of each power supply area output is value near high-voltage power supply, therefore, except with as shown in Figure 2 SF1 like that by the p channel type MOS transistor constitute different, the later circuit structure of this source follower SF2, circuit working etc. are with shown in Figure 2 identical.
Can power switch PSW1 be set at each power supply area.In addition, be provided with regulator Reg1 and power switch PSW1 the two the time, also can use any one party to carry out the current measurement of circuit block C1.
Figure 16 represents the major part of the SIC (semiconductor integrated circuit) of second embodiment of the invention.In the present embodiment, record serves as to trigger the mechanism that chip controls is fed back with the current value of measuring in chip.It is that the maximum current of chip is suppressed to certain below the value that the purpose of feedback for example has temperature with chip.SIC (semiconductor integrated circuit) rises to certain in temperature and is worth when above, and the ruined probability of function improves.In addition, the exothermic character that also encapsulated sometimes of the thermal value of chip, the restriction of environment for use.Based on such reason, the temperature control of implementing chip is extremely important.Below, illustrate by the electric current in the measured chip maximum current of chip is controlled to be the following mechanism of certain value.
The SoC of system comprises explorer RM, CPU1, CPU2, functional block FB1, FB2, timer TMR, RAM, ROM, bus arbiter ARB, interruptable controller INTA, efficient testing circuit 14, efficient counter PPC, the CLK of clock frequency control portion, internal bus BUS, power switch 28, amplifier Amp and current measurement circuit CD in the sheet.Explorer RM comprises instruction decoder DEC, control part CTL, the CWM of current management portion, the TSKM of task management portion and interruptable controller INTC.Current measurement circuit CD for example as above-mentioned embodiment shown in Figure 1 comprises traffic pilot MUX1, controller CTL1, analog-digital converter ADC1, read only memory ROM 1, digital signal processor DSP 1.In the present embodiment, CPU1, CPU2, FB1, FB2 are separately positioned on single power supply area.
Figure 17 represents the signal of the maximum current control of second embodiment of the invention.The transverse axis express time, the longitudinal axis is represented current value.Functional block FB0, FB1, FB2 represent with the rectangle of processing time and electric current respectively.Processing separately is provided with closing time (deadline).At this, in order simply to be made as the identical time.Current value is represented with the aggregate value of the functional block under certain time.Chip current is represented with the total area of rectangle.(a) be the situation that does not have maximum current management, therefore functional block FB0, FB1, FB2 carry out lowest high-current value simultaneously and are the aggregate value of electric current separately, bigger.(b) be the situation of having carried out, begin to postpone, they are not carried out simultaneously with functional block FB0, therefore can reduce lowest high-current value by the execution that makes functional block FB1, FB2 based on the maximum current control that postpones.This carries out beginning by control and realizes to meet determined electric current budget, closing time.(c) be the situation of carrying out maximum current control by controlled frequency, by make functional block FB0, FB1, FB2 all with low clock frequency work meeting electric current budget, closing time, thereby reduce lowest high-current value.(b), (c) will further reduce the electric current budget, just can not satisfy closing time.Therefore, control so that electric current budget and closing time all are met.Satisfy the processing of closing time, because therefore the processing that was through with is called real-time processing before wanting seeking time.
Figure 18 represents by reducing clock frequency the maximum current of chip to be controlled to be the process flow diagram of certain value when following.Below describe this process flow diagram in detail.TMR interrupts to the INTC of explorer RM notice at interval with the preset time of counting ms etc.Accept the explorer RM that interrupts, obtained the current value that flows into CPU1, CPU2, FB1, each circuit block of FB2 from CD.Simultaneously, the TSKM in the explorer RM, the mission bit stream of renewal cpu function piece, assurance is which task is which functional unit carrying out.In addition, obtain the task progress degree of each circuit block from efficient counter PPC.Then, explorer RM calculates the summation I_sum of the current value that flows into each circuit block.At this moment, preestablished the lowest high-current value I_max that chip is allowed at the CWM of current management portion.The value of the lowest high-current value that will allow smaller or equal to chip is set at I_max.As I_sum during, wait for interruption once more from TMR less than I_max.As I_sum during greater than I_max, according to the task progress degree of each circuit block that obtains from PPC with by TSKM managerial role information, choosing then 1 above task progress degree has more than needed and just at the circuit block of the low task of execution priority.Explorer RM sends the signal of the clock frequency that reduces the circuit block of selecting to the CLK of clock frequency control portion.Then, the CLK of clock frequency control portion reduces the clock frequency that offers the circuit block of selecting.As a result, the current value that flows into chip reduces, and the temperature that can suppress chip rises, and improves the fiduciary level of SIC (semiconductor integrated circuit).As I_sum during less than I_max, can increase clock frequency, task is handled at short notice finished.
Below understand the invention that the present inventor carries out specifically, but the invention is not restricted to this, obviously in the scope that does not break away from its purport, can carry out all changes.
Illustrated mainly that in the above description the invention that the present inventor is carried out is applied to become the situation of SoC of the application of its background, but the invention is not restricted to this, can be widely used in various SIC (semiconductor integrated circuit).