26 arch_override_test_param =
"reset_in_constructor";
27 auto non_zero_validator = [](uint32_t & val,
const sparta::TreeNode*)->
bool {
33 max_ints_to_send.addDependentValidationCallback(non_zero_validator,
34 "Num to send must be greater than 0");
37 PARAMETER(uint32_t, max_ints_to_send, 100,
"Send a bunch of ints")
39 PARAMETER(std::string, arch_override_test_param,
"arch_override_default_value",
"Set this to true in ParameterSet construction")
53 static const char * name;
65 const uint32_t max_ints_to_send_;
66 uint32_t current_ints_count_ = 0;
File that defines Data[In,Out]Port<DataT>
A set of sparta::Parameters per sparta::ResourceTreeNode.
#define VOLATILE_PARAMETER(type, name, def, doc)
Special-case PARAMETER declaration.
#define PARAMETER(type, name, def, doc)
Parameter declaration.
File that defines the PortSet class.
File that defines the SignalInPort.
File that defines the UniqueEvent class.
File that defines the Unit class, a common grouping of sets and loggers.
@ 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....
DataOutPort is used for transferring any data to another module.
Generic container of Parameters.
SignalInPort receives data from sender using a SignalOutPort.
Node in a composite tree representing a sparta Tree item.
The is the base class for user defined blocks in simulation.
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.