28 PARAMETER(uint32_t, num_producers, 1,
"Number of producers")
38 std::vector<std::unique_ptr<sparta::SignalOutPort>> producer_go_port_;
39 uint32_t current_producer_ = 0;
40 const uint32_t num_producers_;
43 void receiveData_(
const uint32_t & dat);
54 void signalNextProducer_();
File that defines Data[In,Out]Port<DataT>
A set of sparta::Parameters per sparta::ResourceTreeNode.
#define PARAMETER(type, name, def, doc)
Parameter declaration.
File that defines the SignalInPort.
#define CREATE_SPARTA_HANDLER(clname, meth)
File that defines the UniqueEvent class.
File that defines the Unit class, a common grouping of sets and loggers.
File that defines a ValidValue.
static const char * name
Name of this resource. Required by sparta::ResourceFactory.
@ COUNT_NORMAL
Counter counts the number of times something happens like one would expect. This is a weakly monotoni...
Represents a counter of type counter_type (uint64_t). 2 and greater than 0 with a ceiling specified....
DataInPort receives data from sender using a DataOutPort.
Generic container of Parameters.
Node in a composite tree representing a sparta Tree item.
A type of Event that uniquely schedules itself on the schedule within a single time quantum....
The is the base class for user defined blocks in simulation.
sparta::EventSet unit_event_set_
The Unit's event set.
sparta::StatisticSet unit_stat_set_
The Unit's statistic set.
sparta::PortSet unit_port_set_
The Unit's Ports.
Message source object associated with a sparta TreeNode through which messages can be sent.
Provides a wrapper around a value to ensure that the value is assigned.