Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

ethernet phy export to fpga portion

Altera_Forum
Honored Contributor II
1,190 Views

Hi everybody, 

 

I'm trying to export the ethernet phy RGMII interface of our de10-nano board to the fpga portion. The phy is connected to the hps and not directly to the fpga. 

I want to control the phy from fpga. 

In qsys I selected full export in the peripheral pins tab hps. According to this example ( https://rocketboards.org/foswiki/projects/cyclonevrgmiiexampledesign ), the RGMII interface is then supposed to be exported to the fpga as GMII. 

https://alteraforum.com/forum/attachment.php?attachmentid=14719&stc=1  

https://alteraforum.com/forum/attachment.php?attachmentid=14719&stc=1  

My problem is that the MDIO interface clock has direction OUTPUT, which does not make sense, right? 

Also the gtx_clock is OUTPUT instead of input... 

 

Did I misunderstand the usage of this export functionality? Is this just for 'listening' on the ethernet interface and not for controlling it? 

https://alteraforum.com/forum/attachment.php?attachmentid=14720&stc=1  

Some clarification would be very appreciated, 

Simon
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
414 Views

Yes I think you misunderstood the export functionality, it is actually meant to be used the other way round, i.e. to control from the HPS a PHY that would be connected to FPGA pins. 

To do what you want I think you need to set both EMACs to "unused", find the pins your PHY are connected to in the Peripherals Mux Table and enable the "LOAN" buttons for each of them. I've never done that myself though.
0 Kudos
Reply