dol: initial dol commit
[jump.git] / dol / src / dol / visitor / hdsd / scd / fsm / scd_stsw_init.h
diff --git a/dol/src/dol/visitor/hdsd/scd/fsm/scd_stsw_init.h b/dol/src/dol/visitor/hdsd/scd/fsm/scd_stsw_init.h
new file mode 100644 (file)
index 0000000..aa4d8a3
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef SCD_STSW_INIT_H
+#define SCD_STSW_INIT_H
+
+#include "fsm/scd_stsw_base.h"
+
+
+/* forward declaration */
+class scd_cont_slave_wrapper;
+
+
+class scd_stsw_init : public scd_stsw_base
+{
+public:
+    scd_stsw_init(scd_simulator& sim, scd_cont_slave_wrapper& fsm):
+        scd_stsw_base(sim, fsm) { _name = "init"; }
+    virtual ~scd_stsw_init() {}
+
+    void set_connected();
+    void set_failed();
+
+    /* scd_cont_fsm_if */
+    void set_idle(const sc_core::sc_time& time);
+    void set_busy();
+    void set_done();
+    void set_fail();
+    void process();
+    bool active() const;
+    bool advance_time() const;
+};
+
+#endif