Skip to content

Commit

Permalink
Added COMPLETE pevent
Browse files Browse the repository at this point in the history
  • Loading branch information
klingaard committed Jan 31, 2024
1 parent f9b2a20 commit bb92a08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/ExecutePipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ namespace olympia
void ExecutePipe::completeInst_(const InstPtr & ex_inst)
{
ex_inst->setStatus(Inst::Status::COMPLETED);
complete_event_.collect(*ex_inst);
ILOG("Completing inst: " << ex_inst);
}

Expand Down
6 changes: 6 additions & 0 deletions core/ExecutePipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "sparta/simulation/ResourceFactory.hpp"
#include "sparta/collection/Collectable.hpp"
#include "sparta/resources/Scoreboard.hpp"
#include "sparta/pevents/PeventCollector.hpp"

#include "Inst.hpp"
#include "CoreTypes.hpp"
Expand Down Expand Up @@ -111,6 +112,11 @@ namespace olympia
// A pipeline collector
sparta::collection::Collectable<InstPtr> collected_inst_;

// For correlation activities
sparta::pevents::PeventCollector<InstPEventPairs> complete_event_{"COMPLETE",
getContainer(),
getClock()};

// Counter
sparta::Counter total_insts_issued_{
getStatisticSet(), "total_insts_issued",
Expand Down
1 change: 0 additions & 1 deletion core/ROB.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "CoreTypes.hpp"
#include "InstGroup.hpp"
#include "FlushManager.hpp"
//#include "CorePEvents.hpp"

namespace olympia
{
Expand Down

0 comments on commit bb92a08

Please sign in to comment.