How To: Simulate the Intel Quartus Reference Design
Introduction
This How To guide is intended to be used by Intel customers to simulate the Intel Quartus Reference Design "Turbo-V" with Metrics DSim Cloud.
Contents
Prerequisites
Quartus
- Have a working installation of Quartus Prime 22.2 Standard or Pro on your local machine.
- Install Intel® Arria® 10 device support.
DSim Cloud
- Complete the DSim Cloud Tutorial.
Procedure
1. Generate the "Turbo-V" design
1. Create a folder on your local computer called turbo_v.
2. Start Quartus Prime.
3. Create a New Quartus Prime Project by clicking File -> New -> OK.
4. Select turbo_v as the working Directory, Name, and Top-Level Entity for this project and click Next.
5. Select Empty project in the Project Type window and click Next.
6. Click Next in the Add Files window.
7. Select Arria 10 (GX/SX/GT) from the Family drop-down menu and Arria 10 GT from the Device drop-down menu. Select the 10AT115S1F45E1SG as the device and click Next.
8. Click Next in the EDA Tool Settings window.
9. Verify that the Summary window looks like this (path of Project directory may vary) and click Finish.
10. Open the IP Catalog and select DSP -> Error Detection and Correction -> 4G Turbo-V Intel FPGA IP and click Add.
11. Enter my_turbov for your New IP Variant and click Create.
12. Choose Uplink and click Generate Example Design.
13. Select the example design directory as /turbo_v/intel_FPGA_turbov_0_example_design and click OK.
14. A window confirming the successful generation of the design should appear after a few minutes. If not, contact Intel FPGA Support to properly generate the "4G Turbo-V" example design. Click Close.
15. Close the IP Parameter Editor Pro window. When asked to save changes, click Don't Save.
2. Simulate the "Turbo-V" design with DSim Cloud
1. Download and extract the contents of metrics-sim-turbov-main.zip.
2. Copy the file mdc_config.yml into the project folder /turbo_v/intel_FPGA_turbov_0_example_design/ and the folder /metrics into /turbo_v/intel_FPGA_turbov_0_example_design/simulation_scripts/.
3. From your terminal window, start a DSim Cloud Interactive workspace in /turbo_v/intel_FPGA_turbov_0_example_design/:
mdc initialize --local-only mdc workspace start
4. Navigate to the simulation folder by entering:
cd simulation_scripts/metrics
5. In Windows, simulate the "Turbo-V" design by entering:
Set-ExecutionPolicy Bypass -Scope Process -Force; .\cloud_interactive.ps1
6. In Linux or Mac, simulate the "Turbo-V" design by entering:
sh cloud_interactive.sh
7. The design will take several minutes to compile and run, after which you can download dsim.log by entering:
mdc download dsim.log
and verify that the end of the output looks like this:
Inputting TC = 10 Inputting TC = 11 Outputting TC = 9 (PASS) Outputting TC = 10 (PASS) Outputting TC = 11 (PASS) Simulation passed =N:[dumpMXD] closing MXD dump =T:Simulation terminated by $finish (../../../src/turbov_ul_top_tb.sv:299);
8. View the waveform by entering:
mdc view wave waves.mxd
9. This will open the waves.mxd file with the Metrics Waveform Viewer. After adding signals and viewing the waveforms, close it. You may have to press \ in your terminal to return to your mdc prompt.
10. Examine /turbo_v_0/intel_FPGA_turbov_0_example_design/simulation_scripts/metrics/cloud_interactive.ps1 to understand the commands Metrics DSim Cloud uses to compile and simulate the "Turbo-V" design.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article