FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6343 Discussions

Ethernet link detection with Triple Speed MegaCore PCS

Altera_Forum
Honored Contributor II
983 Views

Hi, 

 

This might be more of a general Ethernet question, but can someone quickly comment on how the PCS detects a link? I am starting with a design that features two 1000Base-X SFP modules to do a point to point connection without the MAC (so you could say it's on layer 1). 

 

Am I supposed to send some data first? Or does the PCS periodically send some idle patterns / negotiation patterns to do that for me? Will I have to periodically send data to allow for stable clock recovery? 

 

Please point me in the right direction :) 

 

Cheers, Peter
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
273 Views

Hi Peter, 

 

I haven't actually used Altera's TSE, but I can tell you how 1000Base-X works in this regard. The PCS transmits a K28.5 symbol as part of either idle of configuration ordered sets (referred to as /C/). There's a special series of bits contained in this symbol called a "comma". The PCS looks for this sequence of bits and uses it to align the serial stream. Once it thinks it has alignment, it looks for either idle (if autoneg is disabled) or /C/ sets. If you have aneg disabled, it should be sending idle (/I/). If autoneg is enabled, it will transmit /C/ encoded with 0's for abilities until it sees valid signaling from a link partner. Once it sees valid signaling, it will transmit /C/ encoded with the device's advertised abilities, and negotiate a link. 

 

IEEE 802.3 Clause 36 specifies the 1000Base-X PCS, and Clause 37 specifies 1000Base-X autonegotiation. 

 

I hope that helps.
0 Kudos
Altera_Forum
Honored Contributor II
273 Views

Hi cronus, 

 

that helped! I am browsing the standard right now. This way I also discovered page 4-18 in the Cyclone V Device Handbook (page 133 in the full pdf) which references exactly what you have pointed me to. 

 

Many thanks, Peter.
0 Kudos
Reply