gem5 v24.1.0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
gem5::tlm::chi::TlmGenerator::Transaction::Expectation Class Reference

Expectation: Will check for a specific condition and will warn if the condition is not met. More...

#include <generator.hh>

Inheritance diagram for gem5::tlm::chi::TlmGenerator::Transaction::Expectation:
gem5::tlm::chi::TlmGenerator::Transaction::Action gem5::tlm::chi::TlmGenerator::Transaction::Assertion

Public Member Functions

 Expectation (std::string exp_name, Callback _cb)
 
bool run (Transaction *tran) override
 
std::string name () const
 
- Public Member Functions inherited from gem5::tlm::chi::TlmGenerator::Transaction::Action
 Action (Callback _cb, bool waiting)
 
virtual ~Action ()
 
bool wait () const
 Returns true if the action dispatcher should break the dispatching loop once the action has been executed.
 

Private Attributes

std::string _name
 

Additional Inherited Members

- Public Types inherited from gem5::tlm::chi::TlmGenerator::Transaction::Action
using Callback = std::function< bool(Transaction *tran) >
 
- Protected Attributes inherited from gem5::tlm::chi::TlmGenerator::Transaction::Action
Callback cb
 
bool _wait
 

Detailed Description

Expectation: Will check for a specific condition and will warn if the condition is not met.

The expectation is never a waiting action

Definition at line 160 of file generator.hh.

Constructor & Destructor Documentation

◆ Expectation()

gem5::tlm::chi::TlmGenerator::Transaction::Expectation::Expectation ( std::string  exp_name,
Callback  _cb 
)
inline

Definition at line 163 of file generator.hh.

Member Function Documentation

◆ name()

std::string gem5::tlm::chi::TlmGenerator::Transaction::Expectation::name ( ) const
inline

Definition at line 169 of file generator.hh.

References _name.

Referenced by run().

◆ run()

bool gem5::tlm::chi::TlmGenerator::Transaction::Expectation::run ( Transaction tran)
overridevirtual

Member Data Documentation

◆ _name

std::string gem5::tlm::chi::TlmGenerator::Transaction::Expectation::_name
private

Definition at line 172 of file generator.hh.

Referenced by name().


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

Generated on Mon Jan 13 2025 04:29:17 for gem5 by doxygen 1.9.8