summaryrefslogtreecommitdiff
path: root/src/cpu/trace/TraceCPU.py
diff options
context:
space:
mode:
authorRadhika Jagtap <radhika.jagtap@arm.com>2016-09-15 18:01:09 +0100
committerRadhika Jagtap <radhika.jagtap@arm.com>2016-09-15 18:01:09 +0100
commitd7724d5f542b3ffcb1de05bc2960c820c7b96c85 (patch)
tree4c20416e4fe1af9cf023621d4f510d4068959b7d /src/cpu/trace/TraceCPU.py
parentfb349aa984daf39831cde68611bd196057cb1b48 (diff)
downloadgem5-d7724d5f542b3ffcb1de05bc2960c820c7b96c85.tar.xz
cpu: Add frequency scaling to the Trace CPU
This change adds a simple feature to scale the frequency of the Trace CPU. The compute delays in the input traces provide timing. This change adds a freqency multiplier parameter to the Trace CPU set to 1.0 by default. The compute delay is manipulated to effectively achieve the frequency at which the nodes become ready and thus scale the frequency of the Trace CPU. Change-Id: Iaabbd57806941ad56094fcddbeb38fcee1172431 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/cpu/trace/TraceCPU.py')
-rw-r--r--src/cpu/trace/TraceCPU.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cpu/trace/TraceCPU.py b/src/cpu/trace/TraceCPU.py
index e1c02ae63..bbce9c0ad 100644
--- a/src/cpu/trace/TraceCPU.py
+++ b/src/cpu/trace/TraceCPU.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2013 - 2015 ARM Limited
+# Copyright (c) 2013 - 2016 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -69,3 +69,9 @@ class TraceCPU(BaseCPU):
sizeLoadBuffer = Param.Unsigned(16, "Number of entries in the load buffer")
sizeROB = Param.Unsigned(40, "Number of entries in the re-order buffer")
+ # Frequency multiplier used to effectively scale the Trace CPU frequency
+ # either up or down. Note that the Trace CPU's clock domain must also be
+ # changed when frequency is scaled. A default value of 1.0 means the same
+ # frequency as was used for generating the traces.
+ freqMultiplier = Param.Float(1.0, "Multiplier scale the Trace CPU "\
+ "frequency up or down")