RTL Design · Medium · SystemVerilog

I²C Byte Receiver

Receive one I²C byte by sampling SDA on SCL rising-edge pulses.

Task

Shift eight sampled bits MSB-first into byte_out and pulse byte_valid after the eighth sample.

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

I2C, receive, shift register

Open I²C Byte Receiver in the HDLForge interactive editor.

Related problems

Explore the RTL Design Practice & Interview Preparation hub.

Continue practising