PHY chips are typically hybrid analog-digital circuits, responsible for receiving analog signals such as electrical and optical signals.

The physical layer consists of three functional layers and two layer interfaces. The two-layer interfaces are the MII (Physical Medium Independent Interface, the upper layer is the logical data link layer) and the MDI (Physical Medium Dependent Interface, the lower layer directly connects to the transmission medium).
The PCS (Physical Coding Sublayer):
Connects the MII and the PMA. Its main function is to generate continuous code groups for transmission and process received code groups.
The PMA (Physical Medium Attachment Sublayer):
Maps information from the PMA service interface onto the twisted-pair physical medium and provides link management and PHY control functions.
LDS (Link Discovery Signaling):
Completes link negotiation.
- Determines the master/slave relationship;
- Estimates cable length;
- Determines the number of valid twisted-pair pairs and their order;
- Determines the maximum operating capacity supported by both ends of the link.

PHY Transmit Function:
- The upper-layer MAC transmits data to the PCS via the MII;
- The PCS receives 4-bit data from the MII, converts it into 3-bit data via 4B3B conversion, applies sidestream scrambling, and finally maps it into a two-dimensional vector of three-level symbols.
- In each symbol period, the PCS generates a code group (An, Bn);
- The PMA transmits the signal to the twisted pair via a transmitter capable of generating a three-level pulse amplitude modulation (PAM3) signal.
PHY Receive Function:
- When the PMA circuit detects the MDI receiving the three-level symbol sequence, it converts it into the parameter rx_symb_vector (SYMB_2D) and transmits it to the PCS sublayer via service primitives.
- After receiving the data, the PCS decodes and converts the 3B4B data to the MII and then transmits it to the upper layer.