Specifications

callback script is set in the driver's *_sw.tcl file, using the command set_sw_property
callback_source_file <filename>.
Example
add_module_systemh_line MY_MACRO "Macro_Value";
add_systemh_line
Usage
add_systemh_line <sw> <name> <value
<sw>: The software (OS) that the system.h text is associated with
<name>: Name of macro to write into system.h (left-hand side of #define)
<value>: Name of value to assign to macro in system.h (right-hand side of #define)
Description
Adds a line of text to the system.h file. The <sw> argument is the name of the software type (typically an
operating system name) that the system.h text applies to. In the context of an operating system Tcl script,
the name in the create_os <name> command must be used. The text is a name-value pair that creates a
macro (#define statement) in the system.h file.
Note:
This command can only be used by Tcl scripts that are registered to run at BSP generation time by
an operating system.
Example
add_systemh_line UCOSII OS_TICKS_PER_SEC 100
get_class_peripheral
Usage
get_class_peripheral <instance-name> <irq-number>
Options
<instance-name>: Name of EIC module instance to find connected peripheral for.
<irq-number>: IRQ number to locate connected peripheral device
Description
This command is used on an EIC instance callback to obtain a peripheral slave descriptor connected to a
specific IRQ port number. This command is only valid for a callback script.
Example
get_class_peripheral eic_1 $irq_2;
get_module_assignment
Usage
get_module_assignment <assignment-name>
15-94
add_systemh_line
NII5V2
2015.05.14
Altera Corporation
Nios II Software Build Tools Reference
Send Feedback