diff options
author | Omar Naji <Omar.Naji@arm.com> | 2014-12-02 06:07:32 -0500 |
---|---|---|
committer | Omar Naji <Omar.Naji@arm.com> | 2014-12-02 06:07:32 -0500 |
commit | 0e63d2cd62bbab47a5b05b9b5bee8c1dc0da1683 (patch) | |
tree | c106a4688df46a98be372dcf857e35b4ddfd22ac /src/mem/drampower.cc | |
parent | b0aa5a326da8489583d055b4876f534b6fc23626 (diff) | |
download | gem5-0e63d2cd62bbab47a5b05b9b5bee8c1dc0da1683.tar.xz |
mem: Add a GDDR5 DRAM config
This patch adds a first cut GDDR5 config to accommodate the users
combining gem5 and GPUSim. The config is based on a SK Hynix
datasheet, and the Nvidia GTX580 specification. Someone from the
GPUSim user-camp should tweak the default page-policy and static
frontend and backend latencies.
Diffstat (limited to 'src/mem/drampower.cc')
-rw-r--r-- | src/mem/drampower.cc | 5 |
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; } |