Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I already have the program performing an i2c write (to initialise the codec) and it all works fine on the de2 board. What would be the best way then to view the serial i2c data? --- Quote End --- To view the I2C data on the hardware, you can read the I2C parallel data register. Of course, if that's not working, you might want to look at the serial data stream, and in that case, you can use the SignalTap II logic analyzer (it gets embedded inside the FPGA). --- Quote Start --- Can i just generate the ack by drawing in the waveform? --- Quote End --- It depends what you want out of your simulation. If I was simply interested in checking that an I2C controller worked, then a simple ACK would work fine. However, if you are trying to check a more complex communication sequence with an I2C device, then you need a model of the CODEC. I think in your case, just using SignalTap would be sufficient for you to see what is going on. Cheers, Dave