23class rsc :
public sc_core::sc_module,
public rsc_gen
26 cci::cci_broker_handle m_broker;
30 sc_core::sc_event set_irq_ev;
31 sc_core::sc_event clear_irq_ev;
33 static constexpr uint32_t NUM_DRV = 4;
34 static constexpr uint32_t CMDS_PER_TCS = 16;
35 static constexpr uint32_t AMC_MODE_EN = (1u << 16);
36 static constexpr uint32_t AMC_MODE_TRIGGER = (1u << 24);
37 static constexpr uint32_t TCS_STATUS_IDLE = (1u << 0);
38 static constexpr uint32_t CMD_STATUS_DONE = (1u << 0) | (1u << 8) | (1u << 16);
46 reg_bank* cmd_read_resp;
52 drv_view m_drv[NUM_DRV];
55 tlm_utils::multi_passthrough_target_socket<rsc> target_socket;
58 sc_core::sc_vector<InitiatorSignalSocket<bool>> irq;
60 rsc(sc_core::sc_module_name name);
62 void start_of_simulation() {}
63 void before_end_of_elaboration();
66 void trigger_tcs(uint32_t drv, uint32_t tcs);
69 void update_irq(uint32_t drv);
Class that encapsulates a 'register' that proxies it's data via a tlm interface, and uses callbacks (...
Definition registers.h:556