gem5 v24.0.0.0
|
Communication interface between ScoreboardCheck and Schedule stages. More...
#include <comm.hh>
Public Member Functions | |
ScoreboardCheckToSchedule ()=delete | |
ScoreboardCheckToSchedule (const ComputeUnitParams &p) | |
Scoreboard/Schedule stage interface. | |
void | reset () override |
Reset the pipe stage interface. | |
void | markWFReady (Wavefront *wf, int func_unit_id) |
Mark the WF as ready for execution on a particular functional unit. | |
int | numReadyLists () const |
Returns the number of ready lists (i.e., the number of functional units). | |
std::vector< Wavefront * > & | readyWFs (int func_unit_id) |
TODO: These methods expose this class' implementation too much by returning references to its internal data structures directly. | |
void | updateReadyList (int func_unit_id) |
Delete all wavefronts that have been marked as ready at scoreboard stage but are found to have empty instruction buffers at schedule stage. | |
Private Attributes | |
std::vector< std::vector< Wavefront * > > | _readyWFs |
Communication interface between ScoreboardCheck and Schedule stages.
|
delete |
gem5::ScoreboardCheckToSchedule::ScoreboardCheckToSchedule | ( | const ComputeUnitParams & | p | ) |
Scoreboard/Schedule stage interface.
Definition at line 45 of file comm.cc.
References _readyWFs, and gem5::MipsISA::p.
void gem5::ScoreboardCheckToSchedule::markWFReady | ( | Wavefront * | wf, |
int | func_unit_id ) |
Mark the WF as ready for execution on a particular functional unit.
Definition at line 67 of file comm.cc.
References _readyWFs.
Referenced by gem5::ScoreboardCheckStage::exec().
int gem5::ScoreboardCheckToSchedule::numReadyLists | ( | ) | const |
Returns the number of ready lists (i.e., the number of functional units).
Each functional unit has its own list of ready WFs to consider for arbitration.
Definition at line 73 of file comm.cc.
References _readyWFs.
Referenced by gem5::ScheduleStage::init().
std::vector< Wavefront * > & gem5::ScoreboardCheckToSchedule::readyWFs | ( | int | func_unit_id | ) |
TODO: These methods expose this class' implementation too much by returning references to its internal data structures directly.
These are to support legacy functionality in the CU pipeline. They should be removed eventually for an API that hides such implementation details.
Definition at line 79 of file comm.cc.
References _readyWFs.
Referenced by gem5::ScheduleStage::exec(), and gem5::ScheduleStage::init().
|
overridevirtual |
Reset the pipe stage interface.
This is called to remove any stale state from the pipe stage that is leftover from the prior cycle. This is needed when stages do not actually consume the information passed via the stage interfaces.
Implements gem5::PipeStageIFace.
Definition at line 59 of file comm.cc.
References _readyWFs.
Referenced by gem5::ScoreboardCheckStage::exec().
void gem5::ScoreboardCheckToSchedule::updateReadyList | ( | int | func_unit_id | ) |
Delete all wavefronts that have been marked as ready at scoreboard stage but are found to have empty instruction buffers at schedule stage.
Definition at line 89 of file comm.cc.
References _readyWFs.
Referenced by gem5::ScheduleStage::exec().
|
private |
Definition at line 92 of file comm.hh.
Referenced by markWFReady(), numReadyLists(), readyWFs(), reset(), ScoreboardCheckToSchedule(), and updateReadyList().