def main(): parser = argparse.ArgumentParser( description="Generic ARM big.LITTLE configuration with "\ "example power models") bL.addOptions(parser) options = parser.parse_args() if options.cpu_type != "timing": m5.fatal("The power example script requires 'timing' CPUs.") root = bL.build(options) # Wire up some example power models to the CPUs for cpu in root.system.descendants(): if not isinstance(cpu, m5.objects.BaseCPU): continue cpu.default_p_state = "ON" cpu.power_model = CpuPowerModel() bL.instantiate(options) print "*" * 70 print "WARNING: The power numbers generated by this script are " \ "examples. They are not representative of any particular " \ "implementation or process." print "*" * 70 # Dumping stats periodically m5.stats.periodicStatDump(m5.ticks.fromSeconds(0.1E-3)) bL.run()
def main(): parser = argparse.ArgumentParser( description="Generic ARM big.LITTLE configuration with "\ "example power models") bL.addOptions(parser) options = parser.parse_args() if options.cpu_type != "timing": m5.fatal("The power example script requires 'timing' CPUs.") root = bL.build(options) # Wire up some example power models to the CPUs for cpu in root.system.descendants(): if not isinstance(cpu, m5.objects.BaseCPU): continue cpu.default_p_state = "ON" cpu.power_model = CpuPowerModel(options.arm_sve_vl) bL.instantiate(options) print("*" * 70) print("WARNING: The power numbers generated by this script are " "examples. They are not representative of any particular " "implementation or process.") print("*" * 70) # Dumping stats periodically m5.stats.periodicStatDump(m5.ticks.fromSeconds(0.1E-3)) bL.run()
def main(): parser = argparse.ArgumentParser( description="Generic ARM big.LITTLE configuration with "\ "dist-gem5 support") bL.addOptions(parser) addOptions(parser) options = parser.parse_args() if options.is_switch: root = Root(full_system=True, system=sw.build_switch(options)) else: root = bL.build(options) addEthernet(root.system, options) bL.instantiate(options, checkpoint_dir=options.checkpoint_dir) bL.run(options.checkpoint_dir)
def main(): parser = argparse.ArgumentParser( description="Generic ARM big.LITTLE configuration with "\ "dist-gem5 support") bL.addOptions(parser) addOptions(parser) options = parser.parse_args() if options.is_switch: root = Root(full_system = True, system = sw.build_switch(options)) else: root = bL.build(options) addEthernet(root.system, options) bL.instantiate(options, checkpoint_dir=options.checkpoint_dir) bL.run(options.checkpoint_dir)