gem5  v20.1.0.0
Public Member Functions | List of all members
ExitGen Class Reference

The exit generator exits from the simulation once entered. More...

#include <exit_gen.hh>

Inheritance diagram for ExitGen:
BaseGen

Public Member Functions

 ExitGen (SimObject &obj, RequestorID requestor_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 (SimObject &obj, RequestorID requestor_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 RequestorID requestorId
 The RequestorID used for generating requests. More...
 

Detailed Description

The exit generator exits from the simulation once entered.

Definition at line 52 of file exit_gen.hh.

Constructor & Destructor Documentation

◆ ExitGen()

ExitGen::ExitGen ( SimObject obj,
RequestorID  requestor_id,
Tick  _duration 
)
inline

Definition at line 57 of file exit_gen.hh.

Member Function Documentation

◆ enter()

void ExitGen::enter ( )
virtual

Enter this generator state.

Implements BaseGen.

Definition at line 45 of file exit_gen.cc.

References DPRINTF, exitSimLoop(), and BaseGen::name().

◆ getNextPacket()

PacketPtr ExitGen::getNextPacket ( )
virtual

Get the next generated packet.

Returns
A packet to be sent at the current tick

Implements BaseGen.

Definition at line 54 of file exit_gen.cc.

References panic.

◆ nextPacketTick()

Tick ExitGen::nextPacketTick ( bool  elastic,
Tick  delay 
) const
virtual

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 61 of file exit_gen.cc.

References MaxTick.


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

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