summaryrefslogtreecommitdiff
path: root/src/mem/drampower.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/drampower.cc')
-rw-r--r--src/mem/drampower.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mem/drampower.cc b/src/mem/drampower.cc
index a7339656a..c15379d92 100644
--- a/src/mem/drampower.cc
+++ b/src/mem/drampower.cc
@@ -155,7 +155,8 @@ DRAMPower::getDataRate(const DRAMCtrlParams* p)
{
uint32_t burst_cycles = divCeil(p->tBURST, p->tCK);
uint8_t data_rate = p->burst_length / burst_cycles;
- if (data_rate != 1 && data_rate != 2)
- fatal("Got unexpected data rate %d, should be 1 or 2\n");
+ // 4 for GDDR5
+ if (data_rate != 1 && data_rate != 2 && data_rate != 4)
+ fatal("Got unexpected data rate %d, should be 1 or 2 or 4\n");
return data_rate;
}