From cb58796cdab22ab3eaac0d9d43320a323e8d50f7 Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Tue, 12 Jul 2022 19:45:06 +0200 Subject: [PATCH] Don't finalize transactions with END_RESP when no BEGIN_RESP was sent --- DRAMSys/library/src/common/TlmRecorder.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()); + } } }