summaryrefslogtreecommitdiff
path: root/src/mem/dram_ctrl.hh
diff options
context:
space:
mode:
authorOmar Naji <Omar.Naji@arm.com>2014-10-20 18:03:52 -0400
committerOmar Naji <Omar.Naji@arm.com>2014-10-20 18:03:52 -0400
commit29dd2887f4e1c2ee7689f912c705552afaac4d03 (patch)
treef54c1d931e92ac574a7ca76c0a774cea5a6482f0 /src/mem/dram_ctrl.hh
parentd2a0f60b69313ad869f81fb006c8e998e40cb3c1 (diff)
downloadgem5-29dd2887f4e1c2ee7689f912c705552afaac4d03.tar.xz
mem: Add DRAM device size and check against config
This patch adds the size of the DRAM device to the DRAM config. It also compares the actual DRAM size (calculated using information from the config) to the size defined in the system. If these two values do not match gem5 will print a warning. In order to do correct DRAM research the size of the memory defined in the system should match the size of the DRAM in the config. The timing and current parameters found in the DRAM configs are defined for a DRAM device with a specific size and would differ for another device with a different size.
Diffstat (limited to 'src/mem/dram_ctrl.hh')
-rw-r--r--src/mem/dram_ctrl.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/dram_ctrl.hh b/src/mem/dram_ctrl.hh
index cb2197841..0c4e53ca1 100644
--- a/src/mem/dram_ctrl.hh
+++ b/src/mem/dram_ctrl.hh
@@ -463,6 +463,7 @@ class DRAMCtrl : public AbstractMemory
* The rowsPerBank is determined based on the capacity, number of
* ranks and banks, the burst size, and the row buffer size.
*/
+ const uint32_t deviceSize;
const uint32_t deviceBusWidth;
const uint32_t burstLength;
const uint32_t deviceRowBufferSize;