摘要 |
A simple and accurate processor derating method includes: sampling a real-time counter/clock too obtain an initial time value T 1 ; resetting an Icnt Counter; incrementing the Icnt Counter to reflect the processing of each instruction; comparing the count in the Icnt Counter to a predetermined count IcntMax and if the count in the Icnt Counter is at least IcntMax, then sampling the RTC to obtain a second time T 2 . T 1 is then subtracted from T 2 to obtain a time difference DT which is multiplied by ((1-1/DF)-1) to obtain a Degradation Delay DD period, DF being a constant having a value which is the desired submodel performance with respect to full performance. The Degradation Delay is instituted, the RTC is sampled from time to time to obtain a test third time T 3 . When a test T 3 minus T 2 is not less than DD, then T 1 is set to T 3 . Then, the procedure is repeated for a next group of instructions. Optionally, further accuracy can be achieved by treating "wait-type" and/or "RTC-access-type" instructions specially and also by calculating a DDExtra period value which is used to adjust the next DD.
|