dram-lowp.py (12268:54566b73dc61) dram-lowp.py (13619:44b5224b2ff4)
1# Copyright (c) 2017 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

--- 36 unchanged lines hidden (view full) ---

45# For some reason, this is implicitly needed by run.py
46root = None
47
48import m5
49
50def run_test(root):
51 # Called from tests/run.py
52
1# Copyright (c) 2017 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

--- 36 unchanged lines hidden (view full) ---

45# For some reason, this is implicitly needed by run.py
46root = None
47
48import m5
49
50def run_test(root):
51 # Called from tests/run.py
52
53 # Set the working directory in case we are executing from
54 # outside gem5's source tree
55 import os
56 os.chdir(os.path.join(os.path.dirname(__file__), "../"))
57
58 # The path to this script is the only parameter. Delete it so
59 # we can execute the script that we want to execute.
60 import sys
53 import sys
61 del sys.argv[1:]
54 argv = [
55 sys.argv[0],
56 # Add a specific page policy and specify the number of ranks
57 '-p%s' % page_policy,
58 '-r 2',
59 ]
62
60
63 # Add a specific page policy and specify the number of ranks
64 sys.argv.append('-p%s' % page_policy)
65 sys.argv.append('-r 2')
66
67 # Execute the script we are wrapping
61 # Execute the script we are wrapping
68 execfile(srcpath('configs/dram/low_power_sweep.py'), globals())
62 run_config('configs/dram/low_power_sweep.py', argv=argv)