From 930ec733e988c4996918065b4656f0508c6e2df6 Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 28 Apr 2025 18:24:49 -0400 Subject: Fix bug with pipeline blockage, swap DRAM delay to 100 --- src/stage.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/stage.cc') diff --git a/src/stage.cc b/src/stage.cc index ac688d8..4eab7d3 100644 --- a/src/stage.cc +++ b/src/stage.cc @@ -59,10 +59,15 @@ InstrDTO *Stage::advance(Response p) this->status = READY; } - n = (p != READY || this->status != READY) ? STALLED : READY; + if (!this->curr_instr) + n = READY; + else + n = (p != READY || this->status != READY) ? STALLED : READY; + s = this->next->advance(n); - if (s) + if (s) { this->curr_instr = s; + } return r; } -- cgit v1.2.3