CN102043697A - System unit energy consumption simulation method based on clock cycle precision - Google Patents

System unit energy consumption simulation method based on clock cycle precision Download PDF

Info

Publication number
CN102043697A
CN102043697A CN2010102407029A CN201010240702A CN102043697A CN 102043697 A CN102043697 A CN 102043697A CN 2010102407029 A CN2010102407029 A CN 2010102407029A CN 201010240702 A CN201010240702 A CN 201010240702A CN 102043697 A CN102043697 A CN 102043697A
Authority
CN
China
Prior art keywords
energy consumption
cycle
state
read
lcd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010102407029A
Other languages
Chinese (zh)
Inventor
赵霞
郭耀
陈向群
赵敬峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Original Assignee
Peking University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University filed Critical Peking University
Priority to CN2010102407029A priority Critical patent/CN102043697A/en
Publication of CN102043697A publication Critical patent/CN102043697A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a system unit energy consumption simulation method based on clock cycle precision, belonging to the field of low energy consumption design of an embedded system. The method provided by the invention mainly comprises following steps of: A. configuring the performance and energy consumption parameters of system units in an embedded system; B. simulating execution of an operating system and application programs; C. updating power consumption states of the related system units; D. according to current states and operation characteristics of the system units, simulating the energy consumption of the system units in this cycle; E. mapping the system unit energy consumption based on clock precision to instructed system unit energy consumption; F. accumulating the instructed system unit energy consumption contained in a process to obtain the total energy consumption of all the units in the process. The system unit energy consumption simulation method based on clock cycle precision provided by the invention has a high precision and a good serviceability.

Description

