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

The idle generator does nothing. More...

#include <generators.hh>

Inheritance diagram for IdleGen:
BaseGen

Public Member Functions

 IdleGen (const std::string &_name, MasterID master_id, Tick _duration)
 
void enter ()
 Enter this generator state. More...
 
PacketPtr getNextPacket ()
 Get the next generated packet. More...
 
Tick nextPacketTick (bool elastic, Tick delay) const
 Determine the tick when the next packet is available. More...
 
- Public Member Functions inherited from BaseGen
 BaseGen (const std::string &_name, MasterID master_id, Tick _duration)
 Create a base generator. More...
 
virtual ~BaseGen ()
 
std::string name () const
 Get the name, useful for DPRINTFs. More...
 
virtual void exit ()
 Exit this generator state. More...
 

Additional Inherited Members

- Public Attributes inherited from BaseGen
const Tick duration
 Time to spend in this state. More...
 
- Protected Member Functions inherited from BaseGen
PacketPtr getPacket (Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0)
 Generate a new request and associated packet. More...
 
- Protected Attributes inherited from BaseGen
const std::string _name
 Name to use for status and debug printing. More...
 
const MasterID masterID
 The MasterID used for generating requests. More...
 

Detailed Description

The idle generator does nothing.

Definition at line 141 of file generators.hh.

Constructor & Destructor Documentation

IdleGen::IdleGen ( const std::string &  _name,
MasterID  master_id,
Tick  _duration 
)
inline

Definition at line 146 of file generators.hh.

Member Function Documentation

void IdleGen::enter ( )
inlinevirtual

Enter this generator state.

Implements BaseGen.

Definition at line 150 of file generators.hh.

PacketPtr IdleGen::getNextPacket ( )
inlinevirtual

Get the next generated packet.

Returns
A packet to be sent at the current tick

Implements BaseGen.

Definition at line 152 of file generators.hh.

Tick IdleGen::nextPacketTick ( bool  elastic,
Tick  delay 
) const
inlinevirtual

Determine the tick when the next packet is available.

MaxTick means that there will not be any further packets in the current activation cycle of the generator.

Parameters
elasticshould the injection respond to flow control or not
delaytime the previous packet spent waiting
Returns
next tick when a packet is available

Implements BaseGen.

Definition at line 154 of file generators.hh.

References MaxTick.


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

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