Forum Discussion
Altera_Forum
Honored Contributor
14 years agoYes No question (Using FPGA as a wire)
1-Can I use FPGA, just as a wire, to carry a bidirectional line like I2C SDA from one pin of the FPGA to the other pin of the FPGA. In the FPGA there will not be an i2c master or slave it will just route the signal from one side to the other side. Both of the sides should be able to drive the SDA signal(bidirectional)
WHY : I2c master and i2c slave is not physically connected to each other on the PCB BOARD. But they are physically connected to FPGA (Cyclone II EP2C20F484C8)14 Replies
- Altera_Forum
Honored Contributor
Not sure that can work for bidirectional data.
Any kind of buffer has to know the data direction. - Altera_Forum
Honored Contributor
I don't know about Xilinx - wouldn't touch it with a bargepole :)
I use a component in my VHDL code:
Don't know how to do this in Verilog - wouldn't touch that with a bargepole either :)LIBRARY altera; USE altera.altera_primitives_components.all; .... odsda : opndrn port map ( a_in => dp_SDaOut , a_out => Sda ) ; - Altera_Forum
Honored Contributor
Dear Josyb. You answer is digitally appropriate :)
Could you guide me on this. Is there an IO buffer in altera like in Xilinx? Do I need to use Megafunction? - Altera_Forum
Honored Contributor
Yes, you can :)