A kind of system unit simulation of energy consumption method of clock period precision
Technical field
The invention belongs to embedded system low power design field, be specifically related to a kind of system unit simulation of energy consumption method of clock period precision.
Background technology
How to cut down the consumption of energy and become one of major issue that Embedded System Design faces.Current research reaches the purpose that reduces the embedded system energy consumption by introduce various low-power consumption optimisation strategy in design of hardware and software.In order to assess the quality of the optimisation strategy in various hardware or the software systems, need a kind of effective means to estimate the energy consumption of embedded system.Current, for the simulation of energy consumption technology of flush bonding processor comparative maturity, can obtain enough accurate simulation results.Along with peripheral hardware kind, function and complexity increase, processor shared energy consumption ratio in embedded system reduces gradually.Therefore, need and effectively to simulate other system parts energy consumption.Yet the simulation of energy consumption technology of other system parts is ripe not enough, and precision is lower, and availability is relatively poor.
Summary of the invention
In the method, the system unit energy consumption model of employing clock period precision is simulated the system unit energy consumption (comprising: internal memory, IO controller, FLASH storage, the network equipment, LCD, audio frequency apparatus etc.) except that processor.The clock period precision is called for short the cycle precision, is meant with the processor clock cycle to be unit, and system unit cycle energy consumption is mapped to corresponding processor in the cycle, thereby to obtain with the processor cycle be the simulation of energy consumption result of time granularity.In the method, adopt system simulator Simulation execution operating system and application program, the intercepting and capturing program is to the visit of system unit, accurately simulate the energy consumption of the system unit except that processor according to the system unit energy consumption model of cycle precision, and be mapped on instruction and the process, finally obtain the energy consumption on each system unit in the process implementation.
Specifically, the system unit simulation of energy consumption method that the present invention is directed to the clock period precision of embedded system comprises the following steps (flow process is as shown in Figure 1):
A. the performance and the energy consumption parameter of configure system components (comprising internal memory, IO controller, LCD, FLASH storage, the network equipment);
1. the consumption information of allocate memory comprises: access cycle, the power consumption under free time, reading and writing state;
2. the consumption information of configuration IO controller comprises: the power consumption under free time, the active state;
3. the consumption information of collocating LCD comprises: gray scale (span [0-1]), area backlight (span [0-1]), LCD power consumption and the power consumption under high-high brightness backlight;
4. dispose the FLASH canned data.Comprise the time that the operation of reading and writing unit data is carried out in the FLASH storage, FLASH is stored in the consumption information (as: average power consumption under the WRITE state is 100mW) under the various power consumption states.
5. the consumption information of configure network devices comprises: read or write speed, the power consumption under idle, activity, reading and writing state;
B. system simulator Simulation execution operating system and application program, each instruction of Simulation execution, and obtain the process name and the process ID of current operation process, implementation method is as follows:
1. get finger, obtain next bar instruction according to PC (programmable counter);
2. decoding is decoded to instruction, obtains the type of instruction;
3. carry out, the function of Simulation execution instruction is revised system state (as: PC value);
4. obtain the process name and the process ID of current operation process;
C. in the function of the simulation system component function of system simulator,, upgrade the power consumption state of related system parts according to the function of the instruction of the functional unit of current execution; Implementation method is as follows:
1. updating memory state.If present instruction is non-memory-reference instruction, and the CACHE inefficacy did not take place in this cycle, then internal memory is in idle condition; If the CACHE inefficacy took place in this cycle, and the memory access address belongs to region of memory, and internal memory begins to carry out read operation, and then internal memory is in read states; If the CACHE inefficacy took place in this cycle, and the memory access address belongs to region of memory, and internal memory begins to carry out write operation, and then internal memory is in the state of writing;
2. upgrade the IO controller state.If instruction access IO controller is arranged, then the IO controller is an active state; Otherwise be idle condition;
3. upgrade the LCD state.If the LCD control register has been revised in present instruction, changed the state of LCD, then upgrade the LCD state, free time, activity are arranged, close three states; If the control register of LCD is not revised in present instruction, then the state of LCD is identical with the state in last cycle;
4. upgrade the FLASH store status.If there is instruction to read the FLASH storage, then FLASH is stored as read states; If there is instruction to write the FLASH storage, then FLASH is stored as the state of writing; If not access instruction, or do not have the Cache disappearance, then FLASH is stored as idle condition;
5. new network device state more.If do not carry out on the network equipment that reading and writing are operated then the network equipment is in idle condition; If there is instruction to read the network equipment, then the network equipment is in read states; If there is instruction to write the network equipment, then the network equipment is in the state of writing; If the instruction unpack network equipment is arranged, then the network equipment is in active state; If there is instruction to close the network equipment, then the network equipment is in closed condition;
D. when the present instruction of system simulator Simulation execution, according to the current state of system unit and operating characteristics (data length, required clock periodicity), the clock period energy consumption of system units such as emulated memory, IO controller, LCD, FLASH storage, the network equipment.Implementation method is as follows:
1. according to the internal storage state of current period (read states, write state, idle condition) and the service data length of internal memory, required clock periodicity, simulate this cycle internal memory energy consumption.The internal storage state transition diagram as shown in Figure 2, the specific implementation method is as follows:
If a) internal memory is in idle condition, the energy consumption in this cycle of internal memory is E Mem=P Mem_IDLE* T CycleDescribed P Mem_IDLEBe the average power consumption of internal memory idle condition, T CycleIt is the time (this variable implication hereinafter is all identical) of a clock period.
B) if internal memory is carried out read operation, then the energy consumption of this cycle read operation is E MEM_OP=P MEM_READ* T CycleRead operation needs N altogether FIRST+ N SND* (L-1) individual clock period; Described P MEM_READIt is the average power consumption of internal memory read operation; N FIRSTBe to read the required processor periodicity in first unit; N SNDBe to read the required processor periodicity in follow-up unit; L is the data length of reading;
C) if internal memory is carried out write operation, then the energy consumption of this cycle write operation is E MEM_OP=P MEM_WRITE* T CycleWrite operation needs N altogether FIRST+ N SND* (L-1) individual clock period; Described P MEM_WRITEIt is the average power consumption of internal memory write operation;
2. according to IO controller state (idle condition, active state) the Simulation with I O controller energy consumption of current period.Its state exchange as shown in Figure 3, implementation method is:
If a) the IO controller is in idle condition, the energy consumption in this cycle is E IO=P IO_IDLE* T CycleDescribed P IO_ IDLEAverage power consumption for idle condition;
B) if the IO controller is in active state, the energy consumption in this cycle is E IO=P IO_ACTIVE* T CycleDescribed P IO_ACTIVEAverage power consumption for active state.
3. according to the LCD state (closed condition, active state) of current period and viewing area and the brightness of LCD, simulate the LCD energy consumption.Its state exchange as shown in Figure 4, implementation method is:
A) if closed condition, then the energy consumption in this cycle of LCD is 0;
B) if idle condition, then the energy consumption in this cycle of LCD is E LCD=P LCD* T CycleDescribed P LCDAverage power consumption for idle condition;
C) if active state, then the energy consumption in this cycle of LCD is E LCD=(P LCD+ P Bg_max* * T level/max_level*area/max_area) CycleDescribed P Bg_maxAverage power consumption under the high-high brightness; Level is a LCD backlight illumination rank, and max_level is a LCD high-high brightness rank backlight; Area is a LCD viewing area size; Max_area is the maximum viewing area of LCD;
4. according to the FLASH store status of current period (read states, write state, idle condition), and service data length, required processor clock cycle number, simulate this cycle FLASH storage energy consumption.FLASH store status transition diagram as shown in Figure 2, the specific implementation method is as follows:
If a) the FLASH storage is in idle condition, the energy consumption that FLASH stored in this cycle is E FLASH=P FLASH_IDLE* T CycleDescribed P FLASH_IDLEBe the average power consumption of FLASH storage idle condition, T CycleIt is the time (this variable implication hereinafter is all identical) of a clock period.
B) if read operation is carried out in the FLASH storage, then the energy consumption of this cycle read operation is E FLASH_OP=P FLASH_READ* T CycleRead operation needs N altogether FIRST+ N SND* (L-1) individual clock period; Described P FLASH_READIt is the average power consumption of FLASH storage read operation; N FIRSTBe to read the required processor periodicity in first unit; N SNDBe to read the required processor periodicity in follow-up unit; L is the data length of read operation;
C) if write operation is carried out in the FLASH storage, then the energy consumption of this cycle write operation is E FLASH_OP=P FLASH_WRITE* T CycleWrite operation needs N altogether FIRST+ N SND* (L-1) individual clock period; Described P FLASH_WRITEIt is the average power consumption of FLASH storage write operation;
5. according to the network equipment state of current period (read states, write state, idle condition, active state, closed condition), and operate required processor clock cycle number, analog network equipment energy consumption.Its state exchange as shown in Figure 5, implementation method is:
A) if closed condition, then the energy consumption in this cycle is 0;
B) if be in idle condition, then this cycle energy consumption is E Net=P Net_idle* T CycleDescribed P Net_idleAverage power consumption for idle condition;
C) if active state, then the energy consumption in this cycle is E Net=P Net_active* T CycleDescribed P Net_activeAverage power consumption for active state;
D) if carrying out read operation, then this cycle energy consumption is E Net=P Net_read* T Cycle, and the periodicity that the network equipment is carried out read operation subtracted 1; Described P Net_readAverage power consumption for read states; Described network operation periodicity is
Figure BDA0000023872370000051
L is the data total length that need read, L Per_opBe the data length of a read operation, T Per_opIt is the time of a read operation;
E) if carrying out write operation, then this cycle energy consumption is E Net=P Net_write* T Cycle, and the periodicity that the network equipment is carried out write operation subtracted 1; Described P Net_writeFor writing the average power consumption of state; Described network operation periodicity is
Figure BDA0000023872370000052
L is the data total length that need write, L Per_opBe the data length of a write operation, T Per_opIt is the time of a write operation;
E. in each cycle of system simulator Simulation execution instruction, the clock accuracy energy consumption of system unit is mapped as the system unit energy consumption of instruction.Implementation method is as follows:
1. the system unit energy consumption of the instruction of initiating system parts read-write operation is the total energy consumption of this operation: E Inst=E Cycle* N OpDescribed N OpBe the required processor clock cycle number of this operation;
2. the system unit energy consumption of the instruction of non-initiating system parts read-write operation is: E Inst=E Cycle* CPI; Described CPI is every instruction cycles (CPI, Cycle Per Instruction), can be obtained according to architecture parameter simulation and calculating by the processor simulator of energy consumption, also can obtain according to the empirical value that real system is measured;
F. each system unit energy consumption of the instruction that process ID comprised is accumulated on each system unit total energy consumption variable of this process ID, as this process each system unit total energy consumption in the process of implementation.Implementation method is as follows:
1. accumulative total internal memory total energy consumption is:
Figure BDA0000023872370000053
Described E iBe the energy consumption of internal memory i bar instruction, n is total instruction number (down together) of the program of this process ID correspondence;
2. accumulative total IO controller total energy consumption is:
Figure BDA0000023872370000054
Described E iBe the energy consumption of IO controller in the instruction of i bar;
3. accumulative total LCD total energy consumption is:
Figure BDA0000023872370000055
Described E iBe the energy consumption of LCD in the instruction of i bar;
4. accumulative total FLASH storage total energy consumption is:
Figure BDA0000023872370000061
Described E iIt is the energy consumption that FLASH stores the instruction of i bar;
5. accumulative total network equipment total energy consumption is: Described E iBe the energy consumption of the network equipment in the instruction of i bar.
Beneficial effect of the present invention: the system unit simulation of energy consumption method of the clock period precision that the present invention proposes has higher precision and good usability.
Description of drawings
Fig. 1: method flow diagram of the present invention;
Fig. 2: internal memory/FLASH state transition graph;
Fig. 3: IO controller state transition diagram;
Fig. 4: LCD state transition graph;
Fig. 5: network equipment state transition graph.
Embodiment
The present invention will be further described below by example.It should be noted that the purpose of publicizing and implementing example is to help further to understand the present invention, but it will be appreciated by those skilled in the art that: in the spirit and scope that do not break away from the present invention and claims, various substitutions and modifications all are possible.Therefore, the present invention should not be limited to the disclosed content of embodiment, and the scope of protection of present invention is as the criterion with the scope that claims define.
Embodiment: with PDA is the system unit simulation of energy consumption except that CPU of goal systems:
Present embodiment is that a system unit simulator of energy consumption towards embedded system has been realized on the basis with the improved instruction-level total system simulator Ex-Skyeye that increases income, with IPAQ H3630PDA is that goal systems has been carried out the hardware information customization to simulator, and to move four kinds of different sort algorithms as Application Instance.
Present embodiment comprises following operation: be goal systems configure system components information with IPAQ H3630 1); 2) Ex-Skyeye Simulation execution program, simulation system parts energy consumption; 3) energy consumption of emulated memory and FLASH, IO controller, LCD, the network equipment; 4) energy consumption of system unit in the Ex-Skyeye accumulative total program process.Concrete steps are as follows:
1. be goal systems configure system components information with IPAQ H3630:
A) consumption information of allocate memory and FLASH, as table 1:
Title SDRAM FlashRom
First?Acc(ns) 30 100
Burst?Acc(ns) 15 50
Read?P(mw) 1584 480
Write?P(mw) 1584 -
Idle?P(mw) 66 0.168
Size(MB) 32 16
Table 1:FLASH hardware parameter
B) consumption information of configuration IO controller, as table 2:
Title SA-1111
Idle(mW) 0.165
Active(mW) 165
Table 2:IO controller hardware parameter
C) consumption information of configure network devices (do not have the network equipment in the IPAQ H3630 system,, added the network equipment) to it in order to simulate the embedded system of network enabled device, as table 3:
Title Wireless network card
Sleep(mw) 16
Idle(mw) 100
R(mw) 330
T(mw) 990
Table 3: network device hardware parameter
D) consumption information of configuration IO controller, as table 4:
Title LCD
on(mw) 74
BackL(mw) 460
Max_level 1
area/total 1
Table 4:LCD hardware parameter
Each system unit hardware parameter example of table 4:IPAQ H3630
2.Ex-Skyeye Simulation execution program.Concrete steps are as follows:
A) Ex-Skyeye reads in Arm-Linux kernel reflection (Arm-Linux 2.6.20), beginning Simulation execution Arm-Linux kernel;
B) after the Arm-Linux kernel starts successfully, start the sort algorithm application program (bubblesort bubble sort, insertsort inserts ordering, mergesort merge sort, quicksort quicksort) that to simulate by shell-command;
C) Ex-Skyeye Simulation execution application program, the process name and the process ID of current operation process are obtained in monitoring process switching activity and newly-built process activity;
3.Ex-Skyeye simulation system parts energy consumption (function described in the step is the function of realizing the system unit functional simulation among the Ex-Skyeye).Concrete steps are as follows:
A) to monitor the process name of current operation process identical with the process name of destination application for Ex-Skyeye, then opens the simulation of energy consumption switch, beginning simulation system parts energy consumption;
B) energy consumption of Ex-Skyeye emulated memory/FLASH storage (both are similar);
If Ex-Skyeye has carried out the ram_read function, the I/O controller has been carried out read operation, is in read states in this cycle, calculates its energy consumption under read states; Calculate internal memory/FLASH storage and be in the periodicity n read states under, and n thereafter is in the cycle, internal memory/FLASH stores and is in read states always; If Ex-Skyeye has carried out the ram_write function, the I/O controller has been carried out write operation, is in read states in this cycle, calculates it in the energy consumption of writing under the state; Calculate internal memory/FLASH storage and be in the periodicity n the state of writing under, and n thereafter is in the cycle, internal memory/FLASH stores the state of writing that always is in; If Ex-Skyeye does not carry out above-mentioned function, internal memory/FLASH storage is in idle condition, calculates its energy consumption under idle condition.
C) energy consumption of Ex-Skyeye Simulation with I O controller;
If Ex-Skyeye has carried out io_read function or io_write function, illustrate that then the I/O controller is in active state in this cycle, calculate its energy consumption under active state; If Ex-Skyeye does not carry out above-mentioned function, the IO controller is in idle condition, calculates its energy consumption under idle condition.
D) energy consumption of Ex-Skyeye simulation LCD;
After Ex-Skyeye has carried out lcd_s3c2410_setup () function, the residing state of LCD is set for idle, calculating LCD is in the energy consumption under the idle condition;
When Ex-Skyeye has carried out lcd_s3c2410_update () function, lcd_s3c2410_read_word () function, behind lcd_s3c2410_write_word () function and the s3c2410_changed () function, the state that LCD is set is for movable, and calculating LCD is in the energy consumption under the active state.
E) energy consumption of Ex-Skyeye analog network equipment;
After Ex-Skyeye has carried out net_cs8900a_setup () function, the network equipment is set is in idle condition, computational grid equipment is in the energy consumption under the idle condition;
After Ex-Skyeye has carried out net_cs8900a_update () function, the network equipment is set is in active state, the energy consumption of computational grid equipment under active state; Computational grid equipment is in the periodicity n of this state, and n thereafter is in the cycle, and the network equipment is in active state always;
After Ex-Skyeye has carried out cs8900a_input () function, the network equipment is set is in read states, the energy consumption of computational grid equipment under read states; Computational grid equipment is in the periodicity n of this state, and n thereafter is in the cycle, and the network equipment is in read states always;
After Ex-Skyeye has carried out cs8900a_output () function, the network equipment is set is in the state of writing, computational grid equipment is in the energy consumption of writing under the state; Computational grid equipment is in the periodicity n of this state, and n thereafter is in the cycle, and the network equipment is in the state of writing always.
4.Ex-Skyeye the energy consumption of system unit in the accumulative total destination application implementation.The result who obtains is as follows:
Energy consumption (mJ) Nei Cun ﹠FLASH LCD Network The IO controller
Bubble sort 8.03 40.89 0.23 1.32
Insert ordering 4.11 18.37 0.1 0.85
Sequencing by merging 1.83 6.09 0.034 0.85
Quicksort 0.98 4.46 0.025 0.56
Table 5: the energy consumption of each system unit tabulation under four kinds of sort methods

