12 #ifndef SST_CORE_CORETEST_CLOCKERCOMPONENT_H 13 #define SST_CORE_CORETEST_CLOCKERCOMPONENT_H 15 #include "sst/core/component.h" 18 namespace CoreTestClockerComponent {
24 SST_ELI_REGISTER_COMPONENT(
27 "coreTestClockerComponent",
28 SST_ELI_ELEMENT_VERSION(1,0,0),
29 "Clock Benchmark Component",
30 COMPONENT_CATEGORY_UNCATEGORIZED
33 SST_ELI_DOCUMENT_PARAMS(
34 {
"clock",
"Clock frequency",
"1GHz" },
35 {
"clockcount",
"Number of clock ticks to execute",
"100000"}
39 SST_ELI_DOCUMENT_STATISTICS(
43 SST_ELI_DOCUMENT_PORTS(
47 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
59 virtual bool tick(SST::Cycle_t);
61 virtual bool Clock2Tick(SST::Cycle_t, uint32_t);
62 virtual bool Clock3Tick(SST::Cycle_t, uint32_t);
64 virtual void Oneshot1Callback(uint32_t);
65 virtual void Oneshot2Callback();
74 std::string clock_frequency_str;
81 #endif // SST_CORE_CORETEST_CLOCKERCOMPONENT_H Handlers with 1 handler defined argument to callback from caller.
Definition: ssthandler.h:170
Definition: ssthandler.h:294
A class to convert between a component's view of time and the core's view of time.
Definition: timeConverter.h:26
Main component object for the simulation.
Definition: component.h:30
Definition: coreTest_ClockerComponent.h:20
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_ClockerComponent.h:51
Parameter store.
Definition: params.h:55
void finish()
Called after complete phase, but before objects are destroyed.
Definition: coreTest_ClockerComponent.h:52