A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: ubu1476294329825
Ixiasoft
Visible to Intel only — GUID: ubu1476294329825
Ixiasoft
15.7.3. I2C Serial Interface Connection
The core provides four ports for I2C serial connections. For external I2C serial connections, both sda_in and sda_oe are connected to a bidirectional open drain I2C data line buffer. Both scl_in and scl_oe are connected to another bidirectional open drain I2C clock line buffer. It is recommended to use the I/O IP core to generate the bidirectional open drain buffer. You can then instantiates the generated buffer primitives from the IP core into their system top level design file.
Sample Code for I2C Serial Interface Connection Verilog: assign i2c_serial_scl_in = arduino_adc_scl; assign arduino_adc_scl = i2c_serial_scl_oe ? 1'b0 : 1'bz; assign i2c_serial_sda_in = arduino_adc_sda; assign arduino_adc_sda = i2c_serial_sda_oe ? 1'b0 : 1'bz; VHDL: i2c_scl_in <= arduino_adc_scl; arduino_adc_scl <= '0' when i2c_scl_oe = '1' else 'Z'; i2c_sda_in <= arduino_adc_sda; arduino_adc_sda <= '0' when i2c_sda_oe = '1' else 'Z';