Deleted Added
sdiff udiff text old ( 12564:2778478ca882 ) new ( 13022:6c0f747b0c64 )
full compact
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

--- 55 unchanged lines hidden (view full) ---

64class CpuPowerModel(PowerModel):
65 pm = [
66 CpuPowerOn(), # ON
67 CpuPowerOff(), # CLK_GATED
68 CpuPowerOff(), # SRAM_RETENTION
69 CpuPowerOff(), # OFF
70 ]
71
72
73def main():
74 parser = argparse.ArgumentParser(
75 description="Generic ARM big.LITTLE configuration with "\
76 "example power models")
77 bL.addOptions(parser)
78 options = parser.parse_args()
79
80 if options.cpu_type != "timing":

--- 4 unchanged lines hidden (view full) ---

85 # Wire up some example power models to the CPUs
86 for cpu in root.system.descendants():
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
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)
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()