gem5  v20.1.0.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ExecStage Class Reference

#include <exec_stage.hh>

Public Member Functions

 ExecStage (const ComputeUnitParams *p, ComputeUnit &cu, ScheduleToExecute &from_schedule)
 
 ~ExecStage ()
 
void init ()
 
void exec ()
 
std::string dispStatusToStr (int j)
 
void dumpDispList ()
 
const std::string & name () const
 
void regStats ()
 

Public Attributes

Stats::Scalar numCyclesWithNoIssue
 
Stats::Scalar numCyclesWithInstrIssued
 
Stats::Vector numCyclesWithInstrTypeIssued
 
Stats::Vector numCyclesWithNoInstrTypeIssued
 
Stats::Distribution spc
 

Private Member Functions

void collectStatistics (enum STAT_STATUS stage, int unitId)
 
void initStatistics ()
 

Private Attributes

ComputeUnitcomputeUnit
 
ScheduleToExecutefromSchedule
 
bool lastTimeInstExecuted
 
bool thisTimeInstExecuted
 
bool instrExecuted
 
Stats::Scalar numTransActiveIdle
 
Stats::Distribution idleDur
 
int executionResourcesUsed
 
uint64_t idle_dur
 
const std::string _name
 

Detailed Description

Definition at line 71 of file exec_stage.hh.

Constructor & Destructor Documentation

◆ ExecStage()

ExecStage::ExecStage ( const ComputeUnitParams *  p,
ComputeUnit cu,
ScheduleToExecute from_schedule 
)

Definition at line 44 of file exec_stage.cc.

References idle_dur, and numTransActiveIdle.

◆ ~ExecStage()

ExecStage::~ExecStage ( )
inline

Definition at line 76 of file exec_stage.hh.

Member Function Documentation

◆ collectStatistics()

void ExecStage::collectStatistics ( enum STAT_STATUS  stage,
int  unitId 
)
private

◆ dispStatusToStr()

std::string ExecStage::dispStatusToStr ( int  j)

Definition at line 109 of file exec_stage.cc.

References EMPTY, EXREADY, ArmISA::i, ArmISA::s, and SKIP.

Referenced by dumpDispList().

◆ dumpDispList()

void ExecStage::dumpDispList ( )

◆ exec()

void ExecStage::exec ( )

◆ init()

void ExecStage::init ( )

Definition at line 57 of file exec_stage.cc.

References idle_dur.

Referenced by ComputeUnit::init().

◆ initStatistics()

void ExecStage::initStatistics ( )
private

Definition at line 101 of file exec_stage.cc.

References executionResourcesUsed, instrExecuted, and thisTimeInstExecuted.

Referenced by exec().

◆ name()

const std::string& ExecStage::name ( ) const
inline

Definition at line 83 of file exec_stage.hh.

References _name.

Referenced by regStats().

◆ regStats()

void ExecStage::regStats ( )

Member Data Documentation

◆ _name

const std::string ExecStage::_name
private

Definition at line 112 of file exec_stage.hh.

Referenced by name().

◆ computeUnit

ComputeUnit& ExecStage::computeUnit
private

Definition at line 102 of file exec_stage.hh.

Referenced by dumpDispList(), exec(), and regStats().

◆ executionResourcesUsed

int ExecStage::executionResourcesUsed
private

Definition at line 110 of file exec_stage.hh.

Referenced by collectStatistics(), and initStatistics().

◆ fromSchedule

ScheduleToExecute& ExecStage::fromSchedule
private

Definition at line 103 of file exec_stage.hh.

Referenced by dumpDispList(), and exec().

◆ idle_dur

uint64_t ExecStage::idle_dur
private

Definition at line 111 of file exec_stage.hh.

Referenced by collectStatistics(), ExecStage(), and init().

◆ idleDur

Stats::Distribution ExecStage::idleDur
private

Definition at line 109 of file exec_stage.hh.

Referenced by collectStatistics(), and regStats().

◆ instrExecuted

bool ExecStage::instrExecuted
private

Definition at line 107 of file exec_stage.hh.

Referenced by collectStatistics(), and initStatistics().

◆ lastTimeInstExecuted

bool ExecStage::lastTimeInstExecuted
private

Definition at line 105 of file exec_stage.hh.

Referenced by collectStatistics().

◆ numCyclesWithInstrIssued

Stats::Scalar ExecStage::numCyclesWithInstrIssued

Definition at line 88 of file exec_stage.hh.

Referenced by collectStatistics(), and regStats().

◆ numCyclesWithInstrTypeIssued

Stats::Vector ExecStage::numCyclesWithInstrTypeIssued

Definition at line 91 of file exec_stage.hh.

Referenced by collectStatistics(), and regStats().

◆ numCyclesWithNoInstrTypeIssued

Stats::Vector ExecStage::numCyclesWithNoInstrTypeIssued

Definition at line 95 of file exec_stage.hh.

Referenced by collectStatistics(), and regStats().

◆ numCyclesWithNoIssue

Stats::Scalar ExecStage::numCyclesWithNoIssue

Definition at line 86 of file exec_stage.hh.

Referenced by collectStatistics(), and regStats().

◆ numTransActiveIdle

Stats::Scalar ExecStage::numTransActiveIdle
private

Definition at line 108 of file exec_stage.hh.

Referenced by collectStatistics(), ExecStage(), and regStats().

◆ spc

Stats::Distribution ExecStage::spc

Definition at line 97 of file exec_stage.hh.

Referenced by collectStatistics(), and regStats().

◆ thisTimeInstExecuted

bool ExecStage::thisTimeInstExecuted
private

Definition at line 106 of file exec_stage.hh.

Referenced by collectStatistics(), and initStatistics().


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:02:24 for gem5 by doxygen 1.8.17