1.5. Compiling and Testing the Example Design in Hardware
To compile and run a demonstration test on the hardware design example, follow these steps:
- Ensure hardware design example generation is complete.
- In the Quartus® Prime software, open the Quartus® Prime project <example_design_install_dir>/hardware_test_design/eth_ex_40 g_a10.qpf, as appropriate.
- On the Processing menu, click Start Compilation.
- After successful compilation, a .sof file will be generated in your specified directory. Follow these steps to program the hardware design example on the Arria 10 device:
- On the Tools menu, click Programmer.
- In the Programmer, click Hardware Setup.
- Select a programming device.
- Select and add the Arria 10 GX Transceiver Signal Integrity Development Kit to which your Quartus® Prime session can connect.
- Ensure that Mode is set to JTAG.
- Select the Arria 10 device and click Add Device. The Programmer displays a block diagram of the connections between the devices on your board.
- In the row with your .sof, check the box for the .sof.
- Check the box in the Program/Configure column.
- Click Start.
- After the hardware example design is configured on the Arria 10 device, in the Quartus® Prime software, on the Tools menu, click .
- In the Tcl Console pane, type cd hwtest to change directory to <example_design_install_dir>/hardware_test_design/hwtest.
- Type source main.tcl.
- Type run_test.
The successful test run displays output confirming the following behavior:
- Turning off packet generation
- Enabling loopback
- Waiting for RX clock to settle
- Printing PHY status
- Clearing MAC statistics counters
- Sending packets
- Reading MAC statistics counters
- Printing MAC statistics counters, which show 0 in all error counters
The following sample output illustrates a successful test run: