Introduce a generic DPI model of an I2C bus with an arbitrary number of attached I2C devices. All bus speeds and device behaviours including Sr (restart) conditions should be supported, and only support for clock stretching and multiple controllers is presently unimplemented. Out-Of-Band signals are present in each direction for future extensions such as interrupt signalling.
Introduce simple device models for:
RPi Sense HAT ID EEPROM
RPi Sense HAT IMU (WHO_AM_I registers only)
AS621x Digital Temperature Sensor
These are the devices that are presently anticipated and exercised by the sw/legacy/demo/i2c_hat_id code, allowing the code to produce the same results in Verilator simulation as on the FPGA build.
Introduce a generic DPI model of an I2C bus with an arbitrary number of attached I2C devices. All bus speeds and device behaviours including Sr (restart) conditions should be supported, and only support for clock stretching and multiple controllers is presently unimplemented. Out-Of-Band signals are present in each direction for future extensions such as interrupt signalling.
Introduce simple device models for:
WHO_AM_I
registers only)These are the devices that are presently anticipated and exercised by the
sw/legacy/demo/i2c_hat_id
code, allowing the code to produce the same results in Verilator simulation as on the FPGA build.