mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-24 05:47:35 -04:00
Fixed DRAM random latency simulator
This commit is contained in:
parent
1b9d9f3625
commit
7b4b44e5ab
1 changed files with 10 additions and 10 deletions
|
@ -132,6 +132,16 @@ void Simulator::dbus_driver() {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_DRAM_STALLS
|
||||
dram_stalled_ = false;
|
||||
if (0 == (total_cycles_ % DRAM_STALLS_MODULO)) {
|
||||
dram_stalled_ = true;
|
||||
} else
|
||||
if (dram_req_vec_.size() >= DRAM_RQ_SIZE) {
|
||||
dram_stalled_ = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_MULTICORE
|
||||
|
||||
if (vortex_->out_dram_req && !dram_stalled_) {
|
||||
|
@ -228,16 +238,6 @@ void Simulator::dbus_driver() {
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_DRAM_STALLS
|
||||
dram_stalled_ = false;
|
||||
if (0 == (total_cycles_ % DRAM_STALLS_MODULO)) {
|
||||
dram_stalled_ = true;
|
||||
} else
|
||||
if (dram_req_vec_.size() >= DRAM_RQ_SIZE) {
|
||||
dram_stalled_ = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_MULTICORE
|
||||
vortex_->out_dram_req_delay = dram_stalled_;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue