Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSimulating the I2C Controller
Hello Everyone, I am trying to simulate the I2C controller, but have problem as there is no slave to generate the acknowlege back. Can Anyone tell me how to get around this. Thanks...
Altera_Forum
Honored Contributor
14 years agoOf course noone will know, what is causing the shown waveforms without seeing the code.
Apparently you are simulating in Quartus built-in simulator. This means, that a testbench with I2C slave model isn't an option. In this case, driving the SDA line low at a precalculated time and releasing it afterwards is the only way to simulate the slave's ACK response. Seriously speaking, this kind of simulations demands for a full-featured simulator like Modelsim.