RTL Design · Medium · Verilog, SystemVerilog, VHDL

4-Request Priority Arbiter

A priority arbiter chooses one winner when multiple devices request access to a shared resource at the same time.

Task

Design a combinational 4-request priority arbiter. The input req[3:0] represents four requesters. A bit value of 1 means that requester is asking for access. Drive grant[3:0] so that only the highest-priority active requester is granted. Requester 3 has the highest priority and requester 0 has the lowest.

Examples

Constraints

What this problem is testing

A strong answer translates the requirement into synthesizable state and combinational logic, states reset and update semantics precisely, and handles boundary conditions rather than only the nominal case.

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

Verification plan

Edge cases worth testing

Common mistakes

Interview follow-up questions

Concepts to review

combinational, arbiter, priority

Open 4-Request Priority Arbiter in the HDLForge interactive editor.

Related problems

Explore the RTL Design Practice & Interview Preparation hub.

Continue practising