GPIO Bare-Metal Driver
Drive the memory-mapped GPIO peripheral from firmware.
Task
Define GPIO_BASE=0x20001000, GPIO_OUT offset 0x0 and GPIO_IN offset 0x4. Implement gpio_write and gpio_read.
Examples
- Implement the required behavior and preserve it under the stated interface/control conditions.
Constraints
- Keep the implementation deterministic and consistent with the interface contract described in the task.
Concepts to review
C, GPIO, driver
Open HDLForge to solve this problem in the interactive editor.
Related problems
- Build a UVM Driver — Medium
- Backpressure-Aware Stream Driver — Medium
- UVM Agent Build and Connect — Hard
- AXI-Lite UVM Driver — Hard
- Memory-Mapped GPIO — Medium