Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
It may be easier to write an I2C master (or slave) from the scratch than spending time for understanding and adapting a possible long-winded solution.
I didn't understand clearly, what's the role of CPLD in this case? Is it used for level translation purposes? The I2C core could be implemented in CPLD as well, but it's easier to debug in FPGA with tools as SignalTap or Chipscope. Also the FPGA to CPLD interface is smaller then. Basically a I2C master needs two open drain drivers (can be discrete transistors, too) and a receiver for SDA. SCL has to be sensed only if clock stretching is implemented (most likely not).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.