Fixed DRAM random latency simulator
This commit is contained in:
@@ -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
|
#ifdef USE_MULTICORE
|
||||||
|
|
||||||
if (vortex_->out_dram_req && !dram_stalled_) {
|
if (vortex_->out_dram_req && !dram_stalled_) {
|
||||||
@@ -228,16 +238,6 @@ void Simulator::dbus_driver() {
|
|||||||
|
|
||||||
#endif
|
#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
|
#ifdef USE_MULTICORE
|
||||||
vortex_->out_dram_req_delay = dram_stalled_;
|
vortex_->out_dram_req_delay = dram_stalled_;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user