16 #ifndef SST_CORE_CORETEST_CLOCKERCOMPONENT_H
17 #define SST_CORE_CORETEST_CLOCKERCOMPONENT_H
19 #include "sst/core/component.h"
22 namespace CoreTestClockerComponent {
28 SST_ELI_REGISTER_COMPONENT(
31 "coreTestClockerComponent",
32 SST_ELI_ELEMENT_VERSION(1,0,0),
33 "Clock Benchmark Component",
34 COMPONENT_CATEGORY_UNCATEGORIZED
37 SST_ELI_DOCUMENT_PARAMS(
38 {
"clock",
"Clock frequency",
"1GHz" },
39 {
"clockcount",
"Number of clock ticks to execute",
"100000"}
43 SST_ELI_DOCUMENT_STATISTICS(
47 SST_ELI_DOCUMENT_PORTS(
51 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
63 virtual bool tick(SST::Cycle_t);
65 virtual bool Clock2Tick(SST::Cycle_t, uint32_t);
66 virtual bool Clock3Tick(SST::Cycle_t, uint32_t);
68 virtual void Oneshot1Callback(uint32_t);
69 virtual void Oneshot2Callback();
78 std::string clock_frequency_str;
85 #endif // SST_CORE_CORETEST_CLOCKERCOMPONENT_H
Definition: ssthandler.h:100
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:24
Handler with no arguments to callback from caller.
Definition: ssthandler.h:167
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_ClockerComponent.h:55
Parameter store.
Definition: params.h:43
void finish()
Called after simulation completes, but before objects are destroyed.
Definition: coreTest_ClockerComponent.h:56