summaryrefslogtreecommitdiff
path: root/src/cpu/thread_state.hh
diff options
context:
space:
mode:
authorNeha Agarwal <neha.agarwal@arm.com>2014-03-23 11:11:58 -0400
committerNeha Agarwal <neha.agarwal@arm.com>2014-03-23 11:11:58 -0400
commit364a51181ea4fb09ee24f5a57eb293744075b326 (patch)
tree71e076ca860a5b53971ee294c6d8444e755412e2 /src/cpu/thread_state.hh
parent43abaf518f00c38415e08b7c96941d192316208f (diff)
downloadgem5-364a51181ea4fb09ee24f5a57eb293744075b326.tar.xz
cpu: DRAM Traffic Generator
This patch enables a new 'DRAM' mode to the existing traffic generator, catered to generate specific requests to DRAM based on required hit length (stride size) and bank utilization. It is an add on to the Random mode. The basic idea is to control how many successive packets target the same page, and how many banks are being used in parallel. This gives a two-dimensional space that stresses different aspects of the DRAM timing. The configuration file needed to use this patch has to be changed as follow: (reference to Random Mode, LPDDR3 memory type) 'STATE 0 10000000000 RANDOM 50 0 134217728 64 3004 5002 0' -> 'STATE 0 10000000000 DRAM 50 0 134217728 32 3004 5002 0 96 1024 8 6 1' The last 4 parameters to be added are: <stride size (bytes), page size(bytes), number of banks available in DRAM, number of banks to be utilized, address mapping scheme> The address mapping information is used to get the stride address stream of the specified size and to know where to find the bank bits. The configuration file has a parameter where '0'-> RoCoRaBaCh, '1'-> RoRaBaCoCh/RoRaBaChCo address-mapping schemes. Note that the generator currently assumes a single channel and a single rank. This is to avoid overwhelming the traffic generator with information about the memory organisation.
Diffstat (limited to 'src/cpu/thread_state.hh')
0 files changed, 0 insertions, 0 deletions