dol: initial dol commit
[jump.git] / dol / src / dol / visitor / hdsd / scd / fsm / scd_stsw_failed.h
diff --git a/dol/src/dol/visitor/hdsd/scd/fsm/scd_stsw_failed.h b/dol/src/dol/visitor/hdsd/scd/fsm/scd_stsw_failed.h
new file mode 100644 (file)
index 0000000..cf13d9d
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef SCD_STSW_FAILED_H
+#define SCD_STSW_FAILED_H
+
+#include "fsm/scd_stsw_base.h"
+
+
+/* forward declaration */
+class scd_cont_slave_wrapper;
+
+
+class scd_stsw_failed : public scd_stsw_base
+{
+public:
+    scd_stsw_failed(scd_simulator& sim, scd_cont_slave_wrapper& fsm):
+        scd_stsw_base(sim, fsm) { _name = "failed"; }
+    virtual ~scd_stsw_failed() {}
+
+    void set_failed();
+
+    /* scd_cont_fsm_if */
+    void set_fail();
+    bool active() const;
+    bool failed() const;
+};
+
+#endif