gem5  v21.1.0.2
Public Member Functions | Private Attributes | List of all members
gem5::ScalarMemPipeline Class Reference

#include <scalar_memory_pipeline.hh>

Public Member Functions

 ScalarMemPipeline (const ComputeUnitParams &p, ComputeUnit &cu)
 
void exec ()
 
std::queue< GPUDynInstPtr > & getGMReqFIFO ()
 
std::queue< GPUDynInstPtr > & getGMStRespFIFO ()
 
std::queue< GPUDynInstPtr > & getGMLdRespFIFO ()
 
void issueRequest (GPUDynInstPtr gpuDynInst)
 
bool isGMLdRespFIFOWrRdy () const
 
bool isGMStRespFIFOWrRdy () const
 
bool isGMReqFIFOWrRdy (uint32_t pendReqs=0) const
 
const std::string & name () const
 

Private Attributes

ComputeUnitcomputeUnit
 
const std::string _name
 
int queueSize
 
int inflightStores
 
int inflightLoads
 
std::queue< GPUDynInstPtrissuedRequests
 
std::queue< GPUDynInstPtrreturnedStores
 
std::queue< GPUDynInstPtrreturnedLoads
 

Detailed Description

Definition at line 60 of file scalar_memory_pipeline.hh.

Constructor & Destructor Documentation

◆ ScalarMemPipeline()

gem5::ScalarMemPipeline::ScalarMemPipeline ( const ComputeUnitParams &  p,
ComputeUnit cu 
)

Definition at line 47 of file scalar_memory_pipeline.cc.

Member Function Documentation

◆ exec()

void gem5::ScalarMemPipeline::exec ( )

◆ getGMLdRespFIFO()

std::queue<GPUDynInstPtr>& gem5::ScalarMemPipeline::getGMLdRespFIFO ( )
inline

Definition at line 68 of file scalar_memory_pipeline.hh.

References returnedLoads.

◆ getGMReqFIFO()

std::queue<GPUDynInstPtr>& gem5::ScalarMemPipeline::getGMReqFIFO ( )
inline

Definition at line 66 of file scalar_memory_pipeline.hh.

References issuedRequests.

◆ getGMStRespFIFO()

std::queue<GPUDynInstPtr>& gem5::ScalarMemPipeline::getGMStRespFIFO ( )
inline

Definition at line 67 of file scalar_memory_pipeline.hh.

References returnedStores.

◆ isGMLdRespFIFOWrRdy()

bool gem5::ScalarMemPipeline::isGMLdRespFIFOWrRdy ( ) const
inline

Definition at line 73 of file scalar_memory_pipeline.hh.

References queueSize, and returnedLoads.

◆ isGMReqFIFOWrRdy()

bool gem5::ScalarMemPipeline::isGMReqFIFOWrRdy ( uint32_t  pendReqs = 0) const
inline

Definition at line 85 of file scalar_memory_pipeline.hh.

References issuedRequests, and queueSize.

Referenced by gem5::ScheduleStage::dispatchReady().

◆ isGMStRespFIFOWrRdy()

bool gem5::ScalarMemPipeline::isGMStRespFIFOWrRdy ( ) const
inline

Definition at line 79 of file scalar_memory_pipeline.hh.

References queueSize, and returnedStores.

◆ issueRequest()

void gem5::ScalarMemPipeline::issueRequest ( GPUDynInstPtr  gpuDynInst)

◆ name()

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

Definition at line 90 of file scalar_memory_pipeline.hh.

References _name.

Member Data Documentation

◆ _name

const std::string gem5::ScalarMemPipeline::_name
private

Definition at line 94 of file scalar_memory_pipeline.hh.

Referenced by name().

◆ computeUnit

ComputeUnit& gem5::ScalarMemPipeline::computeUnit
private

Definition at line 93 of file scalar_memory_pipeline.hh.

Referenced by exec().

◆ inflightLoads

int gem5::ScalarMemPipeline::inflightLoads
private

Definition at line 100 of file scalar_memory_pipeline.hh.

Referenced by exec().

◆ inflightStores

int gem5::ScalarMemPipeline::inflightStores
private

Definition at line 99 of file scalar_memory_pipeline.hh.

Referenced by exec().

◆ issuedRequests

std::queue<GPUDynInstPtr> gem5::ScalarMemPipeline::issuedRequests
private

Definition at line 104 of file scalar_memory_pipeline.hh.

Referenced by exec(), getGMReqFIFO(), isGMReqFIFOWrRdy(), and issueRequest().

◆ queueSize

int gem5::ScalarMemPipeline::queueSize
private

◆ returnedLoads

std::queue<GPUDynInstPtr> gem5::ScalarMemPipeline::returnedLoads
private

Definition at line 112 of file scalar_memory_pipeline.hh.

Referenced by exec(), getGMLdRespFIFO(), and isGMLdRespFIFOWrRdy().

◆ returnedStores

std::queue<GPUDynInstPtr> gem5::ScalarMemPipeline::returnedStores
private

Definition at line 108 of file scalar_memory_pipeline.hh.

Referenced by exec(), getGMStRespFIFO(), and isGMStRespFIFOWrRdy().


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

Generated on Tue Sep 21 2021 12:28:05 for gem5 by doxygen 1.8.17