fs_power.py (11973:aa43e508ade4) | fs_power.py (12564:2778478ca882) |
---|---|
1# Copyright (c) 2017 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 25 unchanged lines hidden (view full) --- 34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35# 36# Authors: Andreas Sandberg 37# Stephan Diestelhorst 38 39# This configuration file extends the example ARM big.LITTLE(tm) 40# with example power models. 41 | 1# Copyright (c) 2017 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 25 unchanged lines hidden (view full) --- 34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35# 36# Authors: Andreas Sandberg 37# Stephan Diestelhorst 38 39# This configuration file extends the example ARM big.LITTLE(tm) 40# with example power models. 41 |
42from __future__ import print_function 43 |
|
42import argparse 43import os 44 45import m5 46from m5.objects import MathExprPowerModel, PowerModel 47 48import fs_bigLITTLE as bL 49 --- 35 unchanged lines hidden (view full) --- 85 if not isinstance(cpu, m5.objects.BaseCPU): 86 continue 87 88 cpu.default_p_state = "ON" 89 cpu.power_model = CpuPowerModel() 90 91 bL.instantiate(options) 92 | 44import argparse 45import os 46 47import m5 48from m5.objects import MathExprPowerModel, PowerModel 49 50import fs_bigLITTLE as bL 51 --- 35 unchanged lines hidden (view full) --- 87 if not isinstance(cpu, m5.objects.BaseCPU): 88 continue 89 90 cpu.default_p_state = "ON" 91 cpu.power_model = CpuPowerModel() 92 93 bL.instantiate(options) 94 |
93 print "*" * 70 94 print "WARNING: The power numbers generated by this script are " \ 95 "examples. They are not representative of any particular " \ 96 "implementation or process." 97 print "*" * 70 | 95 print("*" * 70) 96 print("WARNING: The power numbers generated by this script are " 97 "examples. They are not representative of any particular " 98 "implementation or process.") 99 print("*" * 70) |
98 99 # Dumping stats periodically 100 m5.stats.periodicStatDump(m5.ticks.fromSeconds(0.1E-3)) 101 bL.run() 102 103 104if __name__ == "__m5_main__": 105 main() | 100 101 # Dumping stats periodically 102 m5.stats.periodicStatDump(m5.ticks.fromSeconds(0.1E-3)) 103 bL.run() 104 105 106if __name__ == "__m5_main__": 107 main() |