dol: initial dol commit
[jump.git] / dol / src / dol / visitor / hdsd / scd / fsm / scd_stsw_idle.h
diff --git a/dol/src/dol/visitor/hdsd/scd/fsm/scd_stsw_idle.h b/dol/src/dol/visitor/hdsd/scd/fsm/scd_stsw_idle.h
new file mode 100644 (file)
index 0000000..4af1c6d
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef SCD_STSW_IDLE_H
+#define SCD_STSW_IDLE_H
+
+#include "fsm/scd_stsw_base.h"
+
+
+/* forward declaration */
+class scd_cont_slave_wrapper;
+
+
+class scd_stsw_idle : public scd_stsw_base
+{
+public:
+    scd_stsw_idle(scd_simulator& sim, scd_cont_slave_wrapper& fsm):
+        scd_stsw_base(sim, fsm) { _name = "idle"; }
+    virtual ~scd_stsw_idle() {}
+    
+    /* scd_cont_wrapper_if */
+    void send_time_req();
+    bool idle() const;
+
+    /* scd_cont_fsm_if */
+    void set_busy();
+    void set_done();
+
+};
+
+#endif