gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
BaseXBar::RespLayer Class Reference

#include <xbar.hh>

Inheritance diagram for BaseXBar::RespLayer:
BaseXBar::Layer< MasterPort, SlavePort > Drainable

Public Member Functions

 RespLayer (SlavePort &_port, BaseXBar &_xbar, const std::string &_name)
 Create a response layer and give it a name. More...
 
- Public Member Functions inherited from BaseXBar::Layer< MasterPort, SlavePort >
 Layer (SlavePort &_port, BaseXBar &_xbar, const std::string &_name)
 Create a layer and give it a name. More...
 
DrainState drain () override
 Drain according to the normal semantics, so that the crossbar can tell the layer to drain, and pass an event to signal back when drained. More...
 
const std::string name () const
 Get the crossbar layer's name. More...
 
bool tryTiming (MasterPort *src_port)
 Determine if the layer accepts a packet from a specific port. More...
 
void succeededTiming (Tick busy_time)
 Deal with a destination port accepting a packet by potentially removing the source port from the retry list (if retrying) and occupying the layer accordingly. More...
 
void failedTiming (MasterPort *src_port, Tick busy_time)
 Deal with a destination port not accepting a packet by potentially adding the source port to the retry list (if not already at the front) and occupying the layer accordingly. More...
 
void occupyLayer (Tick until)
 Occupy the layer until until. More...
 
void retryWaiting ()
 Send a retry to the port at the head of waitingForLayer. More...
 
void recvRetry ()
 Handle a retry from a neighbouring module. More...
 
void regStats ()
 Register stats for the layer. More...
 
- Public Member Functions inherited from Drainable
DrainState drainState () const
 Return the current drain state of an object. More...
 
virtual void notifyFork ()
 Notify a child process of a fork. More...
 

Protected Member Functions

void sendRetry (MasterPort *retry_port)
 Sending the actual retry, in a manner specific to the individual layers. More...
 
- Protected Member Functions inherited from Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain. More...
 
void signalDrainDone () const
 Signal that an object is drained. More...
 

Detailed Description

Definition at line 271 of file xbar.hh.

Constructor & Destructor Documentation

BaseXBar::RespLayer::RespLayer ( SlavePort _port,
BaseXBar _xbar,
const std::string &  _name 
)
inline

Create a response layer and give it a name.

Parameters
_portdestination port the layer converges at
_xbarthe crossbar this layer belongs to
_namethe layer's name

Definition at line 281 of file xbar.hh.

Member Function Documentation

void BaseXBar::RespLayer::sendRetry ( MasterPort retry_port)
inlineprotectedvirtual

Sending the actual retry, in a manner specific to the individual layers.

Note that for a MasterPort, there is both a RequestLayer and a SnoopResponseLayer using the same port, but using different functions for the flow control.

Implements BaseXBar::Layer< MasterPort, SlavePort >.

Definition at line 286 of file xbar.hh.

References MasterPort::sendRetryResp().


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

Generated on Fri Jun 9 2017 13:04:03 for gem5 by doxygen 1.8.6