sweep.py (11125:f918d72dbc02) | sweep.py (11223:2981e399c816) |
---|---|
1# Copyright (c) 2014-2015 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 --- 80 unchanged lines hidden (view full) --- 89 voltage_domain = 90 VoltageDomain(voltage = '1V')) 91 92# we are fine with 256 MB memory for now 93mem_range = AddrRange('256MB') 94system.mem_ranges = [mem_range] 95 96# do not worry about reserving space for the backing store | 1# Copyright (c) 2014-2015 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 --- 80 unchanged lines hidden (view full) --- 89 voltage_domain = 90 VoltageDomain(voltage = '1V')) 91 92# we are fine with 256 MB memory for now 93mem_range = AddrRange('256MB') 94system.mem_ranges = [mem_range] 95 96# do not worry about reserving space for the backing store |
97mmap_using_noreserve = True | 97system.mmap_using_noreserve = True |
98 99# force a single channel to match the assumptions in the DRAM traffic 100# generator 101options.mem_channels = 1 102options.external_memory_system = 0 103options.tlm_memory = 0 104MemConfig.config_mem(options, system) 105 --- 34 unchanged lines hidden (view full) --- 140burst_size = int((system.mem_ctrls[0].devices_per_rank.value * 141 system.mem_ctrls[0].device_bus_width.value * 142 system.mem_ctrls[0].burst_length.value) / 8) 143 144# next, get the page size in bytes 145page_size = system.mem_ctrls[0].devices_per_rank.value * \ 146 system.mem_ctrls[0].device_rowbuffer_size.value 147 | 98 99# force a single channel to match the assumptions in the DRAM traffic 100# generator 101options.mem_channels = 1 102options.external_memory_system = 0 103options.tlm_memory = 0 104MemConfig.config_mem(options, system) 105 --- 34 unchanged lines hidden (view full) --- 140burst_size = int((system.mem_ctrls[0].devices_per_rank.value * 141 system.mem_ctrls[0].device_bus_width.value * 142 system.mem_ctrls[0].burst_length.value) / 8) 143 144# next, get the page size in bytes 145page_size = system.mem_ctrls[0].devices_per_rank.value * \ 146 system.mem_ctrls[0].device_rowbuffer_size.value 147 |
148# match the maximum bandwidth of the memory, the parameter is in ns 149# and we need it in ticks | 148# match the maximum bandwidth of the memory, the parameter is in seconds 149# and we need it in ticks (ps) |
150itt = system.mem_ctrls[0].tBURST.value * 1000000000000 151 152# assume we start at 0 153max_addr = mem_range.end 154 155# use min of the page size and 512 bytes as that should be more than 156# enough 157max_stride = min(512, page_size) --- 50 unchanged lines hidden --- | 150itt = system.mem_ctrls[0].tBURST.value * 1000000000000 151 152# assume we start at 0 153max_addr = mem_range.end 154 155# use min of the page size and 512 bytes as that should be more than 156# enough 157max_stride = min(512, page_size) --- 50 unchanged lines hidden --- |