Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

8.8.4. File Names and Locations

The Nios® II build tools find a device driver or software package by locating a Tcl script with the file name ending in _sw.tcl, and sourcing it.

For more information, refer to the “The Nios II BSP Generator” chapter.

Each peripheral in a Nios® II system is associated with a specific component directory. This directory contains a file defining the software interface to the peripheral.

For more information, refer to the “Accessing Hardware” chapter.

To enable the SBT to find your component device driver, place the Tcl script in a directory named ip under your hardware project directory.

The file hierarchy that is suitable for the Nios II SBT is located in the <Intel FPGA installation> /ip/altera/sopc_builder_ip directory. This example assumes a device driver supporting a hardware component named custom_component.