Prev Problem
Next Problem

23. Open-Drain I2C SDA line

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

 

Code

module i2c_line (
    input  wire drive_low,   // 1 = pull SDA low, 0 = release
    output tri1 sda            // open-drain SDA line, default high
);

assign sda = drive_low ? 1'b0 : 1'bz;

endmodule
Was this helpful?
Upvote
Downvote