X-Git-Url: http://sraa.de/git/?a=blobdiff_plain;f=dol%2Fsrc%2Fdol%2Fvisitor%2Fhdsd%2Fscd%2Ffsm%2Fscd_sts_time.h;fp=dol%2Fsrc%2Fdol%2Fvisitor%2Fhdsd%2Fscd%2Ffsm%2Fscd_sts_time.h;h=846734275e3fd4a4dc416befcac49c2953c12b9a;hb=8c411cf24ed0eb889191aaeafd8fa1e69081df42;hp=0000000000000000000000000000000000000000;hpb=dea7a4fb1ed110d3ce6e6d9255103d724bd66c0e;p=jump.git diff --git a/dol/src/dol/visitor/hdsd/scd/fsm/scd_sts_time.h b/dol/src/dol/visitor/hdsd/scd/fsm/scd_sts_time.h new file mode 100644 index 0000000..8467342 --- /dev/null +++ b/dol/src/dol/visitor/hdsd/scd/fsm/scd_sts_time.h @@ -0,0 +1,28 @@ +#ifndef SCD_STS_TIME_H +#define SCD_STS_TIME_H + +#include "fsm/scd_sts_base.h" + + +/* forward declaration */ +class scd_cont_man_slave; + + +class scd_sts_time : public scd_sts_base +{ +public: + scd_sts_time(scd_simulator& sim, scd_cont_man_slave& fsm): + scd_sts_base(sim, fsm) { _name = "time"; } + virtual ~scd_sts_time() {} + + void set_time_step(const sc_core::sc_time& time); + + /* scd_cont_fsm_if */ + bool advance_time() const; + const sc_core::sc_time& get_time_step(); + +private: + sc_core::sc_time _time_step; +}; + +#endif