Visible to Intel only — GUID: wya1641286671257
Ixiasoft
Visible to Intel only — GUID: wya1641286671257
Ixiasoft
4.3.2.8. Importing Tcl Script to Create a New BSP
The following example illustrates how to configure a new BSP with an imported Tcl script. You import the Tcl script with the BSP Editor when you create a new BSP settings file.
In this example, you create the Tcl script by hand, with a text editor. You can also use a Tcl script exported from another BSP, as described in Exporting a Tcl Script.
To configure a new BSP with a Tcl script, follow these steps:
- With any text editor, create a new file called example.tcl.
- Insert the below contents in the file.
set_setting hal.enable_reduced_device_drivers true set_setting hal.enable_sim_optimize true
- In the Platform Designer, in the File menu, click New BSP.
- In the BSP Settings File Name box, select a folder in which to save your new BSP settings file. Accept the default settings file name, settings.bsp.
- In the Operating System list, select Intel HAL.
- In the Additional Tcl script box, navigate to example.tcl.
- In the Platform Designer Information File Name box, select the .qsys file.
- Click OK. The BSP Editor creates the new BSP. The settings modified by example.tcl appear as in the following figure.
For more information about commands that can appear in BSP Tcl scripts, refer to Board Support Package Tcl Commands.