gem5
v20.0.0.3
|
The exit generator exits from the simulation once entered. More...
#include <exit_gen.hh>
Public Member Functions | |
ExitGen (SimObject &obj, 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... | |
![]() | |
BaseGen (SimObject &obj, 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 | |
![]() | |
const Tick | duration |
Time to spend in this state. More... | |
![]() | |
PacketPtr | getPacket (Addr addr, unsigned size, const MemCmd &cmd, Request::FlagsType flags=0) |
Generate a new request and associated packet. More... | |
![]() | |
const std::string | _name |
Name to use for status and debug printing. More... | |
const MasterID | masterID |
The MasterID used for generating requests. More... | |
The exit generator exits from the simulation once entered.
Definition at line 52 of file exit_gen.hh.
Definition at line 57 of file exit_gen.hh.
References enter(), getNextPacket(), and nextPacketTick().
|
virtual |
Enter this generator state.
Implements BaseGen.
Definition at line 45 of file exit_gen.cc.
References DPRINTF, exitSimLoop(), and BaseGen::name().
Referenced by ExitGen().
|
virtual |
Get the next generated packet.
Implements BaseGen.
Definition at line 54 of file exit_gen.cc.
References panic.
Referenced by ExitGen().
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.
elastic | should the injection respond to flow control or not |
delay | time the previous packet spent waiting |
Implements BaseGen.
Definition at line 61 of file exit_gen.cc.
References MaxTick.
Referenced by ExitGen().