Device Performance OptimizationMPC5644A Microcontroller Reference Manual, Rev. 6Freescale Semiconductor 121priority master and grants it ownership of the slave port. All other masters requesting that slave port arestalled until the higher priority master completes its transactions. By default, requesting masters aregranted access based on a fixed priority. A round-robin priority mode also is available.The main goal of the XBAR is to increase overall system performance by allowing multiple masters tocommunicate concurrently with multiple slaves. In order to maximize data throughput it is essential tokeep arbitration delays to a minimum. The configuration of the crossbar can have implications for theperformance of a system and particular care should be taken when assigning master priorities in a fixedpriority application. Further, by correctly parking saves on relevant masters the initial access times to theslaves can be minimized by negating any initial arbitration penalties.6.3.4.2 Recommended configurationThe specific settings for a given situation are application dependent and thus should be assessed by theuser. However, some general guidelines are available.Optimal XBAR settings are application dependent, but in e200z4/7 (Harvard configuration) based devicesassigning the CPU data bus to have highest priority and parking the slave port associated with systemRAM on this master generally provides the best overall performance.To reconfigure the XBAR as described on the MPC5644A, write the following registers:1. XBAR_SGPCR2 = 0x0000_0001. This parks slave 2 (internal SRAM) on master port 1 (CPU databus).2. Write XBAR_MPR0 = 0x5432_0001. This sets slave port 0 (Flash) to give the master port 1 (CPUdata bus) highest priority.On the e200z4 based devices it may also be beneficial to assign the eDMA to have highest priority for theFlash slave port depending upon the application.More details of the XBAR register configuration can be found in Section 9.2, XBAR registers.6.3.5 Cache6.3.5.1 DescriptionThe MPC5644A provides an 8 KB Instruction, 2-way or 4-way set-associative, Harvard cache design witha 32-byte line size. The cache is disabled by default when reset is negated.The cache improves system performance by providing low-latency instructions to the e200z4 instructionpipelines, which decouples processor performance from system memory performance. There are severalstages to enabling the cache. Not only does the cache itself have to be invalidated then enabled, butmemory regions upon which it can operate must be configured in the MMU to permit cache access.6.3.5.2 Recommended configurationThe exact usage of cache is application dependent but some general guidelines for using cache to improveperformance in a typical application are listed below:• Enable instruction cache for all internal and external memories that code is being executed from.