AN 1002: Sharing Platform Designer Packaged Subsystems
ID
786899
Date
10/02/2023
Public
4.4.1. Editing the Packaged Subsystem
4.4.2. Step 4a: Add Two Checkbox Controls
4.4.3. Step 4b: Enable or Disable Modules and Checkboxes
4.4.4. Step 4c: Run run_system_script
4.4.5. Step 4d: Iterate Over All Parameters
4.4.6. Step 4e: Setting DisplayPort IP Functionality
4.4.7. Step 4f: Make Packaged Subsystem Unlockable
4.4.8. Step 4g: Sync System Infos, Assign Base Addresses, and Save
4.4.4. Step 4c: Run run_system_script
run_system_script allows you to modify the internal system inside a subsystem. run_system_script runs Platform Designer scripting commands such that all commands within curly braces run as separate scripts. The run_system_script format is as follows:
run_system_script TEXT { } [<key-value pairs e.g: list w width> ]
You use the list inside this brackets to pass the package-level parameters and values to the run_system_script command. Within the braces, you can write a Tcl script to change the structure of the system.
Figure 15. run_system_script Example
The following code extracts the list of key-value pairs provided as arguments to the run_system_script command:
set args $__run_system_script_args_list__ set args_len [llength $args]