Specifications
• BSP initialization
• BSP generation
• BSP validation
Note: Although you can specify a new setting’s value when you create the setting at BSP initialization, the
setting’s value can change between initialization and generation. For example, the BSP developer
might edit the setting in the BSP Editor.
A Tcl callback can function in either of the following scopes:
• Component class
• Component instance
You specify each callback function’s runtime environment by using the appropriate property in the
set_sw_property command, as shown in the table, below.
Table 15-5: Callback Properties
Property as specified in set_sw_
property
Run time Scope Callback Arguments
initialization_callback Initialization Component
instance
Component instance name
validation_callback Validation Component
instance
Component instance name
generation_callback Generation Component
instance
• Component instance name
• BSP generate target directory
• Driver BSP subdirectory
(15)
class_initialization_
callback
Initialization Component
class
Driver class name
class_validation_callback Validation Component
class
Driver class name
class_generation_callback Generation Component
class
• Driver class name
• BSP generate target directory
• Driver BSP subdirectory
(1)
Tcl callbacks have access to a specialized set of commands, described in this section. In addition, Tcl
callbacks can use any read-only BSP setting Tcl command.
Note:
For more information about BSP setting Tcl commands, refer to the “Tcl Commands for BSP
Settings” chapter. When a Tcl callback creates a setting, it can specify the value. However, callbacks
cannot change the value of a pre-existing setting.
Related Information
Tcl Commands for BSP Settings on page 15-64
(15)
The BSP subdirectory into which the driver or package files are copied
NII5V2
2015.05.14
Tcl Commands for BSP Generation Callbacks
15-91
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback