ZEESHAN KHATIB Posted January 13, 2019 Report Share Posted January 13, 2019 I tried to read from LRM couldn't understand and tried to goggled didn't get, Can anyone please explain Byte enable pointer attribute and Byte enable length attribute of generic payload ? Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted January 14, 2019 Report Share Posted January 14, 2019 4 hours ago, ZEESHAN KHATIB said: I tried to read from LRM couldn't understand and tried to goggled didn't get, Can anyone please explain Byte enable pointer attribute and Byte enable length attribute of generic payload ? It is explained in section 14.13 of SystemC standard. You should read all items from a) to n) to understand all usage details. From my experience, most models that I've seen do not use byte enables. But let's consider a basic example. Suppose we have a a memory target and it receives following transaction: { command = TLM_WRITE_COMMAND, address = 0x0, data[4] = { 0x1, 0x2, 0x3, 0x4 } byte_enable[4] = { 0x0, 0xff, 0x0, 0xff } } byte_enable [ N ] == 0x0 means that N'th byte of data should be ignored by target. Consider that memory had following values before processing the transaction: memory[ 0 ] == 0xA; memory[ 1 ] == 0xB; memory[ 2 ] == 0xC; memory[ 3 ] == 0xD; Since byte_enable[0] and byte_enable[2] are equal to 0x0, it means that corresponding bytes will be ignored during processing of transaction. So after processing the transaction memory will hold following values: memory[ 0 ] == 0xA; memory[ 1 ] == 0x2; memory[ 2 ] == 0xC; memory[ 3 ] == 0x4; Quote Link to comment Share on other sites More sharing options...
ZEESHAN KHATIB Posted January 16, 2019 Author Report Share Posted January 16, 2019 Thanks a lot Roman . Quote Link to comment Share on other sites More sharing options...
Sameeksha Mutalikdesai Posted July 10, 2023 Report Share Posted July 10, 2023 On 1/14/2019 at 5:43 AM, Roman Popov said: On 1/16/2019 at 12:19 PM, ZEESHAN KHATIB said: Thanks a lot Roman . Thanks a lot. That helped. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.