simulate.py (11362:04966a265ff9) | simulate.py (11418:0aeca8f47eac) |
---|---|
1# Copyright (c) 2012 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 --- 37 unchanged lines hidden (view full) --- 46 47# import the SWIG-wrapped main C++ functions 48import internal 49import core 50import stats 51import SimObject 52import ticks 53import objects | 1# Copyright (c) 2012 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 --- 37 unchanged lines hidden (view full) --- 46 47# import the SWIG-wrapped main C++ functions 48import internal 49import core 50import stats 51import SimObject 52import ticks 53import objects |
54from m5.util.dot_writer import do_dot | 54from m5.util.dot_writer import do_dot, do_dvfs_dot |
55from m5.internal.stats import updateEvents as updateStatEvents 56 57from util import fatal 58from util import attrdict 59 60# define a MaxTick parameter, unsigned 64 bit 61MaxTick = 2**64 - 1 62 --- 58 unchanged lines hidden (view full) --- 121 for obj in root.descendants(): obj.regStats() 122 123 # Do a fourth pass to initialize probe points 124 for obj in root.descendants(): obj.regProbePoints() 125 126 # Do a fifth pass to connect probe listeners 127 for obj in root.descendants(): obj.regProbeListeners() 128 | 55from m5.internal.stats import updateEvents as updateStatEvents 56 57from util import fatal 58from util import attrdict 59 60# define a MaxTick parameter, unsigned 64 bit 61MaxTick = 2**64 - 1 62 --- 58 unchanged lines hidden (view full) --- 121 for obj in root.descendants(): obj.regStats() 122 123 # Do a fourth pass to initialize probe points 124 for obj in root.descendants(): obj.regProbePoints() 125 126 # Do a fifth pass to connect probe listeners 127 for obj in root.descendants(): obj.regProbeListeners() 128 |
129 # We want to generate the DVFS diagram for the system. This can only be 130 # done once all of the CPP objects have been created and initialised so 131 # that we are able to figure out which object belongs to which domain. 132 do_dvfs_dot(root, options.outdir, options.dot_dvfs_config) 133 |
|
129 # We're done registering statistics. Enable the stats package now. 130 stats.enable() 131 132 # Restore checkpoint (if any) 133 if ckpt_dir: 134 _drain_manager.preCheckpointRestore() 135 ckpt = internal.core.getCheckpoint(ckpt_dir) 136 internal.core.unserializeGlobals(ckpt); --- 232 unchanged lines hidden --- | 134 # We're done registering statistics. Enable the stats package now. 135 stats.enable() 136 137 # Restore checkpoint (if any) 138 if ckpt_dir: 139 _drain_manager.preCheckpointRestore() 140 ckpt = internal.core.getCheckpoint(ckpt_dir) 141 internal.core.unserializeGlobals(ckpt); --- 232 unchanged lines hidden --- |