Specifications
Software Build Tools Tcl Commands
Tcl commands are a crucial component of the Nios II SBT. Tcl commands allow you to exercise detailed
control over BSP generation, as well as to define drivers and software packages. This section describes the
Tcl commands, the environments in which they run, and how the commands work together.
Tcl Command Environments
The Nios II SBT supports Tcl commands in the following environments:
• BSP setting specification—In this environment, you manipulate BSP settings to control the static
characteristics of the BSP. BSP setting commands are executed before the BSP is generated.
• BSP generation callbacks—In this environment, you exercise further control over BSP details,
managing settings that interact with one another and with the hardware design. BSP callbacks run at
BSP generation time.
• Device driver and software package definition—In this environment, you bundle source files into a
custom driver or package. This process prepares the driver or package so that a BSP developer can
include it in a BSP using the SBT.
The following sections describe each Tcl environment in detail, listing the available commands.
Tcl Commands for BSP Settings
There are two ways to use BSP Tcl commands to manipulate project settings:
• Calling the Tcl commands by using the --cmd option with the utilities nios2-bsp-create-settings,
nios2-bsp-update-settings, and nios2-bsp-query-settings
• Adding the Tcl commands in a Tcl script specified with the --script option
Related Information
• Settings Managed by the Software Build Tools on page 15-25
For more information about the settings that are available in a Nios II project and the tools that you
use to specify ad manipulate these settings.
• Nios II Software Build Tools Utilities on page 15-1
For more information about how to call Tcl commands from utilities.
• nios2-bsp-create-settings on page 15-4
• nios2-bsp-update-settings on page 15-7
• nios2-bsp-query-settings on page 15-6
add_memory_device
Usage
add_memory_device <device name> <base address> <span>
Options
• <device name>: String with the name of the memory device.
• <base address>: The base address of the memory device. Hexadecimal or decimal string.
• <span>: The size (span) of the memory device. Hexadecimal or decimal string.
15-64
Software Build Tools Tcl Commands
NII5V2
2015.05.14
Altera Corporation
Nios II Software Build Tools Reference
Send Feedback