gem5  v22.1.0.0
Classes | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
gem5::ExecStage Class Reference

#include <exec_stage.hh>

Classes

struct  ExecStageStats
 

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
 

Protected Attributes

gem5::ExecStage::ExecStageStats stats
 

Private Member Functions

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

Private Attributes

ComputeUnitcomputeUnit
 
ScheduleToExecutefromSchedule
 
bool lastTimeInstExecuted
 
bool thisTimeInstExecuted
 
bool instrExecuted
 
int executionResourcesUsed
 
uint64_t idle_dur
 
const std::string _name
 

Detailed Description

Definition at line 73 of file exec_stage.hh.

Constructor & Destructor Documentation

◆ ExecStage()

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

◆ ~ExecStage()

gem5::ExecStage::~ExecStage ( )
inline

Definition at line 78 of file exec_stage.hh.

Member Function Documentation

◆ collectStatistics()

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

◆ dispStatusToStr()

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

Definition at line 111 of file exec_stage.cc.

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

Referenced by dumpDispList().

◆ dumpDispList()

void gem5::ExecStage::dumpDispList ( )

◆ exec()

void gem5::ExecStage::exec ( )

◆ init()

void gem5::ExecStage::init ( )

Definition at line 59 of file exec_stage.cc.

References idle_dur.

Referenced by gem5::ComputeUnit::init().

◆ initStatistics()

void gem5::ExecStage::initStatistics ( )
private

Definition at line 103 of file exec_stage.cc.

References executionResourcesUsed, instrExecuted, and thisTimeInstExecuted.

Referenced by exec().

◆ name()

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

Definition at line 85 of file exec_stage.hh.

References _name.

Member Data Documentation

◆ _name

const std::string gem5::ExecStage::_name
private

Definition at line 98 of file exec_stage.hh.

Referenced by name().

◆ computeUnit

ComputeUnit& gem5::ExecStage::computeUnit
private

Definition at line 90 of file exec_stage.hh.

Referenced by dumpDispList(), and exec().

◆ executionResourcesUsed

int gem5::ExecStage::executionResourcesUsed
private

Definition at line 96 of file exec_stage.hh.

Referenced by collectStatistics(), and initStatistics().

◆ fromSchedule

ScheduleToExecute& gem5::ExecStage::fromSchedule
private

Definition at line 91 of file exec_stage.hh.

Referenced by dumpDispList(), and exec().

◆ idle_dur

uint64_t gem5::ExecStage::idle_dur
private

Definition at line 97 of file exec_stage.hh.

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

◆ instrExecuted

bool gem5::ExecStage::instrExecuted
private

Definition at line 95 of file exec_stage.hh.

Referenced by collectStatistics(), and initStatistics().

◆ lastTimeInstExecuted

bool gem5::ExecStage::lastTimeInstExecuted
private

Definition at line 93 of file exec_stage.hh.

Referenced by collectStatistics().

◆ stats

gem5::ExecStage::ExecStageStats gem5::ExecStage::stats
protected

Referenced by collectStatistics(), and ExecStage().

◆ thisTimeInstExecuted

bool gem5::ExecStage::thisTimeInstExecuted
private

Definition at line 94 of file exec_stage.hh.

Referenced by collectStatistics(), and initStatistics().


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

Generated on Wed Dec 21 2022 10:23:23 for gem5 by doxygen 1.9.1