Jump to content

Recommended Posts

Posted

Hello

Do I need to call b-transport twice when writing a 64 bit register via a 32 bit socket?

Do a 32 bit socket can only read or write 32 bit or less at a time?

Thank you

Khushi

Posted

The TLM payload carries a data as a byte array, along with length of data and optional byte-enables. An initiator can perform a 64-bit (or even more) transfers with a single `b_transport` call, by setting the length appropriately.

So - you may then ask, why is the socket width that is cooked into the type relevant? One reason is that the width is reflective of the data-width in real hardware, so could be used to calculate an annotated delay value (for example). Another place where it assumes importance if we have mixed-endian systems - the specification has a discussion on that.

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