summaryrefslogtreecommitdiff
path: root/src/python/m5/simulate.py
diff options
context:
space:
mode:
authorSascha Bischoff <sascha.bischoff@arm.com>2015-12-15 09:40:56 +0000
committerSascha Bischoff <sascha.bischoff@arm.com>2015-12-15 09:40:56 +0000
commit774350b750a3d34ed55f0846d0cd8f8fc4b3897d (patch)
treefa1df70222e6e34f5b83ec97f590482f844c845a /src/python/m5/simulate.py
parent38a369c473a8c4b53116806fb50797ab73e7442e (diff)
downloadgem5-774350b750a3d34ed55f0846d0cd8f8fc4b3897d.tar.xz
misc: Add secondary dot output for DVFS domains
This patch adds a secondary dot output file which shows the DVFS domains. This has been done separately for now to avoid cluttering the already existing diagram. Due to the way that the clock domains are assigned to components in gem5, this output must be generated after the C++ objects have been instantiated. This further motivates the need to generate this file separately to the current dot output, and not to replace it entirely.
Diffstat (limited to 'src/python/m5/simulate.py')
-rw-r--r--src/python/m5/simulate.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py
index 5d70f4b18..1d7ebeb9d 100644
--- a/src/python/m5/simulate.py
+++ b/src/python/m5/simulate.py
@@ -51,7 +51,7 @@ import stats
import SimObject
import ticks
import objects
-from m5.util.dot_writer import do_dot
+from m5.util.dot_writer import do_dot, do_dvfs_dot
from m5.internal.stats import updateEvents as updateStatEvents
from util import fatal
@@ -126,6 +126,11 @@ def instantiate(ckpt_dir=None):
# Do a fifth pass to connect probe listeners
for obj in root.descendants(): obj.regProbeListeners()
+ # We want to generate the DVFS diagram for the system. This can only be
+ # done once all of the CPP objects have been created and initialised so
+ # that we are able to figure out which object belongs to which domain.
+ do_dvfs_dot(root, options.outdir, options.dot_dvfs_config)
+
# We're done registering statistics. Enable the stats package now.
stats.enable()