Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I want to view the i2c data being sent to the DE2 boards audio CODEC. I have a few files that have been generated from SOPC builder eg slow clock, i2c controller, audio config. I tried just generating 50MHz on the CLK signal (system) and running simulation whilst viewing i2c_sdat but got nothing. --- Quote End --- A simulation only does what you ask, so did you ... 1) Have some logic to generate an I2C transaction, eg., a NIOS processor with a program that performs an I2C read or write, or an Avalon-MM BFM that accesses the I2C control registers? 2) Do you have an I2C slave that acts like the CODEC? At a minimum, something that will generate an I2C ACK so that the I2C controller is fooled into thinking there is a device on the I2C bus. It might sound like a lot of work to setup your first simulation, and it can be, but once you have it working, simulating new components is a lot faster. So, take the time now and learn how. Ask questions when you get stuck and you'll get help. Cheers, Dave