Visible to Intel only — GUID: nik1410905301960
Ixiasoft
Visible to Intel only — GUID: nik1410905301960
Ixiasoft
2.1. Generating the Example Design Testbench
Follow these steps to generate the SR-IOV DMA example design testbench:
- Copy <install_dir>/ ip/altera/altera_pcie/altera_pcie_sriov/example_design/sriov_top_dma_gen3_x8_256b.qsys to your working directory. This top-level Qsys design includes three subsystems.
Qsys Subsystem Description sriov_dma_app_g3x8_256b.qsys This subsystem implements of the Read DMA read and Write DMA modules and the Read and Write Descriptor Controllers. the DMA engine. rddc_ctl_256b.qsys This subsystem implements the Read Descriptor Controller for 4 Read DMA channels. wrdc_ctl_256b.qsys This subsystem implements the Write Descriptor Controller for 4 Write DMA channels. - Rename the top-level Qsys file, sriov_top_dma_gen3_x8_256b.qsys, to top.qsys.
- In your working directory, start Qsys by typing the following command:
qsys-edit
- Open top.qsys.
The following figure shows the Qsys system.
Figure 3. Top-Level Qsys System for SR-IOV Gen3 x8 DMA Example Design - On the Generate menu, select Generate Testbench System.
The Generation dialog box appears.
- Specify the following parameters:
Table 8. Parameters to Specify on the Generation Menu in Qsys Parameter
Value
Testbench System
Create testbench Qsys system
Standard, BFMs for standard Avalon interfaces.
Create testbench simulation model
Verilog. This option generates simulation files for the testbench.
Allow mixed-language simulation Leave this option off. Output Directory
Path
working_dir/ Testbench
working_dir/testbench/ - Click Generate.
Qsys generates the testbench.
- To generate files for compilation, on the Quartus® Prime Generate menu, select Generate HDL.
The Generation dialog box appears.
- Specify the following parameters:
Table 9. Parameters to Specify on the Generation Menu in Qsys Parameter
Value
Verilog
Create HDL design files for synthesis
Verilog.
Create timing and resource estimates for third-party EDA synthesis tools
Leave this option off.
Create block symbol file (.bsf) Leave this option on. Simulation
Create simulation model
None. (You created the simulation model when you generated the testbench.) Allow mixed language simulation
Leave this option off. Output Directory
Path
working_dir/top - Click Generate.
- On the File menu, click Save.