Xilinx / qemu

Xilinx's fork of Quick EMUlator (QEMU) with improved support and modelling for the Xilinx platforms.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821395464/QEMU+User+Documentation
Other
238 stars 152 forks source link

cadence_i2c.c DATA register issue #77

Open libolingjl opened 1 year ago

libolingjl commented 1 year ago

In i2c driver, I use below code to push DATA fifo: for (int i = 0; i < 14; i++) REG_DATA = data; I want the size of the FIFO to be 14 when I finish executing the above statement, because the CPU is much faster than I2C. But in cadence_i2c.c, each write register triggers the i2c_send, and after the above statement is executed, the FIFO is still empty. This can cause problems for the operation of the drive.