Functional Description; Default Configuration; Configuration Options - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

31.5 Functional description

The FMC is a flash acceleration unit with flexible buffers for user configuration. Besides
managing the interface between the device and the flash memory, the FMC can be used
to restrict access from crossbar switch masters and customize the cache and buffers to
provide single-cycle system-clock data-access times. Whenever a hit occurs for the
prefetch speculation buffer, the cache, or the single-entry buffer, the requested data is
transferred within a single system clock.

31.5.1 Default configuration

Upon system reset, the FMC is configured to provide a significant level of buffering for
transfers from the flash memory:
• Crossbar masters 0, 1, 2 have read access to bank 0.
• For bank 0:
• Prefetch support for data and instructions is enabled for crossbar masters 0, 1, 2.
• The cache is configured for least recently used (LRU) replacement for all four
ways.
• The cache is configured for data or instruction replacement.
• The single-entry buffer is enabled.

31.5.2 Configuration options

Though the default configuration provides a high degree of flash acceleration, advanced
users may desire to customize the FMC buffer configurations to maximize throughput for
their use cases. When reconfiguring the FMC for custom use cases, do not program the
FMC's control registers while the flash memory is being accessed. Instead, change the
control registers with a routine executing from RAM in supervisor mode.
The FMC's cache and buffering controls within PFB0CR allow the tuning of resources to
suit particular applications' needs. The cache and buffer are each controlled individually.
The register controls enable buffering and prefetching per access type (instruction fetch
or data reference). The cache also supports 3 types of LRU replacement algorithms:
• LRU per set across all 4 ways,
• LRU with ways [0-1] for instruction fetches and ways [2-3] for data fetches, and
• LRU with ways [0-2] for instruction fetches and way [3] for data fetches.
Freescale Semiconductor, Inc.
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Chapter 31 Flash Memory Controller (FMC)
603

Advertisement

Table of Contents
loading

Table of Contents