sweep.py (11766:7c95caf53250) sweep.py (11837:17b37f38944a)
1# Copyright (c) 2014-2015 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

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

48
49# this script is helpful to sweep the efficiency of a specific memory
50# controller configuration, by varying the number of banks accessed,
51# and the sequential stride size (how many bytes per activate), and
52# observe what bus utilisation (bandwidth) is achieved
53
54parser = optparse.OptionParser()
55
1# Copyright (c) 2014-2015 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

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

48
49# this script is helpful to sweep the efficiency of a specific memory
50# controller configuration, by varying the number of banks accessed,
51# and the sequential stride size (how many bytes per activate), and
52# observe what bus utilisation (bandwidth) is achieved
53
54parser = optparse.OptionParser()
55
56# Use a single-channel DDR3-1600 x64 by default
57parser.add_option("--mem-type", type="choice", default="DDR3_1600_x64",
56# Use a single-channel DDR3-1600 x64 (8x8 topology) by default
57parser.add_option("--mem-type", type="choice", default="DDR3_1600_8x8",
58 choices=MemConfig.mem_names(),
59 help = "type of memory to use")
60
61parser.add_option("--mem-ranks", "-r", type="int", default=1,
62 help = "Number of ranks to iterate across")
63
64parser.add_option("--rd_perc", type="int", default=100,
65 help = "Percentage of read commands")

--- 143 unchanged lines hidden ---
58 choices=MemConfig.mem_names(),
59 help = "type of memory to use")
60
61parser.add_option("--mem-ranks", "-r", type="int", default=1,
62 help = "Number of ranks to iterate across")
63
64parser.add_option("--rd_perc", type="int", default=100,
65 help = "Percentage of read commands")

--- 143 unchanged lines hidden ---