dol: initial dol commit
[jump.git] / dol / src / dol / visitor / hdsd / scd / fsm / scd_sts_time.h
1 #ifndef SCD_STS_TIME_H
2 #define SCD_STS_TIME_H
3
4 #include "fsm/scd_sts_base.h"
5
6
7 /* forward declaration */
8 class scd_cont_man_slave;
9
10
11 class scd_sts_time : public scd_sts_base
12 {
13 public:
14     scd_sts_time(scd_simulator& sim, scd_cont_man_slave& fsm):
15         scd_sts_base(sim, fsm) { _name = "time"; }
16     virtual ~scd_sts_time() {}
17
18     void set_time_step(const sc_core::sc_time& time);
19
20     /* scd_cont_fsm_if */
21     bool advance_time() const;
22     const sc_core::sc_time& get_time_step();
23
24 private:
25     sc_core::sc_time _time_step;
26 };
27
28 #endif