diff options
| author | Inderpreet Singh <[email protected]> | 2011-08-03 18:09:10 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:18:22 -0700 |
| commit | 9ac6dbe8e9453c8f4ab8965e83a945146891d5be (patch) | |
| tree | 90aebe4428607d349a201a6296d60ee6bc4a3d76 /src/gpgpu-sim/dram.cc | |
| parent | 4bfaab15d64c66b55c5ae22b82cdb901f2073854 (diff) | |
Added read to precharge constraint - negligible effect to DRAM efficiency.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 9929]
Diffstat (limited to 'src/gpgpu-sim/dram.cc')
| -rw-r--r-- | src/gpgpu-sim/dram.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpgpu-sim/dram.cc b/src/gpgpu-sim/dram.cc index b09033f..104ec66 100644 --- a/src/gpgpu-sim/dram.cc +++ b/src/gpgpu-sim/dram.cc @@ -264,6 +264,7 @@ void dram_t::cycle() bk[j]->mrq->txbytes += m_config->BL * m_config->busW * m_config->gpu_n_mem_per_ctrlr; //16 bytes CCDc = m_config->tCCD; RTWc = m_config->tRTW; + bk[j]->RTPc = m_config->BL/2; issued = true; n_rd++; bwutil+= m_config->BL/2; @@ -341,7 +342,7 @@ void dram_t::cycle() if ( (!issued) && (bk[j]->curr_row != bk[j]->mrq->row) && (bk[j]->state == BANK_ACTIVE) && - (!bk[j]->RASc && !bk[j]->WTPc) ) { + (!bk[j]->RASc && !bk[j]->WTPc && !bk[j]->RTPc) ) { // make the bank idle again bk[j]->state = BANK_IDLE; bk[j]->RPc = m_config->tRP; @@ -385,7 +386,8 @@ void dram_t::cycle() DEC2ZERO(bk[j]->RCc); DEC2ZERO(bk[j]->RPc); DEC2ZERO(bk[j]->RCDWRc); - DEC2ZERO(bk[j]->WTPc); + DEC2ZERO(bk[j]->WTPc); + DEC2ZERO(bk[j]->RTPc); } #ifdef DRAM_VISUALIZE |
