Jump to content

Errors in SystemC TLM code


Recommended Posts

Hello all,

 

I had developed function in following way in my code, i am getting errors given below. Please let me know the cause of these errors. 

 

 

Function declaration, definition

 

void payload_gen(tlm_generic_payload trans_payload, simple_initiator_socket ini_socket, tlm_command read_write_cmd_pyld, sc_dt::uint64 addr, unsigned int data_len, unsigned char* pkt)

 

{

   trans_payload.set_command(read_write_cmd_pyld);

   .

   .

   trans_payload.set_data_ptr((unsigned char*)(pkt));

   .

   .

}

 

Function call

 

payload_gen(hci_host_trans, hci_host_ini_socket, TLM_WRITE_COMMAND, EVT_COMMAND_COMPLETE_EVENT_CODE, 6, &return_evt_pkt[0]);

 

 

After Compilation

note: synthesized method ‘tlm_utils::simple_initiator_socket::simple_initiator_socket(const tlm_utils::simple_initiator_socket&)’ first required here

error: initializing argument 2 of ‘void hci_top::payload_gen(tlm::tlm_generic_payload, tlm_utils::simple_initiator_socket, tlm::tlm_command, sc_dt::uint64, unsigned int, unsigned char*)’

 

 

 

 

Regards

cam

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...