Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Intro to Altera SoC Devices for HW Developers Workshop-Compile Your Quartus Proj

Intro to Altera SoC Devices for HW Developers Workshop - Compile Your Quartus Project

(Redirected from Intro to Altera SoC Devices for HW Developers Workshop - Compile Your Quartu Project)



Overview

In this section, you will modify the Quartus configuration file settings, compile the design, and update the SD card with your generated programming file.

<<<<Click here to return to the previous section

Modifying the Configuration File Settings

It is important that the Quartus configuration file settings (configuration scheme and bitstream compression) are set to match the MSEL pins on the board. If these settings don't match the MSEL pins, the HPS won't be able to configure the FPGA.

1. From the Quartus "Assigments" menu, click "Device..."


2. In the "Device" window, clock the "Device and Pin Options..." button.



3. In the "Device and Pin Options" window:

  • Select the "Configuration Category"
  • Change the "Configuration scheme:" setting to "Passive Parallel x16" to match the Atlas SoC board.
  • Check the "Generate compressed bitstreams" checkbox.



4. In the "Programming Files" category, check the "Raw Binary File (.rbf)" checkbox. The .rbf file is what u-boot will use to program the FPGA in this lab.



5. Click "OK" in the "Device and Pin Options" window.

6. Click "OK" in the "Device" window.

7. From the Quartus "Project" menu, select "Add/Remove Files in Project..."

8. In the window which appears, note the file "soc_system/synthesis/soc_system.qip". This file is automatically added to Quartus and points to the source files which QSys generates. As this is not a Quartus class, much of the Quartus setup is already done, allowing you to focus on the SoC specific tasks in Quartus.

9. Click :OK:

10. You will need to make the SDRAM IO standard assignments. While Quartus will auto-assign the HPS SDRAM pins, the IO assignments must be added to the project. This is best done with a TCL script generated by QSys. To make these assignments, Quartus will first need to analyze the source files.

  • From the Quartus "Processing" menu, select "Start", then "Start Analysis & Synthesis". This will generate the database so that IO assignments can be made.



11. Now you will add the IO assignments.

  • From the Quartus "Tools" menu, select "TCL Scripts..."
  • In the Library field of the "TCL Scripts" window, expand "Project", "soc_system", "synthesis", then "submodules".
  • Select "hps_sdram_p0_pin_assignments.tcl".
  • Click "Run".
  • When the script has completed, click "OK", then "Close" to close the "TCL Scripts" window.



12. From the Quartus "Processing" menu, select "Start Compilation". This will compile your design and generate a programming file.

Anytime you change the HPS configuration and re-compile the Quartus project, you will need to update the boot loader. Using a boot loader and a programming file with different HPS configurations can cause boot failures. In the next section you will regenerate the boot loader.


Click here to continue to the next section>>>>


Version history
Revision #:
1 of 1
Last update:
‎06-21-2019 07:27 PM
Updated by:
 
Contributors