MemConfig.py (12094:81aba95c81f9) | MemConfig.py (12340:a52f6d327259) |
---|---|
1# Copyright (c) 2013, 2017 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 --- 150 unchanged lines hidden (view full) --- 159 # Optional options 160 opt_tlm_memory = getattr(options, "tlm_memory", None) 161 opt_external_memory_system = getattr(options, "external_memory_system", 162 None) 163 opt_elastic_trace_en = getattr(options, "elastic_trace_en", False) 164 opt_mem_ranks = getattr(options, "mem_ranks", None) 165 166 if opt_mem_type == "HMC_2500_1x32": | 1# Copyright (c) 2013, 2017 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 --- 150 unchanged lines hidden (view full) --- 159 # Optional options 160 opt_tlm_memory = getattr(options, "tlm_memory", None) 161 opt_external_memory_system = getattr(options, "external_memory_system", 162 None) 163 opt_elastic_trace_en = getattr(options, "elastic_trace_en", False) 164 opt_mem_ranks = getattr(options, "mem_ranks", None) 165 166 if opt_mem_type == "HMC_2500_1x32": |
167 HMChost = HMC.config_host_hmc(options, system) 168 HMC.config_hmc(options, system, HMChost.hmc_host) | 167 HMChost = HMC.config_hmc_host_ctrl(options, system) 168 HMC.config_hmc_dev(options, system, HMChost.hmc_host) |
169 subsystem = system.hmc_dev 170 xbar = system.hmc_dev.xbar 171 else: 172 subsystem = system 173 xbar = system.membus 174 175 if opt_tlm_memory: 176 system.external_memory = m5.objects.ExternalSlave( --- 52 unchanged lines hidden (view full) --- 229 mem_ctrls.append(mem_ctrl) 230 231 subsystem.mem_ctrls = mem_ctrls 232 233 # Connect the controllers to the membus 234 for i in xrange(len(subsystem.mem_ctrls)): 235 if opt_mem_type == "HMC_2500_1x32": 236 subsystem.mem_ctrls[i].port = xbar[i/4].master | 169 subsystem = system.hmc_dev 170 xbar = system.hmc_dev.xbar 171 else: 172 subsystem = system 173 xbar = system.membus 174 175 if opt_tlm_memory: 176 system.external_memory = m5.objects.ExternalSlave( --- 52 unchanged lines hidden (view full) --- 229 mem_ctrls.append(mem_ctrl) 230 231 subsystem.mem_ctrls = mem_ctrls 232 233 # Connect the controllers to the membus 234 for i in xrange(len(subsystem.mem_ctrls)): 235 if opt_mem_type == "HMC_2500_1x32": 236 subsystem.mem_ctrls[i].port = xbar[i/4].master |
237 # Set memory device size. There is an independent controller for 238 # each vault. All vaults are same size. 239 subsystem.mem_ctrls[i].device_size = options.hmc_dev_vault_size |
|
237 else: 238 subsystem.mem_ctrls[i].port = xbar.master | 240 else: 241 subsystem.mem_ctrls[i].port = xbar.master |