1 #include "fsm/scd_stsw_time_req.h"
3 #include "scd_logging.h"
4 #include "scd_exception.h"
5 #include "scd_cont_slave_wrapper.h"
8 void scd_stsw_time_req::recv_time_nack()
14 void scd_stsw_time_req::recv_time_ack()
16 _fsm.set_state(_st_time_ack);
20 void scd_stsw_time_req::send_time_nack()
22 scd_command* cmd = new scd_command(SCD_CM_CONTROL, SCD_CM_TIME_NACK);
23 _fsm.send_command(cmd);
28 bool scd_stsw_time_req::time_req() const { return true; }
31 void scd_stsw_time_req::set_busy()
33 _fsm.save_state(_st_busy);
37 void scd_stsw_time_req::set_idle(const sc_core::sc_time& time)
40 _fsm.save_state(_st_idle);
44 void scd_stsw_time_req::set_done()
46 _time_step = sc_core::SC_ZERO_TIME;
47 _fsm.save_state(_st_done);