Medium Access Control (MAC) is connected to PHY via Media Independent Interface (MII) toward network side. MII could be GMII, XGMII, XLGMII or CGMII, and it depends on the speed --- 1GbE, 10GbE, 40GbE or 100GbE. On the other end, MAC is connected to host via TX FIFO or RX FIFO. In most implementation, MAC consists of Reconciliation Sublayer, RX control, TX control, Receive FIFO, TX FIFO, Time stamping, Configuration and Statistics registers, and MDIO master. The RS is responsible for spraying packets onto the interface defined by MII and local/remote fault stuff.
The functionality of one general MAC is listed as following:
- Transit or receive Ethernet frames from PHY, detect or insert preamble and SFD, verify or calculate CRC-32 or FCS, terminate or insert optional padding, terminate pause or generate Xon / Xoff pause, extract or add IEEE1588 time stamp
- Support configuring MAC address, frame length, half/full duplex, promiscuous mode
- Support IEEE 802.1Q VLAN
- Support statistics compatible with SNMP or RMON
- Support MDIO master to access PHY
No comments:
Post a Comment