
Table of Contents
T 1A: A Qsys based Nios II Reference design with a simple self test of the HyperFlash and
HyperRAM device using S/Labs' HBMC IP.............................................................................................1
Set-Up Requirements:................................................................................................................................3
Step 1: Obtain core materials.....................................................................................................................3
Step 2: License Setup.................................................................................................................................3
Step 3: Install HBMC Qsys Component into the project IP Folder...........................................................4
1. Contents of the reference project...........................................................................................................5
2. Open the reference Quartus Project.......................................................................................................6
2.1 Check the correct FPGA device is selected..........................................................................................6
3. Open the reference Qsys project............................................................................................................7
4. Explore and configuring the reference Qsys project..............................................................................8
4.1 Components employed in the reference project...................................................................................8
4.2 Nios II/f processor configuration.........................................................................................................9
4.3 Configuring S/Labs HyperBus Memory Controller...........................................................................1
4.4 Configuration of Altera’s On-Chip Memory......................................................................................16
5. Generating the Qsys Design.................................................................................................................17
6. Preparing the firmware.........................................................................................................................18
6.1 Open the NIOS II Software Built Tools for Eclipse...........................................................................18
6.2 Create a simple application and BSP.................................................................................................19
6.3 Configure the Board Support Package (BSP)....................................................................................22
6.4 Generate the BSP and clean the project.............................................................................................26
6.5 Copy the memory testing source code...............................................................................................27
6.6 Build the Nios II Application.............................................................................................................28
6.7 Generate memory initialization files..................................................................................................29
7. Update the memory initialization field(s) in Qsys...............................................................................3
8. Synthesize and assemble the Design....................................................................................................31
9. Program the FPGA Bitstream into the FPGA device...........................................................................32
1 . Run the nios2-terminal application....................................................................................................33