Part Number: AM6548
I've asked this already in the referenced thread, but since that thread is marked as answered I'm guessing that it might not get answered anymore.
I'm looking for ways to optimize the tiesc_memcpy/memset functions that come with the EtherCAT slave for the AM6548. These functions operate on 8-bit pointers only, which is of course less than optimal.
Can someone tell me which types of accesses the ICSSG memory supports? E.g. the A53 TRM says that for device type memory the ACE master will only generate:
- INCR N (N:1, 2, or 4) 128-bit for write transfers.
- INCR N (N:1, 2, or 4) 128-bit for read transfers.
- INCR 1 32-bit, 64-bit, and 128-bit for read transfers.
- INCR 1 8-bit, 16-bit, 32-bit, 64-bit, and 128-bit for write transfers.
In the referenced thread the answer was that "accesses to the ICSSG memory need to be 32-bit aligned and n*4 bytes in length to complete properly".
I briefly debugged the memset/memcpy routines that come with the A53 compiler, and it seems that the ICSSG memory is able to handle even STP q0, q0, [xN] instructions that probably generate a burst of two 128-bit writes.
What I don't know is if there are any guarantees for what the ICSSG supports, and what the interconnect does to the processor's write transactions.
Can I assume that a write of any size is safe, as long as it's aligned to 32-bit, because the interconnect (or the ICSSG memory) translates all larger transactions into 32-bit writes? Is it safe to use 16-bit writes for 16-bit aligned addresses? Is it ok to use 8-bit accesses, or does that incur any additional penalty apart from the overhead of 8-bit vs. 32-bit transfers?
The R5f guarantees that all accesses to device type or strongly ordered memory occur as 32-bit writes, even if a STRD or STM is used, so the situation should be simpler for the R5f.
Regards,
Dominic