From c26911013c799d63dfe854de8cce11137324cde2 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 19 Aug 2013 03:52:34 -0400 Subject: 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. --- configs/common/Options.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configs/common/Options.py') 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)") -- cgit v1.2.3