Ethernet communication devices, such as adapter, hub, bridge and switch, all follow IEEE 802.3 standard protocol. We have designed and implemented an integrated 10/100 Mbps Ethernet MAC (Medium Access Control) mechanism. The MAC unit is used to handle receive/transmit processes of network packet stream. To meet the requirement of different communication devices, we design an automatic MAC unit generator. Users can select the desired number of MAC units through parametric environment setup. To verify the application of MAC unit, we provide a 10/100 Mbps layer-2 switch simulator and an automatic test pattern generator. The FPGA demo system reveals the validity of the MAC unit.