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