Hi to all!
I am using Lattice MachXO2 FPGA.
On datasheet I read there is embedded I2C module on this FPGA.
I would like to create a fake DS3231 I2C slave, I mean, as exercise I would write I2C slave module, read and write registers from master (microcontroller) and increase internal registers using external clock.
Are there available examples about verilog code using embedded I2C modules?
Thanks.