I2C using the FX2 controller directly from FPGA

Saxo/-L & Xylo/-EM/-L/-LM boards

I2C using the FX2 controller directly from FPGA

Postby mc » Sat Jan 10, 2009 5:23 pm

Is there a way to access the i2c bus from a verilog program on the fpga going through the FX2 chip. There are demos showing USB communications using FIFO2. The i2c/USB documentation states that you send i2c commands through FIFO0 and FIFO1 (pipes 0 and 1) but do not show how to address these FIFOs directly from the FPGA. There is an address variable for FIFO2 but it was 0 so FIFO0 and 1 may not be accessible. I am using the XYLO-LM board

Thanks
mc
 
Posts: 2
Joined: Sat Jan 10, 2009 5:08 pm

Postby fpga4fun » Sat Jan 10, 2009 6:13 pm

These FIFOs0/1 are accessible only from the PC.
So if you want to access the I2C from the FPGA, you should build an I2C master or I2C slave in the FPGA.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Is there a simple program for the fpga

Postby mc » Sat Jan 10, 2009 10:30 pm

Is there a simpler program for the master controller than the ones on OPENCORES.ORG that works with the xylo-lm. Don't need the overhead of multi-master or wishbone compatibility. Kind of on the level of the i2c slave program that is on the i2c interface page

Thanks
mc
 
Posts: 2
Joined: Sat Jan 10, 2009 5:08 pm


Return to FX2 FPGA boards