Memory Addressing; Mmu Organization - IBM PowerPC 604 User Manual

Risc
Table of Contents

Advertisement

5.1.1 Memory Addressing
A program references memory using the effective (logical) address computed by the
processor when it executes a load, store, branch, or cache instruction, and when it fetches
the next instruction. The effective address is translated to a physical address according to
the procedures described in Chapter?, "Memory Management," in The Programming
Environments Manual, augmented with infonnation in this chapter. The memory
subsystem uses the physical address for the access.
For a complete discussion of effective address calculation, see Section 2.3.2.3, "Effective
Address Calculation."
5.1.2 MMU Organization
Figure 5-1 shows
the
conceptual organization of a PowerPC MMU in a 32-bit
implementation; note that it does not describe the specific hardware used to implement the
memory management function for a particular processor. Processors may optionally
implement on-Chip TLBs and may optionally support
the
automatic search of
the
page
tables for PTEs.
In
addition, other hardware features (invisible to the system software) not
depicted in the figure may be implemented.
The 604 maintains two on-chip TLBs with
the
following characteristics:
• 128 entries, two-way set associative (64 x 2), LRU replacement
• Data TLB supports the DMMU; instruction TLB supports the IMMU
• Hardware TLB update
• Hardware update of memory access recording bits in the translation table
In
the event of a TLB miss, the hardware attempts to load the TLB based on the results of
a translation table search operation.
Figure 5-2 and Figure 5-3 show
the
conceptual organization of the 604 instruction and data
MMUs, respectively. The instruction addresses shown in Figure 5-2 are generated by the
processor for sequential instruction fetches and addresses that correspond to a change of
program flow. Data addresses shown in Figure 5-3 are generated by load and store
instructions (both for the memory and the direct-store interfaces) and by cache instructions.
As
shown in the figures, after an address is generated, the higher-order bits of the effective
address, EAO-EA19 (or a smaller set of address bits, EAO-EAn, in the cases of blocks), are
translated into physical address bits PAO-PAI 9.
The
lower-order address bits, A20-A31 are
untranslated and therefore identical for both effective and physical addresses. After
translating the address, the MMUs pass the resulting 32-bit physical address to the memory
subsystem.
5-4
PowerPC 604 RISC Microprocenor User's Manual

Advertisement

Table of Contents
loading

Table of Contents