diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-08-19 03:52:34 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-08-19 03:52:34 -0400 |
commit | c26911013c799d63dfe854de8cce11137324cde2 (patch) | |
tree | 78146c1582a62407565da5b2bac34581b021015f /configs/common/Options.py | |
parent | 49d88f08b0ff463bca04285dca240b3730889a1d (diff) | |
download | gem5-c26911013c799d63dfe854de8cce11137324cde2.tar.xz |
config: Command line support for multi-channel memory
This patch adds support for specifying multi-channel memory
configurations on the command line, e.g. 'se/fs.py
--mem-type=ddr3_1600_x64 --mem-channels=4'. To enable this, it
enhances the functionality of MemConfig and moves the existing
makeMultiChannel class method from SimpleDRAM to the support scripts.
The se/fs.py example scripts are updated to make use of the new
feature.
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 73def510c..6431d460f 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -88,6 +88,8 @@ def addCommonOptions(parser): parser.add_option("--mem-type", type="choice", default="simple_mem", choices=MemConfig.mem_names(), help = "type of memory to use") + parser.add_option("--mem-channels", type="int", default=1, + help = "number of memory channels") parser.add_option("--mem-size", action="store", type="string", default="512MB", help="Specify the physical memory size (single memory)") |