AN 1007: Partial Reconfiguration Design Simulation Tutorial

ID 819958
Date 5/17/2024
Public

9.6. Step 6: Preparing the Setup Simulation Script

After design setup and PR simulation model generation, you can begin PR simulation. This design example includes the run_pr_sim.do simulator setup file. This script automatically compiles the testbench, the design, the PR persona model, and library files, and then starts and runs simulation. You can adapt this design example .do script for your own design.

To prepare the setup simulation script:
  1. Copy the run_pr_sim.do file from the pr_sim directory to your pr project directory.
  2. Open the run_pr_sim.do file in a text editor.
  3. In the run_pr_sim.do file, replace the quartus_dir variable with the value of the QUARTUS_ROOTDIR environment variable. To determine the path of the QUARTUS_ROOTDIR environment variable, run the following command:
    env | grep QUARTUS_ROOTDIR
  4. Save the modified run_pr_sim.do file.