CPUs and architecture

In microcontrollers and similar devices, which scheme assigns peripheral registers to the same address space as memory and operates them with ordinary memory read/write instructions?

  1. AVirtual memory
  2. BMemory-mapped I/O
  3. CCache coherence
Show answer and explanation

Answer: B. Memory-mapped I/O

In memory-mapped I/O, control registers of peripherals such as timers and UARTs are assigned specific addresses and operated with the same read/write instructions as memory. Compared with schemes that provide dedicated I/O instructions (port-mapped I/O), it keeps the instruction set simple.

  • A. Virtual memory maps virtual addresses to physical addresses.
  • B. Correct. Peripherals are assigned to the memory space and operated through it.
  • C. Cache coherence keeps the contents of multiple caches consistent.
Practice this topic Back to topic

More CPUs and architecture questions

  1. What is the role of the watchdog timer built into microcontrollers?
  2. When a program calls a subroutine (function), which area is generally used to temporarily save the return address and similar information?
  3. Which correctly lists the "three Cs" classification of cache misses?
  4. In an out-of-order CPU, which mechanism commits (retires) the results of instructions executed out of order in the program's original order?
  5. What is the main purpose of register renaming in out-of-order CPUs?