Specifications
Script Level Summary
bsp-timer-utils.tcl Helper Specifies system timer device setting.
bsp-linker-utils.tcl Helper Specifies memory regions and section mappings
for linker script.
bsp-bootloader-utils.tcl Helper Specifies boot loader-related settings.
For more information about Tcl scripting with the SBT, refer to the “Tcl Scripts for BSP Settings” chapter.
The Nios II SBT uses the default Tcl scripts to specify default values for system-dependent settings.
System-dependent settings are BSP settings that reference system information in the .sopcinfo file.
The SBT executes the default Tcl script before any user-specified Tcl scripts. As a result, user input
overrides settings made by the default Tcl script.
You can pass command-line options to the default Tcl script to override the choices it makes or to prevent
it from making changes to settings.
For more information, refer to the “Top Level Tcl Script for BSP Defaults” chapter.
The default Tcl script makes the following choices for you based on your hardware system:
• stdio character device
• System timer device
• Default linker memory regions
• Default linker sections mapping
• Default boot loader settings
The default Tcl scripts use slave descriptors to assign devices.
Related Information
• Tcl Scripts for BSP Settings on page 4-26
• Top Level Tcl Script for BSP Defaults on page 4-35
• Tcl Scripts for BSP Settings on page 4-26
• Top Level Tcl Script for BSP Defaults on page 4-35
Top Level Tcl Script for BSP Defaults
The top level Tcl script for setting BSP defaults is bsp-set-defaults.tcl. This script specifies BSP system-
dependent settings, which depend on the hardware system. The nios2-bsp-create-settings and nios2-bsp-
update-settings utilities do not call the default Tcl script when creating or updating a BSP settings file.
The --script option must be used to specify bsp-set-defaults.tcl explicitly. Both the Nios II SBT for
Eclipse and the nios2-bsp script call the default Tcl script by invoking either nios2-bsp-create-settings or
nios2-bsp-update-settings with the --script bsp-set-defaults.tcl option.
The default Tcl script consists of a top-level Tcl script named bsp-set-defaults.tcl plus the helper Tcl scripts
listed in the "Default Tcl Script Components" table (Table 4-8). The helper Tcl scripts do the real work of
examining the .sopcinfo file and choosing appropriate defaults.
NII5V2
2015.05.14
Top Level Tcl Script for BSP Defaults
4-35
Nios II Software Build Tools
Altera Corporation
Send Feedback