diff --git a/DRAMSys/library/src/common/TlmRecorder.cpp b/DRAMSys/library/src/common/TlmRecorder.cpp index 47a8bac4..fa9d0fe3 100644 --- a/DRAMSys/library/src/common/TlmRecorder.cpp +++ b/DRAMSys/library/src/common/TlmRecorder.cpp @@ -239,7 +239,11 @@ void TlmRecorder::terminateRemainingTransactions() removeTransactionFromSystem(*transaction->first); } else - recordPhase(*(transaction->first), END_RESP, sc_time_stamp()); + { + std::string beginPhase = transaction->second.recordedPhases.front().name; + if (beginPhase == "RESP") + recordPhase(*(transaction->first), END_RESP, sc_time_stamp()); + } } }