APB Protocol Interview Questions with Answers
Q: What is APB protocol?
A: APB (Advanced Peripheral Bus) is a low-bandwidth, low-power bus protocol part of the AMBA
family. It's used to connect peripherals in SoCs.
Q: Where is APB used in a SoC?
A: APB is used for connecting low-speed peripherals like UART, timers, GPIOs to the main system
bus.
Q: What are the basic signals in APB?
A: Key signals include: PCLK, PRESETn, PADDR, PSEL, PENABLE, PWRITE, PWDATA,
PRDATA, PREADY, PSLVERR.
Q: Explain the APB write transaction sequence.
A: 1. Setup phase: Master asserts PSEL and provides address and data.
2. Enable phase: Master asserts PENABLE.
3. Transfer completes when PREADY is high.
Q: Explain the APB read transaction sequence.
A: 1. Setup phase: Master asserts PSEL with address and PWRITE=0.
2. Enable phase: PENABLE is asserted.
3. Transfer completes when PREADY is high and PRDATA is sampled.
Q: What is the function of the PREADY signal?
A: It indicates if the slave is ready to complete the current transfer. When low, the master waits.
Q: How does APB differ from AHB and AXI?
A: APB is non-pipelined and simpler, suitable for low-speed peripherals. AHB and AXI support
pipelining and higher performance.
Q: Can APB support burst transfers?
A: No, APB is designed for single, non-burst transactions only.
Q: What is PSLVERR?
A: It's a signal asserted by the slave to indicate an error in the transfer.
Q: What happens if PREADY is always low?
A: The master will stall indefinitely waiting for the slave, potentially leading to a deadlock.