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

/*Write your code here*/
module i2c_line(input drive_low,output sda);
reg sda_reg;
always@(*)begin 
sda_reg=(drive_low==1'b1)?1'b0:1'b1;

end
assign sda=sda_reg;
endmodule
Was this helpful?
Upvote
Downvote