diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2014-12-23 09:31:18 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2014-12-23 09:31:18 -0500 |
commit | 59460b91f35efe24a99424c0018d2f9c002e50c8 (patch) | |
tree | 3371fdc57dd5a032ff4b5fa4b4d51b796b8e71cd /configs/common/Options.py | |
parent | 2f7baf9dbe7fd2cd716885adacf508a5b89e9eb8 (diff) | |
download | gem5-59460b91f35efe24a99424c0018d2f9c002e50c8.tar.xz |
config: Expose the DRAM ranks as a command-line option
This patch gives the user direct influence over the number of DRAM
ranks to make it easier to tune the memory density without affecting
the bandwidth (previously the only means of scaling the device count
was through the number of channels).
The patch also adds some basic sanity checks to ensure that the number
of ranks is a power of two (since we rely on bit slices in the address
decoding).
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r-- | configs/common/Options.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py index f81e69a61..ea3de8691 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -90,6 +90,8 @@ def addCommonOptions(parser): help = "type of memory to use") parser.add_option("--mem-channels", type="int", default=1, help = "number of memory channels") + parser.add_option("--mem-ranks", type="int", default=None, + help = "number of memory ranks per channel") parser.add_option("--mem-size", action="store", type="string", default="512MB", help="Specify the physical memory size (single memory)") |