Triple-speed ethernet with ieee 1588v2 testbench – Altera Triple Speed Ethernet MegaCore Function User Manual
Page 81

Creating a New Triple-Speed Ethernet MAC with IEEE 1588v2 Design
You can use the Quartus II software to create a new Triple-Speed Ethernet MAC with IEEE 1588v2 design.
Altera provides a Qsys design example file that you can customize to facilitate the development of your
Triple-Speed Ethernet MAC with IEEE 1588v2 design.
1. Launch the Quartus II software and open the tse_1588.top.v file from the project directory.
2. Launch Qsys from the Tools menu and open the tse_1588.qsys file. By default, the design example targets
the Stratix V device family. To change the target family, click on the Project Settings tab and select the
desired device from the Device family list.
3. Turn off the additional module under the Use column if your design does not require it. This action
disconnects the module from the Triple-Speed Ethernet MAC with IEEE 1588v2 system.
4. Double-click on triple_speed_ethernet_0 to launch the parameter editor.
5. Specify the required parameters in the parameter editor.
6. Click Finish.
7. On the Generation tab, select either a Verilog HDL or VHDL simulation model and make sure that the
Create HDL design files for synthesis option is turned on.
8. Click Generate to generate the simulation and synthesis files.
Triple-Speed Ethernet with IEEE 1588v2 Testbench
Altera provides a testbench for you to verify the Triple-Speed Ethernet with IEEE 1588v2 design example.
The following sections describe the testbench, its components, and use.
The testbench operates in loopback mode.
shows the flow of the packets in the design example.
Figure 5-3: Testbench Block Diagram
Loopback
on serial
interface
Testbench
Avalon-MM
Avalon-MM
Control
Register
Avalon-ST
Transmit
Frame
Generator
Avalon-ST
Receive
Frame
Monitor
Ethernet
Packet
Monitor
Ethernet
Packet
Monitor
DUT
avalon_bfm_wrapper.sv
Avalon Driver
Avalon-ST
Avalon-ST
Triple-Speed Ethernet with IEEE 1588v2 Design Example
Altera Corporation
UG-01008
Creating a New Triple-Speed Ethernet MAC with IEEE 1588v2 Design
5-4
2014.06.30