4#include "MessageCategories.hpp"
6const char * Producer::name =
"producer";
11 max_ints_to_send_(p->max_ints_to_send),
12 producer_info_(node, message_categories::INFO,
"Producer Info Messages")
17 pnc->test_param = pnc->test_param + 1;
20 warn_logger_ <<
" Modify test_b Producer(): " << pnc->test_param.getValue();
22 p->arch_override_test_param.ignore();
26void Producer::produceData_()
28 if(current_ints_count_ < max_ints_to_send_)
32 <<
" Sending " << current_ints_count_ << std::endl;
36 producer_out_port_.
send(current_ints_count_);
37 ++current_ints_count_;
42 <<
" Is done sending data " << current_ints_count_;
#define SPARTA_EXPECT_FALSE(x)
A macro for hinting to the compiler a particular condition should be considered most likely false.
#define CREATE_SPARTA_HANDLER(clname, meth)
void send(const DataT &dat, sparta::Clock::Cycle rel_time=0)
Send data to bound receivers.
TreeNode * getContainer()
Gets the TreeNode (container) for this resource (if any)
std::string getName() const
Node in a composite tree representing a sparta Tree item.
std::string getLocation() const override final
Macros for handling exponential backoff.