diff --git a/DRAMSys/library/src/common/TlmRecorder.cpp b/DRAMSys/library/src/common/TlmRecorder.cpp index 427f4614..b991cf61 100644 --- a/DRAMSys/library/src/common/TlmRecorder.cpp +++ b/DRAMSys/library/src/common/TlmRecorder.cpp @@ -118,7 +118,10 @@ void TlmRecorder::recordPhase(tlm_generic_payload &trans, introduceTransactionSystem(trans); if (phase == END_REQ || phase == END_RESP || phase >= END_PDNA) + { + assert(getPhaseName(phase).substr(4) == currentTransactionsInSystem[&trans].recordedPhases.back().name); currentTransactionsInSystem[&trans].recordedPhases.back().interval.end = time; + } else { std::string phaseName = getPhaseName(phase).substr(6); // remove "BEGIN_"