This section demonstrates how to hand-off a custom driver associated with an IP(driver files are specified in IPXACT file of the IP component) and access the driver information in HSI as well as associate the driver with IP during BSP generation. For more information on packaging IP with custom driver, refer to Vivado Design Suite User Guide: Creating and Packaging Custom IP (UG1118).
An example design of an IP with custom driver specified in its IPXACT definition.
Custom driver specified in IPXACT specification of an IP
Run Vivado hardware hand-off flow either in Pre-Synth or Post-Bitstream mode. The custom driver for each IP is packaged in an XSA.
hsi::open_hw_design ./base_zynq_design_wrapper.xsa base_zynq_design_wrapper
hsi::create_sw_design swdesign -proc ps7_cortexa9_0 -os standalone Swdesign
join [hsi::get_drivers ] \n axi_bram_ctrl_0 axi_gpio_0 myip_0
common::report_property [ hsi::get_drivers myip*]
hsi::generate_bsp -dir bsp_out base_zynq_design_wrapper ls ./bsp_out/ps7_cortexa9_0/libsrc/ . . . myip_v1_0 . . .