summaryrefslogtreecommitdiff
path: root/configs/common/MemConfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'configs/common/MemConfig.py')
-rw-r--r--configs/common/MemConfig.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/configs/common/MemConfig.py b/configs/common/MemConfig.py
index 3605c2144..475bbeb32 100644
--- a/configs/common/MemConfig.py
+++ b/configs/common/MemConfig.py
@@ -164,8 +164,8 @@ def config_mem(options, system):
opt_mem_ranks = getattr(options, "mem_ranks", None)
if opt_mem_type == "HMC_2500_1x32":
- HMChost = HMC.config_host_hmc(options, system)
- HMC.config_hmc(options, system, HMChost.hmc_host)
+ HMChost = HMC.config_hmc_host_ctrl(options, system)
+ HMC.config_hmc_dev(options, system, HMChost.hmc_host)
subsystem = system.hmc_dev
xbar = system.hmc_dev.xbar
else:
@@ -234,5 +234,8 @@ def config_mem(options, system):
for i in xrange(len(subsystem.mem_ctrls)):
if opt_mem_type == "HMC_2500_1x32":
subsystem.mem_ctrls[i].port = xbar[i/4].master
+ # Set memory device size. There is an independent controller for
+ # each vault. All vaults are same size.
+ subsystem.mem_ctrls[i].device_size = options.hmc_dev_vault_size
else:
subsystem.mem_ctrls[i].port = xbar.master