You can use instance parameters to modify a Qsys system when you use the system as a subcomponent in another Qsys system. The higher-level Qsys system can assign values to these instance parameters. You create a Tcl instance script to apply these parameters to subcomponents in the system.
When you click the Preview Instance button, Qsys creates a preview of the current Qsys system with the specified parameters and instance script, and opens the Parameter Editor for the instance. In the editor, you can see how the instance of your system appears when you use it as a subcomponent in other Qsys systems. The instance preview does not affect the saved system.
Allowed Range Entry |
Format Description |
---|---|
1 4 6 |
values 1, 4, and 6 |
4:8 |
values between 4 and 8 (inclusive) |
10:"CRC 16" 8:"CRC 32" |
Values 10 and 8, with labels for the values. 10 is displayed in the GUI as "œCRC 16" 8 is displayed in the GUI as "œCRC 32" |
package require -exact qsys <version number> set_module_property COMPOSITION_CALLBACK compose proc compose {} { set x [ get_parameter_value SYSTEM_DATA_WIDTH ] set_instance_parameter_value child0 DATA_WIDTH $x }
}
1