-
MMU Translates Virtual Address → Physical Address
-
Every memory access from the CPU (in virtual address space) goes through the MMU.
-
It uses page tables to resolve Virtual Address (VA) → Physical Address (PA).
-
-
MMU Provides Memory Attributes
-
In addition to translation, the MMU tells the CPU:
-
Is this region cacheable?
-
Should it be write-back, write-through, or non-cacheable?
-
Is it device memory or normal memory?
-
-
-
Cache Uses MMU Info to Decide Behavior
-
If a region is cacheable, cache stores/fetches data for that region.
-
If non-cacheable, all accesses go directly to RAM (or MMIO).
-
MMU attributes control whether cache is used at all.
Example Flow (ARM Cortex-A CPU):
No comments:
Post a Comment