cpu: Add frequency scaling to the Trace CPU
authorRadhika Jagtap <radhika.jagtap@arm.com>
Thu, 15 Sep 2016 17:01:09 +0000 (18:01 +0100)
committerRadhika Jagtap <radhika.jagtap@arm.com>
Thu, 15 Sep 2016 17:01:09 +0000 (18:01 +0100)
commitd7724d5f542b3ffcb1de05bc2960c820c7b96c85
tree4c20416e4fe1af9cf023621d4f510d4068959b7d
parentfb349aa984daf39831cde68611bd196057cb1b48
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>
src/cpu/trace/TraceCPU.py
src/cpu/trace/trace_cpu.cc
src/cpu/trace/trace_cpu.hh