Protocols · Hard · Verilog, SystemVerilog, VHDL

APB Register Peripheral

Build a minimal APB peripheral exposing one 32-bit read/write register.

Task

Complete APB accesses in the enable phase. Writes to address 0 update the register; reads from address 0 return it. PREADY may stay high and PSLVERR low.

Examples

Constraints

What this problem is testing

Protocol questions test cycle-accurate sequencing, framing, handshake rules, backpressure, data stability, and the independence of channels or phases.

Interview habit: before coding, state reset behavior, the state that must be stored, and the conditions that update each output.

Verification plan

Common mistakes

Interview follow-up questions

Concepts to review

apb, amba, register-file, bus

Open APB Register Peripheral in the HDLForge interactive editor.

Related problems

Explore the Digital Protocol Practice: UART, SPI, AXI, APB & I2C hub.

Continue practising