Visible to Intel only — GUID: mwh1416946660345
Ixiasoft
Visible to Intel only — GUID: mwh1416946660345
Ixiasoft
3.3.2. Creating Hello_World for an Intel FPGA Development Board
- Start the Nios II Command Shell.2
- Create a working directory for your hardware and software projects. The following steps refer to this directory as <projects>.
- Change to the <projects> directory by typing the following command:
cd <projects>
- Locate a Nios II hardware example for your Intel FPGA development board. For example, if you have a Stratix® IV GX FPGA Development Kit, you might select <Nios II EDS install path>/examples/verilog/niosII_stratixIV_4sgx230/triple_speed_ethernet_design.
- Copy the hardware example to your <projects> working directory, using a command such as the following:
cp -R /altera/100/nios2eds/examples/verilog/niosII_stratixIV_4sgx230/triple_speed_ethernet_design .
- Ensure that the working directory and all subdirectories are writable by typing the following command:
chmod -R +w
- The <projects> directory contains a subdirectory named software_examples/app/hello_world. The following steps refer to this directory as <application>.
- Change to the <application> directory by typing the following command:
cd <application>
- Type the following command to create and build the application:
./create-this-app
The create-this-app script copies the application source code to the <application> directory, runs nios2-app-generate-makefile to create a makefile (named Makefile), and then runs make to create an Executable and Linking Format File (.elf). The create-this-app script finds a compatible BSP by looking in <projects> /software_examples/bsp. In the case of hello_world, it selects the hal_default BSP.
To create the example BSP, create-this-app calls the create-this-bsp script in the BSP directory.