Visible to Intel only — GUID: sss1403176195858
Ixiasoft
1.7.4.2.1. Testcase 1
This testcase simulates manual speed change between 10G/1G/100M/10M in SGMII/1000Base-X mode with auto negotiation disabled using circular loopback configuration.
- Parameter in default_test_parameter.sv file: SGMII_1000BASEX (1-SGMII, 0-1000BaseX) to select between SGMII and 1000BaseX mode.
- To change number of channels, modify the parameter NUM_CHANNELS in default_test_params_pkg.sv file
Figure 7. Channel Waveform for Speed_sel, Avalon_st, XGMII ,GMII and MII Interface
- Force all of the channel to 10G mode by setting speed_sel =0. You can observe the data through the XGMII interface .
- After all 7 data packets sent and received by avalon_st RX of the channel, the design issues write operation to the csr interface to change to another speed mode.
- Continue with 1G mode by setting the speed_sel=1 and the data will be observed in GMII interface.
- For 100M, set speed_sel=2 and 10M, speed_sel=3. These mode transmissions of data happens in MII interfaces.
- For each speed mode, the test case runs in circular loopback sequence. The data flows starting with channel0 followed by channel1, channel 2, channel 3, then loopback to channel 2, channel 1 and channel 0.
- After the simulation stop, user can refer to the transcript window for channel0 MAC TX and RX Statistic counter result.
Figure 8. MAC TX and RX Statistic Counter Results
# ------------------------ # Channel 0: TX Statistics # ------------------------ # framesOK = 28 # framesErr = 0 # framesCRCErr = 0 # octetsOK = 2088 # pauseMACCtrlFrames = 0 # ifErrors = 0 # unicastFramesOK = 28 # unicastFramesErr = 0 # multicastFramesOK = 0 # multicastFramesErr = 0 # broadcastFramesOK = 0 # broadcastFramesErr = 0 # etherStatsOctets = 2688 # etherStatsPkts = 28 # etherStatsUndersizePkts = 0 # etherStatsOversizePkts = 0 # etherStatsPkts64Octets = 4 # etherStatsPkts65to127Octets = 16 # etherStatsPkts128to255Octets = 8 # etherStatsPkts256to511Octet = 0 # etherStatsPkts512to1023Octets = 0 # etherStatsPkts1024to1518Octets = 0 # etherStatsPkts1519OtoXOctets = 0 # etherStatsFragments = 0 # etherStatsJabbers = 0 # etherStatsCRCErr = 0 # unicastMACCtrlFrames = 0 # multicastMACCtrlFrames = 0 # broadcastMACCtrlFrames = 0 # # ------------------------ # Channel 0: RX Statistics # ------------------------ # framesOK = 28 # framesErr = 0 # framesCRCErr = 0 # octetsOK = 2088 # pauseMACCtrlFrames = 0 # ifErrors = 0 # unicastFramesOK = 28 # unicastFramesErr = 0 # multicastFramesOK = 0 # multicastFramesErr = 0 # broadcastFramesOK = 0 # broadcastFramesErr = 0 # etherStatsOctets = 2688 # etherStatsPkts = 28 # etherStatsUndersizePkts = 0 # etherStatsOversizePkts = 0 # etherStatsPkts64Octets = 4 # etherStatsPkts65to127Octets = 16 # etherStatsPkts128to255Octets = 8 # etherStatsPkts256to511Octet = 0 # etherStatsPkts512to1023Octets = 0 # etherStatsPkts1024to1518Octets = 0 # etherStatsPkts1519OtoXOctets = 0 # etherStatsFragments = 0 # etherStatsJabbers = 0 # etherStatsCRCErr = 0 # unicastMACCtrlFrames = 0 # multicastMACCtrlFrames = 0 # broadcastMACCtrlFrames = 0 # # # Simulation PASSED
If all the total 28 packets have been received successfully to channel 0 Avalon_st RX interface, the transcript will display Simulation PASSED.