Claims (10)

1. a system unit simulation of energy consumption method that is applied to the clock period precision of embedded system is characterized in that, may further comprise the steps:
A) performance of configure system components and energy consumption parameter, described system unit comprise internal memory, IO controller, LCD, FLASH storage, the network equipment;
B) system simulator Simulation execution operating system and application program, each instruction of Simulation execution, and obtain the process name and the process ID of current operation process;
C) in the function of the simulation system component function of system simulator,, upgrade the power consumption state of related system parts according to the function of the instruction of the functional unit of current execution;
D) when the present instruction of system simulator Simulation execution, according to the current state and the operating characteristics of system unit, the clock period energy consumption of system units such as emulated memory, IO controller, LCD, FLASH storage, the network equipment;
E), the clock accuracy energy consumption of system unit is mapped as the system unit energy consumption of instruction in each cycle of system simulator Simulation execution instruction;
F) each system unit energy consumption of the instruction that process ID comprised is accumulated on each system unit total energy consumption variable of this process ID, as this process each system unit total energy consumption in the process of implementation.
2. the method for claim 1 is characterized in that, configurable energy consumption parameter is as follows in the described steps A:
A1. the consumption information of internal memory comprises: access cycle, the power consumption under free time, reading and writing state;
The consumption information of A2.IO controller comprises: the power consumption under free time, the active state;
The consumption information of A3.LCD comprises: gray scale, area backlight, LCD power consumption and the power consumption under high-high brightness backlight;
The canned data of A4.FLASH comprises: the time that the operation of reading and writing unit data is carried out in the FLASH storage, FLASH is stored in the consumption information under the various power consumption states;
A5. the consumption information of the network equipment comprises: read or write speed, the power consumption under idle, activity, reading and writing state.
3. method as claimed in claim 2 is characterized in that, the implementation method of described step C is:
C1. updating memory state: if present instruction is non-memory-reference instruction, and CACHE did not take place in this cycle lost efficacy, then internal memory is in idle condition; If the CACHE inefficacy took place in this cycle, and the memory access address belongs to region of memory, and internal memory begins to carry out read operation, and then internal memory is in read states; If the CACHE inefficacy took place in this cycle, and the memory access address belongs to region of memory, and internal memory begins to carry out write operation, and then internal memory is in the state of writing;
C2. upgrade the IO controller state: if instruction access IO controller is arranged, then the IO controller is an active state; Otherwise be idle condition;
C3. upgrade the LCD state: if the LCD control register has been revised in present instruction, changed the state of LCD, then upgraded the LCD state, free time, activity have been arranged, close three states; If the control register of LCD is not revised in present instruction, then the state of LCD is identical with the state in last cycle;
C4. upgrade the FLASH store status: if there is instruction to read the FLASH storage, then FLASH is stored as read states; If there is instruction to write the FLASH storage, then FLASH is stored as the state of writing; If not access instruction, or do not have the Cache disappearance, then FLASH is stored as idle condition;
C5. new network device state more: if do not carry out on the network equipment that reading and writing are operated then the network equipment is in idle condition; If there is instruction to read the network equipment, then the network equipment is in read states; If there is instruction to write the network equipment, then the network equipment is in the state of writing; If the instruction unpack network equipment is arranged, then the network equipment is in active state; If there is instruction to close the network equipment, then the network equipment is in closed condition.
4. method as claimed in claim 3 is characterized in that, among the described step D, internal storage state is divided into three kinds: read states, write state, idle condition; Simulate the internal memory energy consumption in this cycle according to the internal storage state of current period and the service data length of internal memory, required clock periodicity, its implementation is:
If a) internal memory is in idle condition, the energy consumption in this cycle of internal memory is E Mem=P Mem_IDLE* T CycleDescribed P Mem_IDLEBe the average power consumption of internal memory idle condition, T CycleIt is the time of a clock period;
B) if internal memory is carried out read operation, then the energy consumption of this cycle read operation is E MEM_OP=P MEM_READ* T CycleRead operation needs N altogether FIRST+ N SND* (L-1) individual clock period; Described P MEM_READIt is the average power consumption of internal memory read operation; N FIRSTBe to read the required processor periodicity in first unit; N SNDBe to read the required processor periodicity in follow-up unit; L is the data length of read operation;
C) if internal memory is carried out write operation, then the energy consumption of this cycle write operation is E MEM_OP=P MEM_WRITE* T CycleWrite operation needs N altogether FIRST+ N SND* (L-1) individual clock period; Described P MEM_WRITEIt is the average power consumption of internal memory write operation.
5. method as claimed in claim 4 is characterized in that, among the described step D, the IO controller state is divided into two kinds: idle condition, active state; According to the IO controller state Simulation with I O energy consumption of current period, its implementation is:
If a) the IO controller is in idle condition, the energy consumption in this cycle is E IO=P IO_IDLE* T CycleDescribed P IO_IDLEAverage power consumption for idle condition;
B) if the IO controller is in active state, the energy consumption in this cycle is E IO=P IO_ACTIVE* T CycleDescribed P IO_ACTIVEAverage power consumption for active state.
6. method as claimed in claim 5 is characterized in that, among the described step D, the LCD state is divided into two kinds: idle condition, active state; Simulate the LCD energy consumption according to the LCD state of current period and viewing area and the brightness of LCD, its implementation is:
A) if closed condition, then the energy consumption in this cycle of LCD is 0;
B) if idle condition, then the energy consumption in this cycle of LCD is E LCD=P LCD* T CycleDescribed P LCDAverage power consumption for idle condition;
C) if active state, then the energy consumption in this cycle of LCD is E LCD=(P LCD+ P Bg_max* * T level/max_level*area/max_area) CycleDescribed P Bg_maxAverage power consumption under the high-high brightness; Level is a LCD backlight illumination rank, and max_level is a LCD high-high brightness rank backlight; Area is a LCD viewing area size; Max_area is the maximum viewing area of LCD.
7. method as claimed in claim 6 is characterized in that, among the described step D, the state of FLASH storage is divided into three kinds: read states, write state, idle condition; According to the FLASH store status of current period and service data length, required processor clock cycle number, simulate this cycle FLASH storage energy consumption, its implementation is as follows:
If a) the FLASH storage is in idle condition, the energy consumption that FLASH stored in this cycle is
E FLASH=P FLASH_IDLE* T CycleDescribed P FLASH_IDLEBe the average power consumption of FLASH storage idle condition, T CycleIt is the time of a clock period;
B) if read operation is carried out in the FLASH storage, then the energy consumption of this cycle read operation is E FLASH_OP=P FLASH_READ* T CycleRead operation needs N altogether FIRST+ N SND* (L-1) individual clock period;
Described P FLASH_READIt is the average power consumption of FLASH storage read operation; N FIRSTBe to read the required processor periodicity in first unit; N SNDBe to read the required processor periodicity in follow-up unit; L is the data length of read operation;
C) if write operation is carried out in the FLASH storage, the energy consumption of this cycle write operation is E FLASH_OP=P FLASH_WRITE* T CycleWrite operation needs N altogether FIRST+ N SND* (L-1) individual clock period; Described P FLASH_WRITEIt is the average power consumption of FLASH storage write operation.
8. method as claimed in claim 7 is characterized in that, among the described step D, network equipment state is divided into five kinds: read states, write state, idle condition, active state, closed condition; According to the network equipment state of current period and operate required processor clock cycle digital-to-analogue and intend network equipment energy consumption, its implementation is:
A) if closed condition, then the energy consumption in this cycle is 0;
B) if be in idle condition, then this cycle energy consumption is E Net=P Net_idle* T CycleDescribed P Net_idleAverage power consumption for idle condition;
C) if active state, then the energy consumption in this cycle is E Net=P Net_active* T CycleDescribed P Net_activeAverage power consumption for active state;
D) if carrying out read operation, then this cycle energy consumption is E Net=P Net_read* T Cycle, and the periodicity that the network equipment is carried out read operation subtracted 1; Described P Net_readAverage power consumption for read states; Described network operation periodicity is
Figure FDA0000023872360000041
L is the data total length that need read, L Per_opBe the data length of a read operation, T Per_opIt is the time of a read operation;
E) if carrying out write operation, then this cycle energy consumption is E Net=P Net_write* T Cycle, and the periodicity that the network equipment is carried out write operation subtracted 1; Described P Net_writeFor writing the average power consumption of state, described network operation periodicity is
Figure FDA0000023872360000042
L is the data total length that need write, L Per_opBe the data length of a write operation, T Per_opIt is the time of a write operation.
9. method as claimed in claim 8 is characterized in that, the implementation method of described step e is:
A) the system unit energy consumption of the instruction of initiating system parts read-write operation is the total energy consumption of this operation:
E Inst=E Cycle* N OpDescribed N OpBe the required processor clock cycle number of this operation;
B) the system unit energy consumption of the instruction of non-initiating system parts read-write operation is: E Inst=E Cycle* CPI; Described CPI is every instruction cycles, and this value is obtained according to architecture parameter simulation and calculating by the processor simulator of energy consumption, and perhaps the empirical value of measuring according to real system obtains.
10. method as claimed in claim 9 is characterized in that, the implementation method of described step F is:
F1. adding up the internal memory total energy consumption is: Described E iBe the internal memory energy consumption in i cycle, n is the processor clock cycle sum in the program process;
F2. adding up IO controller total energy consumption is:
Figure FDA0000023872360000051
Described E iBe the energy consumption of IO controller i cycle;
F3. adding up the LCD total energy consumption is:
Figure FDA0000023872360000052
Described E iBe the energy consumption of LCD i cycle;
F4. adding up FLASH storage total energy consumption is:
Figure FDA0000023872360000053
Described E iIt is the energy consumption that FLASH stores i cycle;
F5. adding up network equipment total energy consumption is:
Figure FDA0000023872360000054
Described E iBe the energy consumption of the network equipment i cycle.
CN2010102407029A 2010-07-29 2010-07-29 System unit energy consumption simulation method based on clock cycle precision Pending CN102043697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102407029A CN102043697A (en) 2010-07-29 2010-07-29 System unit energy consumption simulation method based on clock cycle precision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102407029A CN102043697A (en) 2010-07-29 2010-07-29 System unit energy consumption simulation method based on clock cycle precision

