--- /dev/null
+#include "fsm/scd_stsw_time_req.h"
+
+#include "scd_logging.h"
+#include "scd_exception.h"
+#include "scd_cont_slave_wrapper.h"
+
+
+void scd_stsw_time_req::recv_time_nack()
+{
+ _fsm.load_state();
+}
+
+
+void scd_stsw_time_req::recv_time_ack()
+{
+ _fsm.set_state(_st_time_ack);
+}
+
+
+void scd_stsw_time_req::send_time_nack()
+{
+ scd_command* cmd = new scd_command(SCD_CM_CONTROL, SCD_CM_TIME_NACK);
+ _fsm.send_command(cmd);
+ _fsm.load_state();
+}
+
+
+bool scd_stsw_time_req::time_req() const { return true; }
+
+
+void scd_stsw_time_req::set_busy()
+{
+ _fsm.save_state(_st_busy);
+}
+
+
+void scd_stsw_time_req::set_idle(const sc_core::sc_time& time)
+{
+ _time_step = time;
+ _fsm.save_state(_st_idle);
+}
+
+
+void scd_stsw_time_req::set_done()
+{
+ _time_step = sc_core::SC_ZERO_TIME;
+ _fsm.save_state(_st_done);
+}