Testbench and simulation files, Lists the contents of the sample tx rom, The modelsim script to run the testbench – Altera 40-Gbps Ethernet MAC and PHY MegaCore Function User Manual
Page 38

Figure 2-4: 40GBASE-KR4 40GbE IP Core Testbench with Adapters
Illustrates the top-level modules of the 40GBASE-KR4 example testbench that uses adapters. To support
the simulation of auto-negotiation, the testbench uses two instances of the IP core instead of configuring
the IP core in loopback mode.
Random
Skew
Test Controller
& Test Result Checker
Packet
Generator
Packet
Sanity Check
Reconfiguration Bundle
Packet
Generator
Packet
Sanity Check
Transmit Adapter
(alt_e40_adapter_tx)
Receive Adapter
(alt_e40_adapter_rx)
40GBASE-KR4 40GbE
MegaCore Function
without Adapter
40GBASE-KR 40GbE MegaCore Function
with Adapter (alt_e40_adapter)
Avalon-MM
Register Poll
Write Control
Transmit Adapter
(alt_e40_adapter_tx)
Receive Adapter
(alt_e40_adapter_rx)
40GBASE-KR4 40GbE
MegaCore Function
without Adapter
40GBASE-KR4 40GbE MegaCore Function
with Adapter (alt_e40_adapter)
4
4
Reconfiguration Bundle
Table 2-6: 40-100GbE IP Core Testbench with Adapters File Descriptions
Lists the key files that implement the example testbenches.
File Names
Description
Testbench and Simulation Files
alt_40gbe_tb.sv
,
alt_e40_avalon_kr4_tb.sv
,
alt_100gbe_
tb.v
The testbench wrapper file. For non-KR4 variations,
this file includes all of the testbench modules.
alt_e40_avalon_tb_packet_gen.v
The packet generator. This file is present only for
40GBASE-KR4 variations.
alt_e40_avalon_tb_packet_gen_sanity_check.v
The packet checker. This file is present only for
40GBASE-KR4 variations.
alt_e40_avalon_tb_sample_tx_rom.hex
The sample TX ROM. This file is present only for
40GBASE-KR4 variations.
alt_e40_avalon_tb_sample_tx_rom.v
Lists the contents of the sample TX ROM (
alt_e40_
avalon_tb_sample_tx_rom.hex
). This file is present
only for 40GBASE-KR4 variations.
Testbench Scripts
run_vsim.do
The ModelSim script to run the testbench.
2-16
Testbenches with Adapters
UG-01088
2014.12.15
Altera Corporation
Getting Started