Publications (1)

Publication Number Publication Date
CN102043697A true CN102043697A (en) 2011-05-04

Family

ID=43909849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102407029A Pending CN102043697A (en) 2010-07-29 2010-07-29 System unit energy consumption simulation method based on clock cycle precision

Country Status (1)

Country Link
CN (1) CN102043697A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404575A (en) * 2015-10-27 2016-03-16 国网智能电网研究院 Energy consumption measurement method and apparatus for application in mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1766848A (en) * 2005-11-08 2006-05-03 北京大学 Method for estimating power consumption when embedded software running based on simulator
US20090144595A1 (en) * 2007-11-30 2009-06-04 Mathstar, Inc. Built-in self-testing (bist) of field programmable object arrays
CN101710254A (en) * 2009-12-22 2010-05-19 重庆大学 Embedded system energy consumption management method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1766848A (en) * 2005-11-08 2006-05-03 北京大学 Method for estimating power consumption when embedded software running based on simulator
US20090144595A1 (en) * 2007-11-30 2009-06-04 Mathstar, Inc. Built-in self-testing (bist) of field programmable object arrays
CN101710254A (en) * 2009-12-22 2010-05-19 重庆大学 Embedded system energy consumption management method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《电子学报》 20080229 赵霞等 基于模拟器的嵌入式操作系统能耗估算与分析 209-214 1-10 第36卷, 第2期 *
赵敬锋: "面向嵌入式系统的全系统能耗模拟工具的设计与实现", 《北京大学硕士研究生学位论文》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404575A (en) * 2015-10-27 2016-03-16 国网智能电网研究院 Energy consumption measurement method and apparatus for application in mobile terminal

