Visible to Intel only — GUID: gmq1734595405916
Ixiasoft
Visible to Intel only — GUID: gmq1734595405916
Ixiasoft
4.5.2.1. Hardware Design Flow
IP Component Settings
- Create your Nios® V processor project using Quartus® Prime and Platform Designer.
- Make sure external RAM or On-Chip Memory (OCRAM) is added to your Platform Designer system.
Figure 19. Example IP Connections in Platform Designer for Booting Nios® V from On-Chip Flash (UFM)
- In the On-Chip Flash IP parameter editor, set the Configuration Mode to one of the following, according to your design preference:
- Single Uncompressed Image
- Single Compressed Image
- Single Uncompressed Image with Memory Initialization
- Single Compressed Image with Memory Initialization
On-Chip Flash IP Settings - UFM Initialization
- Method 1: Initialize the UFM data in the SOF during compilation
Quartus® Prime includes the UFM initialization data in the SOF during compilation. SOF recompilation is needed if there are changes in the UFM data.
- Check Initialize flash content and Enable non-default initialization file.
Figure 21. Initialize Flash Contents and Enable Non-default Initialization File
- Specify the path of the generated .hex file (from the elf2hex command) in the User created hex or mif file.
Figure 22. Adding the .hex File Path
- Check Initialize flash content and Enable non-default initialization file.
-
Method 2: Combine UFM data with a compiled SOF during POF generation
UFM data is combined with the compiled SOF when converting programming files. You do not need to recompile the SOF, even if the UFM data changes. During development, you do not have to recompile SOF files for changes in the application. Altera® recommends this method for application developers.
- Uncheck Initialize flash content..
Figure 23. Initialize Flash Content with Non-default Initialization File
- Uncheck Initialize flash content..
Reset Agent Settings for Nios® V Processor Execute-In-Place Method
- In the Nios® V processor parameter editor, set the Reset Agent to On-Chip Flash.
Figure 24. Nios® V Processor Parameter Editor Settings with Reset Agent Set to On-Chip Flash
- Click Generate HDL when the Generation dialog box appears.
- Specify output file generation options and click Generate.
Quartus® Prime Software Settings
- In the Quartus® Prime software, click Assignments > Device > Device and Pin Options > Configuration. Set the Configuration mode according to the setting in On-Chip Flash IP.
Figure 25. Configuration Mode Selection in Quartus® Prime Software
- Click OK to exit the Device and Pin Options window,
- Click OK to exit the Device window.
- Click Processing > Start Compilation to compile your project and generate the .sof file.
Error (14740): Configuration mode on atom "q_sys:q_sys_inst|altera_onchip_flash:onchip_flash_1|altera_onchip_flash_block: altera_onchip_flash_block|ufm_block" does not match the project setting. Update and regenerate the Qsys system to match the project setting.