summaryrefslogtreecommitdiff
path: root/ext/drampower/src/MemorySpecification.h
diff options
context:
space:
mode:
authorMatthias Jung <jungma@eit.uni-kl.de>2016-07-01 10:31:36 -0500
committerMatthias Jung <jungma@eit.uni-kl.de>2016-07-01 10:31:36 -0500
commit86e9a6ffecbeb1ba743c71786e934cf290bab7ff (patch)
tree8b114edcc523409f6b2cb33b9ae910cea2ca4e5a /ext/drampower/src/MemorySpecification.h
parent137e244bda708e27882aa8b2f13d47cfd17e9d97 (diff)
downloadgem5-86e9a6ffecbeb1ba743c71786e934cf290bab7ff.tar.xz
ext: Update DRAMPower
Sync DRAMPower to external tool This patch syncs the DRAMPower library of gem5 to the external one on github (https://github.com/ravenrd/DRAMPower) of which I am a maintainer. The version used is the commit: 902a00a1797c48a9df97ec88868f20e847680ae6 from 07. May. 2016. Committed by Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'ext/drampower/src/MemorySpecification.h')
-rw-r--r--ext/drampower/src/MemorySpecification.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/drampower/src/MemorySpecification.h b/ext/drampower/src/MemorySpecification.h
index 149d41c28..16d77ef86 100644
--- a/ext/drampower/src/MemorySpecification.h
+++ b/ext/drampower/src/MemorySpecification.h
@@ -106,7 +106,8 @@ class MemoryType {
return val == LPDDR ||
val == LPDDR2 ||
val == LPDDR3 ||
- val == WIDEIO_SDR;
+ val == WIDEIO_SDR ||
+ val == DDR4;
}
bool isDDRFamily() const
@@ -132,9 +133,11 @@ class MemoryType {
double getCapacitance() const
{
- // LPDDR/2/3 and DDR memories only have IO Power (no ODT)
- // Conservative estimates based on Micron Mobile LPDDR2 Power Calculator
- // LPDDR/2/3 IO Capacitance in mF
+ // LPDDR1/2 memories only have IO Power (no ODT)
+ // LPDDR3 has optional ODT, but it is typically not used (reflections are elimitated by other means (layout))
+ // The capacitance values are conservative and based on Micron Mobile LPDDR2 Power Calculator
+
+ // LPDDR/2/3 IO Capacitance in mF
if (val == LPDDR) {
return 0.0000000045;
} else if (val == LPDDR2) {