Similar Documents

Publication Publication Date Title
US11042297B2 (en) Techniques to configure a solid state drive to operate in a storage mode or a memory mode
CN104246651B (en) Dynamic power limit value in platform is shared
CN102057344A (en) Sleep processor
CN103064792A (en) Method and device for writing data
CN103092810A (en) Processor with programmable virtual ports
US20090171646A1 (en) Method for estimating power consumption
CN112306623A (en) Processing method and device for deep learning task and computer readable storage medium
CN110750359B (en) Hardware resource configuration method and device, cloud side equipment and storage medium
CN100377086C (en) Method for realizing operating procedure directly from file system in embedded system
Ouyang et al. Active SSD design for energy-efficiency improvement of web-scale data analysis
Marszałkowski et al. Time and energy performance of parallel systems with hierarchical memory
TW200619926A (en) Partition area architecture of an operation system common used disk and the method thereof
CN109521970B (en) Data processing method and related equipment
CN104516929A (en) Method and device for file system
CN107436839B (en) Process load acquisition method, electronic terminal and computer readable storage medium
CN102231119A (en) Full-system energy consumption simulation method and system facing to embedded system
CN102567079A (en) Parallel program energy consumption simulation estimating method based on progressive trace update
CN108133005B (en) Environment model simulation method based on memory database, terminal equipment and storage medium
Celebican et al. Energy estimation of peripheral devices in embedded systems
CN102043697A (en) System unit energy consumption simulation method based on clock cycle precision
US8886512B2 (en) Simulation apparatus, computer-readable recording medium, and method
CN204667684U (en) A kind of teaching type ARM development board based on LM3S8962 chip
CN114995770B (en) Data processing method, device, equipment, system and readable storage medium
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
KR102175999B1 (en) I/o completion methods in computer system and computer systems therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110504