gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::IdleGen Class Reference

The idle generator does nothing. More...

#include <idle_gen.hh>

Inheritance diagram for gem5::IdleGen:
gem5::BaseGen

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

The idle generator does nothing.

Definition at line 57 of file idle_gen.hh.

Constructor & Destructor Documentation

◆ IdleGen()

gem5::IdleGen::IdleGen ( SimObject & obj,
RequestorID requestor_id,
Tick _duration )
inline

Definition at line 62 of file idle_gen.hh.

Member Function Documentation

◆ enter()

void gem5::IdleGen::enter ( )
virtual

Enter this generator state.

Implements gem5::BaseGen.

Definition at line 50 of file idle_gen.cc.

◆ getNextPacket()

PacketPtr gem5::IdleGen::getNextPacket ( )
virtual

Get the next generated packet.

Returns
A packet to be sent at the current tick

Implements gem5::BaseGen.

Definition at line 53 of file idle_gen.cc.

◆ nextPacketTick()

Tick gem5::IdleGen::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 gem5::BaseGen.

Definition at line 59 of file idle_gen.cc.

References gem5::MaxTick.


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

Generated on Tue Jun 18 2024 16:24:12 for gem5 by doxygen 1.11.0