Difficulty: Easy
Correct Answer: memory-mapped I/O
Explanation:
Introduction / Context:Processors interact with peripherals using either a separate I/O space (isolated I/O) or by placing device registers into the regular memory map (memory-mapped I/O). Understanding the naming clarifies how software accesses devices.
Given Data / Assumptions:
Concept / Approach:Memory-mapped I/O assigns devices to unique addresses in the system memory map. Software uses standard load/store instructions to interact, and the bus fabric routes those transactions to the appropriate device instead of RAM. This contrasts with isolated/ported I/O (for example, x86 IN/OUT instructions) that uses a distinct I/O space.
Step-by-Step Solution:
Recognize that the question describes device registers residing in the memory address space.Recall the standard term: memory-mapped I/O.Select the corresponding option.Note advantages: uniform instruction set, easy pointer arithmetic; disadvantages: possible cache coherency considerations.Verification / Alternative check:Most microcontrollers (ARM Cortex-M, RISC-V MCUs) use memory-mapped I/O for peripheral registers documented in datasheets.
Why Other Options Are Wrong:
Common Pitfalls:Forgetting to mark device regions as noncacheable; treating I/O like RAM can cause stale reads unless memory attributes are set correctly.
Final Answer:memory-mapped I/O
Discussion & Comments