28 static std::string gen_name(
const char* first,
const char* second) {
30 ss << first <<
"_" << second;
37 using port_type = sc_core::sc_port<fw_interface_type, N, POL>;
38 using export_type = sc_core::sc_export<bw_interface_type>;
39 using base_target_socket_type = tlm::tlm_base_target_socket_b<BUSWIDTH, fw_interface_type, bw_interface_type>;
40 using base_type = tlm::tlm_base_initiator_socket_b<BUSWIDTH, fw_interface_type, bw_interface_type>;
42 ace_rec_initiator_socket()
44 , recorder(gen_name(this->name(),
"tx").c_str()) {
45 this->add_attribute(recorder.enableTracing);
46 this->add_attribute(recorder.enableTimed);
49 explicit ace_rec_initiator_socket(
const char* name)
51 , recorder(gen_name(this->name(),
"tx").c_str()) {}
53 virtual ~ace_rec_initiator_socket() {}
55 virtual const char*
kind()
const {
return "axi_rec_initiator_socket"; }
63 virtual void bind(base_target_socket_type& s) {
65 (this->get_base_port())(recorder);
66 recorder.fw_port(s.get_base_interface());
68 (s.get_base_port())(recorder);
69 recorder.bw_port(this->get_base_interface());
75 virtual void bind(base_type& s) {
77 (this->get_base_port())(recorder);
78 recorder.fw_port(s.get_base_port());
80 (s.get_base_export())(recorder);
81 recorder.bw_port(this->get_base_export());
88 virtual void bind(bw_interface_type& ifs) { (this->get_base_export())(ifs); }
91 recorder.setExtensionRecording(extensionRecording);