UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 17591

3.2 EDK MicroBlaze - Are there instructions for updating the MicroBlaze cache content? Can I view cache content with debuggers?

Description

General Description: 

How can I update or verify the content of the MicroBlaze instruction and data cache? Is it possible to write to the data or instruction cache? Is it possible to view or verify the cache content via GDB or XMD ?

Solution

The MicroBlaze instruction set includes two instructions for changing the cache content. You can use the WIC (Write Instruction Cache) and the WDC (Write Data Cache) instructions to write to the cache if the cache is disabled. In EDK 3.2, GDB and XMD do not support a feature for viewing the content stored in the MicroBlaze cache. There are more cache-related functions, such as disabling the cache using "microblaze_disable_icache()" or "microblaze_disable_dcache()". For more information, refer to the EST User Guide and the MicroBlaze Reference Guide in your EDK installation.

 

You cannot view the cache content with GDB or XMD. However, there is a simple way of verifying it. By executing at that address, MicroBlaze should execute the instructions that were written into the cache.  

 

For example, if you have some code at an address (in memory), and you write different code to the cache at the same address using the WIC instruction. If you now jump to that address, the code written into the cache is executed rather than the code in memory.

AR# 17591
Date Created 09/03/2007
Last Updated 05/15/2014
Status Archive
Type General Article