1 #include "fsm/scd_stsw_term_req.h"
3 #include "scd_logging.h"
4 #include "scd_exception.h"
5 #include "scd_cont_slave_wrapper.h"
8 void scd_stsw_term_req::recv_term_nack()
14 void scd_stsw_term_req::recv_term_ack()
16 _fsm.set_state(_st_term_ack);
20 void scd_stsw_term_req::send_term_nack()
22 scd_command* cmd = new scd_command(SCD_CM_CONTROL, SCD_CM_TERM_NACK);
23 _fsm.send_command(cmd);
28 bool scd_stsw_term_req::term_req() const { return true; }
31 void scd_stsw_term_req::set_busy()
33 _time_step = sc_core::SC_ZERO_TIME;
34 _fsm.save_state(_st_busy);
38 void scd_stsw_term_req::set_idle(const sc_core::sc_time& time)
41 _fsm.save_state(_st_idle);
45 void scd_stsw_term_req::set_done()
47 _fsm.save_state(_st_done);