RTL Design · Medium · SystemVerilog

I²C Byte Transmitter

Transmit one byte MSB-first using open-drain SDA.

Task

Load tx_data on load. On each scl_fall, advance to the next bit. Set sda_drive_low when the current transmit bit is zero.

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, transmit, open drain

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

Related problems

Explore the RTL Design Practice & Interview Preparation hub.

Continue practising