MemConfig.py (10136:ba1ed063e3af) | MemConfig.py (10146:27dfed4c8403) |
---|---|
1# Copyright (c) 2013 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 --- 146 unchanged lines hidden (view full) --- 155 # address mapping in the case of a DRAM 156 for r in system.mem_ranges: 157 for i in xrange(nbr_mem_ctrls): 158 # Create an instance so we can figure out the address 159 # mapping and row-buffer size 160 ctrl = cls() 161 162 # Only do this for DRAMs | 1# Copyright (c) 2013 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 --- 146 unchanged lines hidden (view full) --- 155 # address mapping in the case of a DRAM 156 for r in system.mem_ranges: 157 for i in xrange(nbr_mem_ctrls): 158 # Create an instance so we can figure out the address 159 # mapping and row-buffer size 160 ctrl = cls() 161 162 # Only do this for DRAMs |
163 if issubclass(cls, m5.objects.SimpleDRAM): | 163 if issubclass(cls, m5.objects.DRAMCtrl): |
164 # Inform each controller how many channels to account 165 # for 166 ctrl.channels = nbr_mem_ctrls 167 168 # If the channel bits are appearing after the column 169 # bits, we need to add the appropriate number of bits 170 # for the row buffer size 171 if ctrl.addr_mapping.value == 'RoRaBaChCo': --- 23 unchanged lines hidden --- | 164 # Inform each controller how many channels to account 165 # for 166 ctrl.channels = nbr_mem_ctrls 167 168 # If the channel bits are appearing after the column 169 # bits, we need to add the appropriate number of bits 170 # for the row buffer size 171 if ctrl.addr_mapping.value == 'RoRaBaChCo': --- 23 unchanged lines hidden --- |