To generate scripts for an IP, or a Vivado IP integrator block design, you can simply run the command on the IP or block design object:
export_ip_user_files -of_objects [get_ips blk_mem_gen_0] -no_script -force
export_simulation -simulator ies -directory ./export_script \
-of_objects [get_ips blk_mem_gen_0]
Or, export the ip_user_files for all IP and BDs in the design:
export_ip_user_files -no_script -force
export_simulation -simulator ies -directory ./export_script
You can also generate simulation scripts for block design objects:
export_ip_user_files -of_objects [get_files base_microblaze_design.bd] \
-no_script -force
export_simulation -of_objects [get_files base_microblaze_design.bd] \
-directory ./sim_scripts
Important: You must have output products generated for all IP and BD that are used in the top-level design. The
export_simulation
command will not generate output products for IP and BD if they do not exist. Instead it will return an error and exit.