47.12. tsn_switch
47.12.1. Overview
This example shows TSW working as a basic network switch.
47.12.2. Board Setting
Select any two ports on the switch and then connect to two PCs respectively (or network devices)
47.12.3. Running the example
The two PCs (or network devices) communicate with each other.
After startup, the serial console prints configuration for all three ports and reports link changes per port, for example:
Port1: MII 100Mbps, Switch MAC 98:2c:bc:b1:9f:17, Lookup dest MAC 38:14:28:14:90:78
Port2: MII 100Mbps, Switch MAC 98:2c:bc:b1:9f:18, Lookup dest MAC 38:14:28:14:90:79
Port3: RGMII 1000Mbps, Switch MAC 98:2c:bc:b1:9f:19, Lookup dest MAC 38:14:28:14:90:7a
================ TSW PHY on Port1 ================
Link Status: Up
Link Speed: 100Mbps
Link Duplex: Full duplex
================ TSW PHY on Port2 ================
Link Status: Up
Link Speed: 100Mbps
Link Duplex: Full duplex
================ TSW PHY on Port3 ================
Link Status: Up
Link Speed: 1000Mbps
Link Duplex: Full duplex
47.12.4. Note
The IP addresses of the two PCs (or network devices) must be on the same network segment.
Please refer to errata for detailed information of usage precautions.