You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i use the latest rocket-chip and i2c in sifive-blocks to generate SOC,but i2c's output is directly deasserted in the verilog code generated by rocket-chip,as follows :
i can't use i2c driver program to output. so , i wonder whether i make some mistakes or i2c in sifive-blocks can't be used.
The text was updated successfully, but these errors were encountered:
Well, the implementation of I2C comes from opencores implementation of I2C, which is not the best but it works with proper electronics. The short answer is as follows.
Plug I2C scl and sda ports into IOBUF, if implementing in Xilinx, followed by pulling up the pins with 1kohm resistances.
If you are interfacing with a standard I2C bus like one in Arduino, an external pull-up is not required.
Hope it may help, for further reference, see the code at
i use the latest rocket-chip and i2c in sifive-blocks to generate SOC,but i2c's output is directly deasserted in the verilog code generated by rocket-chip,as follows :
i can't use i2c driver program to output. so , i wonder whether i make some mistakes or i2c in sifive-blocks can't be used.
The text was updated successfully, but these errors were encountered: