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

Communication interface between Schedule and Execute stages. More...

#include <comm.hh>

Inheritance diagram for ScheduleToExecute:
PipeStageIFace

Public Member Functions

 ScheduleToExecute ()=delete
 
 ScheduleToExecute (const ComputeUnitParams *p)
 Schedule/Execute stage interface. More...
 
void reset () override
 Reset the pipe stage interface. More...
 
GPUDynInstPtrreadyInst (int func_unit_id)
 
void dispatchTransition (const GPUDynInstPtr &gpu_dyn_inst, int func_unit_id, DISPATCH_STATUS disp_status)
 Once the scheduler has chosen a winning WF for execution, and after the WF's oldest instruction's operands have been read, this method is used to mark the instruction as ready to execute. More...
 
void dispatchTransition (int func_unit_id, DISPATCH_STATUS disp_status)
 
DISPATCH_STATUS dispatchStatus (int func_unit_id) const
 

Private Attributes

std::vector< GPUDynInstPtr_readyInsts
 
std::vector< DISPATCH_STATUS_dispatchStatus
 

Detailed Description

Communication interface between Schedule and Execute stages.

Definition at line 99 of file comm.hh.

Constructor & Destructor Documentation

◆ ScheduleToExecute() [1/2]

ScheduleToExecute::ScheduleToExecute ( )
delete

◆ ScheduleToExecute() [2/2]

ScheduleToExecute::ScheduleToExecute ( const ComputeUnitParams *  p)

Schedule/Execute stage interface.

Definition at line 106 of file comm.cc.

References _dispatchStatus, _readyInsts, EMPTY, and MipsISA::p.

Member Function Documentation

◆ dispatchStatus()

DISPATCH_STATUS ScheduleToExecute::dispatchStatus ( int  func_unit_id) const

◆ dispatchTransition() [1/2]

void ScheduleToExecute::dispatchTransition ( const GPUDynInstPtr gpu_dyn_inst,
int  func_unit_id,
DISPATCH_STATUS  disp_status 
)

Once the scheduler has chosen a winning WF for execution, and after the WF's oldest instruction's operands have been read, this method is used to mark the instruction as ready to execute.

This puts it on the dispatch list to be consumed by the execute stage.

Definition at line 134 of file comm.cc.

References _dispatchStatus, and _readyInsts.

Referenced by ScheduleStage::doDispatchListTransition(), and ExecStage::exec().

◆ dispatchTransition() [2/2]

void ScheduleToExecute::dispatchTransition ( int  func_unit_id,
DISPATCH_STATUS  disp_status 
)

Definition at line 143 of file comm.cc.

References _dispatchStatus, and _readyInsts.

◆ readyInst()

GPUDynInstPtr & ScheduleToExecute::readyInst ( int  func_unit_id)

◆ reset()

void ScheduleToExecute::reset ( )
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 PipeStageIFace.

Definition at line 116 of file comm.cc.

References _dispatchStatus, _readyInsts, and EMPTY.

Referenced by ScheduleStage::exec().

Member Data Documentation

◆ _dispatchStatus

std::vector<DISPATCH_STATUS> ScheduleToExecute::_dispatchStatus
private

Definition at line 120 of file comm.hh.

Referenced by dispatchStatus(), dispatchTransition(), reset(), and ScheduleToExecute().

◆ _readyInsts

std::vector<GPUDynInstPtr> ScheduleToExecute::_readyInsts
private

Definition at line 119 of file comm.hh.

Referenced by dispatchTransition(), readyInst(), reset(), and ScheduleToExecute().


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

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