Site Search

In Hard Processor System (HPS) software, what HWLib API should I use if I want to do a cache writeback to synchronize the cache and main memory?

SoC FPGA SoC EDS/DS-5

Category: SoC


The API used to reflect the contents of the cache to DDR, etc. (memory) is one of the following.

- ALT_STATUS_CODE alt_cache_system_clean (void * vaddress, size_t length);
- ALT_STATUS_CODE alt_cache_system_purge (void * vaddress, size_t length);

The difference between the two is whether to execute only writing back the cache contents (XXX_clean) or execute until Invalidate of the cache after writing back the cache contents (XXX_purge).
See the HWLib documentation for details.


Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.