1. Export "Pcore for EDK" by clicking the "Export RTL" button in Vivado HLS.
2. Copy the generated driver from the directory /impl/drivers to a repository directory for SDK.
For example, copy /impl/drivers/hls_macc_top_v1_10_a to the directory /sdk_sw_repo/drivers.
The directory structure will now look like the below example:
3. In SDK, select "XIlinx Tools->Repositories",and click "new", then add the directory "/sdk_sw_repo" to the Local Repositories or the Global Repositories.
4. Select "File->New->Board Support Package" to create a BSP.
The head files and source files of the HLS driver will be copied to the BSP automatically.
It will look similar to the example below:
Note: The steps of integrating IP cores from HLS in hardware design IPI and exporting it to SDK are omitted here.
For the IPI and SDK usage, please refer to "Implement Vivado HLS IP on a Zynq Device" in UG871.