sweep.py (10139:45d16673b95a) | sweep.py (10146:27dfed4c8403) |
---|---|
1# Copyright (c) 2014 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 --- 72 unchanged lines hidden (view full) --- 81 82# force a single channel to match the assumptions in the DRAM traffic 83# generator 84options.mem_channels = 1 85MemConfig.config_mem(options, system) 86 87# the following assumes that we are using the native DRAM 88# controller, check to be sure | 1# Copyright (c) 2014 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 --- 72 unchanged lines hidden (view full) --- 81 82# force a single channel to match the assumptions in the DRAM traffic 83# generator 84options.mem_channels = 1 85MemConfig.config_mem(options, system) 86 87# the following assumes that we are using the native DRAM 88# controller, check to be sure |
89if not isinstance(system.mem_ctrls[0], m5.objects.SimpleDRAM): 90 fatal("This script assumes the memory is a SimpleDRAM subclass") | 89if not isinstance(system.mem_ctrls[0], m5.objects.DRAMCtrl): 90 fatal("This script assumes the memory is a DRAMCtrl subclass") |
91 92# for now the generator assumes a single rank 93system.mem_ctrls[0].ranks_per_channel = 1 94 95# stay in each state for 0.25 ms, long enough to warm things up, and 96# short enough to avoid hitting a refresh 97period = 250000000 98 --- 72 unchanged lines hidden --- | 91 92# for now the generator assumes a single rank 93system.mem_ctrls[0].ranks_per_channel = 1 94 95# stay in each state for 0.25 ms, long enough to warm things up, and 96# short enough to avoid hitting a refresh 97period = 250000000 98 --- 72 unchanged lines hidden --- |