AN 705: Scalable 10G Ethernet MAC using 1G/10G PHY

ID 683066
Date 5/13/2016
Public
Document Table of Contents

1.7.4.2.2. Testcase 2

This testcase simulates manual speed change between 10G/1G/100M/10M in SGMII/1000Base-X mode with auto negotiation disabled using serial loopback configuration.

  • To choose speed for each channel, go to tb_testcase_1588, change the value of reg [1:0] speed[NUM_CHANNELS] = {}
  • To change number of channels: modify the parameter NUM_CHANNELS in default_test_parameter.sv file
  • To choose SGMII or 1000 Base-X mode for 1G, go to default_test_parameter.sv file, change parameter SGMII_1000BASEX (1-SGMII, 0-1000 Base-X)
  • PHY serial loopback for each channel setup:
    • channel0: 10G
    • channel1: 1G
    • channel2: 100M
    • channel3: 10M
Figure 9. Waveform for Channel_ready and speed_sel for All 4 Channels
  1. Force the channel0 to 10G mode and the data transmission can be observed in XGMII interface.
  2. Force the channel1 to 1G mode and the data transmission can be observed in GMII interface.
  3. To set channel2 to 100M mode, first set the channel to 1G mode. Next, enable the SGMII mode and set it to 100M mode. Data transmission can be observed in MII interface signals.
  4. Repeat Step 3 for channel3, only this time set the speed to 10M after enabling SGMII mode. Data transmission can be observed in MII interface signals.
  5. The data transmission for each channel will only start when the channel_ready signal is up. MAC TX and RX statistic will be printed out in transcript window for each channel.