Jump to content

DMI dealing with multiple memory

Recommended Posts

hello ,


i have a case where i have to multiple memory which i am accessing using DMI ptr on some particular condtion ..

i have something as below but not sure whether this will work or not ...

bool ufs_model<DATA_TYPE,BUS_WIDTH>::get_direct_mem_ptr(tlm::tlm_generic_payload& trans,tlm::tlm_dmi&  dmi_data){
      wait(e_UTRLDBR | e_UTMRLDBR); 
      dmi_data.set_dmi_ptr(reinterpret_cast<unsigned char*>((wait(e_UTRLDBR))?(&utrd_mem[0][0])&utmrd_mem[0][0]));       
      return true;

this event is notified from some registers ....

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.

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...