Forum Discussion
Confusion for TX Clock direction for Triple Speed 1G Ethernet IP?
Hello ALTRA IP experts,
Can anybody please explain to me why, when i set the Triple Speed Ethernet IP up for RGMII mode, the tx clock for the MAC is set as an input?
eth_tse_0_pcs_mac_tx_clock_clk : in std_logic := 'X'; -- clk
I was expecting this signal to be an output for the Transmit MAC section to to the PHY TX block ?
Here are all of the signal connections i get when i setup in RMII mode for the Triple Speed 10/100/1000 Ethernet IP core (its easier to see directions and sizes using the VHDL instance template) :
5 Replies
- paveetirrasrie_Altera
Frequent Contributor
In RGMII, the MAC does not generate its own transmit clock.
Instead, the PHY is responsible for supplying the 125/25/2.5 MHz TX clock back to the MAC.So, MAC sends TX data (txd and tx_ctl) to the PHY. The PHY returns a clock that is aligned with the transmitted data. The MAC uses this returned clock to output the next cycle of data. Hence, This is correct for RGMII as an input signal.
Hope this helps.
- drbarryh
Contributor
Greetings Pavee, Thanks for your reply.
But that is incorrect for my application. Looking for example at an ALTERA MAX10 10M50-C development kit, which has a pair of Triple Speed Ethernet connections, and using a MARVELL 88E1111 PHY, on page 53 of the MARVELL Data sheet it is clearly shown in RGMII mode that the Tx clock is an INPUT to the MARVELL PHY device (TXC, going to GTX_CLK in the PHY), and an OUTPUT from the MAC (which is inside the MAX10 FPGA in this case) and so the so the Tx clock is coming from the ALTERA Triple Speed IP core instantiated and configured in MAC only mode..
I am not sure if this is the usual case but it certainly is in this case.
Best regards,
Dr Barry H
- paveetirrasrie_Altera
Frequent Contributor
Hello Barry,
May I know if you've further query on this matter?
Regards,
Pavee
- FvM
Super Contributor
Hi Barry,
according to TSE IP User Guide, interface between FPGA and RGMII PHY looks like thismeans 5/25/125 MHz clock has to be generated in your design. That's valid for all PHY with RGMII interface, not specifically Marvell 88E1111.
Regards
Frank - FvM
Super Contributor
Hi Barry,
according to TSE IP User Guide, tx_clk has to be send to RGMII PHY and TSE IP by your design. A programmable clock divider is required to support 10 and 100 MBit mode.
Regards
Frank