Specifications
add_class_sw_setting
Usage
add_class_sw_setting <setting-name> <setting-type>
Options
• <setting-name>: Name of the setting to persist in the BSP settings file. This is prepended with the
driver class name associated with this callback script
• <setting-type>: Type of the setting to persist in the BSP settings file.
Description
Creates a BSP setting that is associated with a particular software driver element class. The
set_class_sw_setting_property command is required to set the values for fields pertaining to a BSP
software setting definition. This command is only valid for a callback script. A callback script is set in the
driver's *_sw.tcl file, using the command set_sw_property callback_source_file <filename>.
Example
add_class_sw_setting MY_FAVORITE_SETTING String
add_class_systemh_line
Usage
add_class_systemh_line <macro-name> <macro-value>
Options
• <macro-name>: Macro to be added to the system.h file for the generated BSP
• <macro-value>: Value associated with the macro-name to be added to the system.h file for the
generated BSP
Description
This adds a system.h assignment or macro during a driver callback execution. The BSP typically uses this
during the generate phase depending on the generator. This command is only valid for a callback script. A
callback script is set in the driver's *_sw.tcl file, using the command set_sw_property
callback_source_file <filename>.
Example
add_class_systemh_line MY_MACRO "Macro_Value";
add_module_sw_property
Usage
add_module_sw_property <property-name> <property-value>
15-92
add_class_sw_setting
NII5V2
2015.05.14
Altera Corporation
Nios II Software Build Tools Reference
Send Feedback