dol: initial dol commit
[jump.git] / dol / src / dol / visitor / hdsd / scd / fsm / scd_stsw_busy.cpp
diff --git a/dol/src/dol/visitor/hdsd/scd/fsm/scd_stsw_busy.cpp b/dol/src/dol/visitor/hdsd/scd/fsm/scd_stsw_busy.cpp
new file mode 100644 (file)
index 0000000..f96ba77
--- /dev/null
@@ -0,0 +1,22 @@
+#include "fsm/scd_stsw_busy.h"
+
+#include "scd_logging.h"
+#include "scd_exception.h"
+#include "scd_cont_slave_wrapper.h"
+
+
+void scd_stsw_busy::set_idle(const sc_core::sc_time& time)
+{
+    _time_step = time;
+    _fsm.set_state(_st_idle);
+}
+
+
+void scd_stsw_busy::set_done()
+{
+    _time_step = sc_core::SC_ZERO_TIME;
+    _fsm.set_state(_st_done);
+}
+
+
+bool scd_stsw_busy::busy() const { return true; }