Class that is capable of recording pevents as key value pairs, where a PairDefinition has been defined with the key values, and function pointers to where to get the data for the pairs.
More...
|
| PeventCollector (const std::string &event_name, sparta::TreeNode *parent, const Clock *clk, const bool verbosity=false) |
|
template<typename... Targs> |
void | collect (const typename CollectedEntityType::TypeCollected &obj, const Targs &... pos_args) |
| Actually collect the object, and write out a pevent. We ovverride the collect method to ensure the the generateCollectionString is always called, even when there is not a change.
|
|
virtual const std::string & | eventName () override |
| Return the ev name.
|
|
void | adjustSkew (const int32_t &skew_amount) |
|
virtual bool | addTap (const std::string &type, const std::string &file, const bool verbose) override final |
| Mark this pevent with a tap to output the pevent's data to a file.
|
|
virtual void | turnOff (const std::string &type) override final |
|
virtual void | go () override final |
| This method should be called on all pevent collectors when the trigger either manually fires to start or the trigger is reached.
|
|
| PeventCollectorTreeNode (sparta::TreeNode *parent, const std::string &name) |
|
template<class CollectedEntityType>
class sparta::pevents::PeventCollector< CollectedEntityType >
Class that is capable of recording pevents as key value pairs, where a PairDefinition has been defined with the key values, and function pointers to where to get the data for the pairs.
- Template Parameters
-
the | Type of PairDefinition that we want to capture a pevent from. |
Example usage:
{
public:
uint32_t getValue() const { ... };
private:
class MyEventPairs : public sparta::PairDefinition<MyUnit>
{
public:
using TypeCollected = Inst;
MyEventPairs() :
sparta::PairDefinition<MyUnit>()
{
addPEventsPair("value", &MyUnit::getValue);
}
};
};
The is the base class for user defined blocks in simulation.
Class that is capable of recording pevents as key value pairs, where a PairDefinition has been define...
void collect(const typename CollectedEntityType::TypeCollected &obj, const Targs &... pos_args)
Actually collect the object, and write out a pevent. We ovverride the collect method to ensure the th...
Macros for handling exponential backoff.
Definition at line 60 of file PeventCollector.hpp.
template<class CollectedEntityType >
template<typename... Targs>
Actually collect the object, and write out a pevent. We ovverride the collect method to ensure the the generateCollectionString is always called, even when there is not a change.
Definition at line 93 of file PeventCollector.hpp.