RTL Design · Medium · SystemVerilog

SoC Address Decoder

Decode the processor address into ROM, RAM, UART, GPIO and timer chip-selects.

Task

Use fixed 4 KB regions: ROM 0x0000_0000, RAM 0x1000_0000, UART 0x2000_0000, GPIO 0x2000_1000 and TIMER 0x2000_2000.

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

Common mistakes

Interview follow-up questions

Concepts to review

SoC, address map, decode

Open SoC Address Decoder in the HDLForge interactive editor.

Related problems

Explore the RTL Design Practice & Interview Preparation hub.

Continue practising