How to use I2c blocks from design lab to VHDL code


Recommended Posts

Hi guys,


I am not sure if this is the right forum to post in but lets say I want to create an I2C block on my FPGA.   There are a lot of I2C blocks on opencores.  Should I download these or does the design lab IDE do something similar.  I need to be able to edit the VHDL code for these I2C blocks. Right now I still dont get exactly what Design Labs is doing. Is it just converting a hand drawn circuit to VHDL code? Are there any built in VHDL blocks that I can use(like open cores?). I don't want to use any C program and program the FPGA using C.  The fpga is not a soft processor but operates as a standalone . AM I missing something?

Link to comment
Share on other sites



At this point there is no stand alone I2C block in DesignLab. But there is a wishbone I2C block that can be controlled by C code running on the ZPUino Soft Processor. 


In DesignLab all of the schematic blocks are built with VHDL or Verilog and presented as schematic symbols that you can connect using the schematic editor to make a working FPGA circuit. You can right click any symbol and choose, "Push into" to see and modify the VHDL code.


You are also free to download any I2C code from OpenCores and use it in DesignLab. In that case DesignLab just makes using the Xilinx tools a little bit easier.



Link to comment
Share on other sites

Thanks for the reply. Sounds good. ALso an other thing. I didnt want to start a separate thread for it. But I see that on the github page you have the eagle wings. However if I open it in eagle I see that I really cant edit them since they seem to be library components. Could you share the library you made for the OV7670 wing. Also the module seems to be 9x2 but you have only 8x2 connections. Why is this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.