Skip to content

File tick_manager.h

File List > bindings > simtix > tick_manager.h

Go to the documentation of this file

#pragma once

#include <systemc.h>

namespace simtix {

class TickManager : public sc_module {
 public:
  static void AttachClock(sc_clock *clock);

  TickManager(const TickManager &) = delete;
  TickManager &operator=(const TickManager &) = delete;

 protected:
  explicit TickManager(const sc_module_name &name, sc_clock *clock);
  ~TickManager() = default;

  void Tick();
  sc_clock *clock_;
};

}  // namespace simtix