MemConfig.py (10066:06a33d872798) MemConfig.py (10136:ba1ed063e3af)
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

--- 154 unchanged lines hidden (view full) ---

163 if issubclass(cls, m5.objects.SimpleDRAM):
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
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

--- 154 unchanged lines hidden (view full) ---

163 if issubclass(cls, m5.objects.SimpleDRAM):
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 == 'RaBaChCo':
171 if ctrl.addr_mapping.value == 'RoRaBaChCo':
172 # This computation only really needs to happen
173 # once, but as we rely on having an instance we
174 # end up having to repeat it for each and every
175 # one
176 rowbuffer_size = ctrl.device_rowbuffer_size.value * \
177 ctrl.devices_per_rank.value
178
179 intlv_low_bit = int(math.log(rowbuffer_size, 2)) - 1

--- 15 unchanged lines hidden ---
172 # This computation only really needs to happen
173 # once, but as we rely on having an instance we
174 # end up having to repeat it for each and every
175 # one
176 rowbuffer_size = ctrl.device_rowbuffer_size.value * \
177 ctrl.devices_per_rank.value
178
179 intlv_low_bit = int(math.log(rowbuffer_size, 2)) - 1

--- 15 unchanged lines hidden ---