Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

15.5.4. Tcl Commands for Drivers and Packages

This section describes the tools that you use to specify and manipulate the settings and characteristics of a custom software package or driver. Typically, when creating a custom software package or device driver, or importing a package or driver from another development environment, you need these more powerful tools.

For more information about how to manipulate settings on existing software packages and device drivers, refer to “Settings Managed by the Software Build Tools” on page 15–34.

For more information about how to manipulate settings on existing software packages and device drivers, refer to “Tcl Commands for BSP Settings” on page 15–76.

A device driver and a software package are both collections of source files added to the BSP. A device driver is associated with a particular component class (for example, altera_avalon_jtag_uart). A software package is not associated with any particular component class, but implements a functionality such as TCP/IP.

To define a device driver or software package, you create a Tcl script defining its characteristics. This section describes the Tcl commands available to define device drivers and software packages.

For more information about creating Tcl scripts, refer to the “Tcl Scripts for BSP Settings” in the Nios II Software Build Tools section.

The following commands are available for device driver and software package creation:

  • add_sw_property
  • add_sw_setting
  • add_sw_setting2
  • create_driver
  • create_os
  • create_sw_package
  • set_sw_property
  • set_sw_setting_property