Forum Discussion
Knug
Contributor
5 years agoHow to properly constrain bidirectional I2C SCL / SDA ports ?
Hi,
We are using an I2C slave controller and like to know how to properly constrain bidirectional SDA and SCL lines to meet setup and hold time requirements.
I searched on the internet and cannot...
josila
New Member
3 hours agoI think the important thing here is to separate the I2C bus timing requirements from the FPGA's internal timing constraints. Since SDA and SCL are bidirectional open-drain signals and are asynchronous to the 10 MHz system clock, I would first check how the input synchronizers and output drivers are implemented. Make sure the external bus timing, including setup time, hold time, and signal rise time, is considered rather than relying only on the internal clock period. I'd also be careful with false-path constraints so they don't accidentally exclude timing checks between synchronizer stages. Have you checked the timing reports for the paths between the input synchronizers and the FSM?