Hi,
What is real time application of AXI exclusive access.
Is it necessarily to do Exclusive read first then exclusive write.
May i know the reason is it so?
To allow Exclusive instructions (LDREX/STREX/LDXR/STXR) on the processor to non-cached addresses.
Exclusive accesses are used to implement synchronization primitives, such as mutexes and semaphores. There are various resources with more detailed descriptions, but a quick summary:
That way software can:
Must such locks will be in cacheable memory, so the exclusivity checking can be handled within the processor or as part of cache coherency. Meaning you wouldn't see any exclusives accesses on the bus. But, if for example, you're synchronizing with a non-cached/non-cache coherent master (such as a system controller) then you need to the monitoring in the memory system. And hence need the AXI exclusive accesses.
For a more detailed description, try the Cortex-A Programmer's Guides.
Developer Guides and Articles