summaryrefslogtreecommitdiff
path: root/configs/dram/sweep.py
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2018-04-27 18:57:01 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2018-07-13 09:26:23 +0000
commita4be6388b1f25a1aa11a9d24488270f052c4d9dd (patch)
tree8a5a76456035ac1a19f5ca65c9a36fd34fe8b75f /configs/dram/sweep.py
parent672953ef43f8559bd1ac1f8cb5dba9b997ca0ec9 (diff)
downloadgem5-a4be6388b1f25a1aa11a9d24488270f052c4d9dd.tar.xz
cpu: Add a Python-enabled traffic generator
The current traffic generator relies on a configuration file that describes a small machine to generate stimuli. This configuration file is usually generated by the gem5 Python configuration. This creates an unnecessary and fragile step. This changeset introduces a Python-based trace module. When instantiated, the module exposes a start method that takes an iterable object as a parameter (e.g., a generator). The iterable object is expected to represent a list of generators that will be run one after the other. For example: system.tgen = PyTrafficGen() m5.instantiate() def trace(): yield system.tgen.createIdle(1000) yield system.tgen.createExit(0) system.tgen.start(trace()) Change-Id: I58e60ca517e86c197859f4daaa67750066abdc1c Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/11518 Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'configs/dram/sweep.py')
0 files changed, 0 insertions, 0 deletions