Testing and Using the Platform

The SDx environment provides tools to read and check the platform files you create. From within the SDx terminal window you can verify that the SDx IDE can correctly read the platform files created by the SDSoC Platform Utility by executing the following command, from within the Output Directory specified in the sdspfm GUI:
> sdscc –sds-pf-list

This command lists the available SDx platforms by reading the platform folders in the current working directory, and reading the platforms in the SDx installation hierarchy. If you specify this command from your custom platform repository it will read the platforms found there.

Any platform listed by the previous command can be displayed in greater detail using the following command:
> sdscc –sds-pf-info <platform_name>

This command displays the details of the specified platform.

Finally, you can validate the hardware platform file directly using the following command while inside the <platform>/hw folder:
sds-pf-check <platform>.hpfm

This command simply determines if the hardware metadata file is valid, or invalid.

After checking the validity of the platform, you can add the hardware platform repository to SDx for use in new projects. In the SDx IDE you can use the Xilinx > Add Custom Platform command to add the newly created platform to the library of platforms available for SDSoC projects.

Figure: Add Hardware Platform



You can also specify the platform to use for a project using the following command:
> sdscc –sds-pf <platform_name>

Refer to SDSoC Environment User Guide: An Introduction to the SDSoC Environment (UG1027) for more information.