gem5
|
#include <scoreboard_check_stage.hh>
Public Member Functions | |
ScoreboardCheckStage (const ComputeUnitParams *params) | |
~ScoreboardCheckStage () | |
void | init (ComputeUnit *cu) |
void | exec () |
const std::string & | name () const |
void | regStats () |
Private Member Functions | |
void | collectStatistics (Wavefront *curWave, int unitId) |
void | initStatistics () |
Private Attributes | |
ComputeUnit * | computeUnit |
uint32_t | numSIMDs |
uint32_t | numMemUnits |
uint32_t | numShrMemPipes |
std::vector< bool > * | vectorAluInstAvail |
int | lastGlbMemSimd |
int | lastShrMemSimd |
int * | glbMemInstAvail |
int * | shrMemInstAvail |
std::vector< std::vector < Wavefront * > * > | readyList |
std::vector< std::vector < std::pair< Wavefront *, WAVE_STATUS > > * > | waveStatusList |
std::string | _name |
Definition at line 63 of file scoreboard_check_stage.hh.
ScoreboardCheckStage::ScoreboardCheckStage | ( | const ComputeUnitParams * | params | ) |
Definition at line 44 of file scoreboard_check_stage.cc.
ScoreboardCheckStage::~ScoreboardCheckStage | ( | ) |
Definition at line 55 of file scoreboard_check_stage.cc.
References glbMemInstAvail, readyList, shrMemInstAvail, and waveStatusList.
|
private |
Definition at line 95 of file scoreboard_check_stage.cc.
References glbMemInstAvail, Wavefront::instructionBuffer, Wavefront::isOldestInstALU(), Wavefront::isOldestInstFlatMem(), Wavefront::isOldestInstGMem(), Wavefront::isOldestInstLMem(), Wavefront::isOldestInstPrivMem(), lastGlbMemSimd, lastShrMemSimd, numShrMemPipes, shrMemInstAvail, and vectorAluInstAvail.
Referenced by exec().
void ScoreboardCheckStage::exec | ( | ) |
Definition at line 127 of file scoreboard_check_stage.cc.
References BLOCKED, ComputeUnit::cedeSIMD(), collectStatistics(), computeUnit, ComputeUnit::GlbMemUnitId(), Wavefront::I_ALU, Wavefront::I_FLAT, Wavefront::I_GLOBAL, Wavefront::I_PRIVATE, Wavefront::I_SHARED, initStatistics(), Shader::n_wf, numMemUnits, numSIMDs, READY, Wavefront::ready(), readyList, ComputeUnit::shader, ComputeUnit::ShrMemUnitId(), and waveStatusList.
Referenced by ComputeUnit::exec().
void ScoreboardCheckStage::init | ( | ComputeUnit * | cu | ) |
Definition at line 64 of file scoreboard_check_stage.cc.
References _name, computeUnit, glbMemInstAvail, ComputeUnit::glbMemInstAvail, SimObject::name(), numMemUnits, numSIMDs, readyList, ComputeUnit::readyList, shrMemInstAvail, ComputeUnit::shrMemInstAvail, vectorAluInstAvail, ComputeUnit::vectorAluInstAvail, waveStatusList, and ComputeUnit::waveStatusList.
Referenced by ComputeUnit::init().
|
private |
Definition at line 83 of file scoreboard_check_stage.cc.
References glbMemInstAvail, lastGlbMemSimd, lastShrMemSimd, numSIMDs, shrMemInstAvail, and vectorAluInstAvail.
Referenced by exec().
|
inline |
Definition at line 72 of file scoreboard_check_stage.hh.
References _name.
void ScoreboardCheckStage::regStats | ( | ) |
Definition at line 170 of file scoreboard_check_stage.cc.
Referenced by ComputeUnit::regStats().
|
private |
Definition at line 102 of file scoreboard_check_stage.hh.
|
private |
Definition at line 78 of file scoreboard_check_stage.hh.
|
private |
Definition at line 90 of file scoreboard_check_stage.hh.
Referenced by collectStatistics(), init(), initStatistics(), and ~ScoreboardCheckStage().
|
private |
Definition at line 87 of file scoreboard_check_stage.hh.
Referenced by collectStatistics(), and initStatistics().
|
private |
Definition at line 88 of file scoreboard_check_stage.hh.
Referenced by collectStatistics(), and initStatistics().
|
private |
Definition at line 80 of file scoreboard_check_stage.hh.
|
private |
Definition at line 81 of file scoreboard_check_stage.hh.
Referenced by collectStatistics().
|
private |
Definition at line 79 of file scoreboard_check_stage.hh.
Referenced by exec(), init(), and initStatistics().
|
private |
Definition at line 94 of file scoreboard_check_stage.hh.
Referenced by exec(), init(), and ~ScoreboardCheckStage().
|
private |
Definition at line 91 of file scoreboard_check_stage.hh.
Referenced by collectStatistics(), init(), initStatistics(), and ~ScoreboardCheckStage().
|
private |
Definition at line 86 of file scoreboard_check_stage.hh.
Referenced by collectStatistics(), init(), and initStatistics().
|
private |
Definition at line 100 of file scoreboard_check_stage.hh.
Referenced by exec(), init(), and ~ScoreboardCheckStage().