summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/l2cache.cc
diff options
context:
space:
mode:
authorInderpreet Singh <[email protected]>2012-02-26 04:11:23 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:04 -0700
commit609ebad6b15d4cd08e5a34579a73433772bf0e9f (patch)
tree657aa7bf4665fc31765551436891682935f98900 /src/gpgpu-sim/l2cache.cc
parent928f6d330516f03bdbecd52350bf1b9fb9fcf534 (diff)
Turned ROP and DRAM latency/delays into options
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11522]
Diffstat (limited to 'src/gpgpu-sim/l2cache.cc')
-rw-r--r--src/gpgpu-sim/l2cache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpgpu-sim/l2cache.cc b/src/gpgpu-sim/l2cache.cc
index 6a39b42..e57717f 100644
--- a/src/gpgpu-sim/l2cache.cc
+++ b/src/gpgpu-sim/l2cache.cc
@@ -262,7 +262,7 @@ void memory_partition_unit::push( mem_fetch* req, unsigned long long cycle )
} else {
rop_delay_t r;
r.req = req;
- r.ready_cycle = cycle + 115; // Add 115*4=460 delay cycles
+ r.ready_cycle = cycle + m_config->rop_latency;
m_rop.push(r);
req->set_status(IN_PARTITION_ROP_DELAY,gpu_sim_cycle+gpu_tot_sim_cycle);
}
@@ -322,7 +322,7 @@ void memory_partition_unit::dram_cycle()
mem_fetch *mf = m_L2_dram_queue->pop();
dram_delay_t d;
d.req = mf;
- d.ready_cycle = gpu_sim_cycle+gpu_tot_sim_cycle + 200;
+ d.ready_cycle = gpu_sim_cycle+gpu_tot_sim_cycle + m_config->dram_latency;
m_dram_latency_queue.push(d);
mf->set_status(IN_PARTITION_DRAM_LATENCY_QUEUE,gpu_sim_cycle+gpu_tot_sim_cycle);
}