2017-08-16 20:23:45 +02:00
|
|
|
# See LICENSE for license details.
|
|
|
|
|
|
|
|
# Include helper functions
|
|
|
|
source [file join $scriptdir "util.tcl"]
|
|
|
|
|
|
|
|
# Create the diretory for IPs
|
|
|
|
file mkdir $ipdir
|
|
|
|
|
|
|
|
# Update the IP catalog
|
|
|
|
update_ip_catalog -rebuild
|
|
|
|
|
2017-08-22 02:30:01 +02:00
|
|
|
# Generate IP implementations. Vivado TCL emitted from Chisel Blackboxes
|
2017-10-04 03:24:18 +02:00
|
|
|
foreach ip_vivado_tcl $ip_vivado_tcls {
|
|
|
|
source $ip_vivado_tcl
|
2017-08-22 02:30:01 +02:00
|
|
|
}
|
|
|
|
# Optional board-specific ip script
|
|
|
|
set boardiptcl [file join $boarddir tcl ip.tcl]
|
2017-09-09 08:20:55 +02:00
|
|
|
if {[file exists $boardiptcl]} {
|
|
|
|
source $boardiptcl
|
2017-08-22 02:30:01 +02:00
|
|
|
}
|
2017-08-16 20:23:45 +02:00
|
|
|
|
|
|
|
# AR 58526 <http://www.xilinx.com/support/answers/58526.html>
|
|
|
|
set_property GENERATE_SYNTH_CHECKPOINT {false} [get_files -all {*.xci}]
|
|
|
|
|
|
|
|
# Get a list of IPs in the current design
|
|
|
|
set obj [get_ips]
|
|
|
|
|
|
|
|
# Generate target data for the inlcuded IPs in the design
|
|
|
|
generate_target all $obj
|
|
|
|
|
|
|
|
# Export the IP user files
|
|
|
|
export_ip_user_files -of_objects $obj -no_script -force
|
|
|
|
|
|
|
|
# Get the list of active source and constraint files
|
|
|
|
set obj [current_fileset]
|
|
|
|
|
|
|
|
#Xilinx bug workaround
|
|
|
|
#scrape IP tree for directories containing .vh files
|
|
|
|
#[get_property include_dirs] misses all IP core subdirectory includes if user has specified -dir flag in create_ip
|
|
|
|
set property_include_dirs [get_property include_dirs $obj]
|
|
|
|
|
|
|
|
# Include generated files for the IPs in the design
|
|
|
|
set ip_include_dirs [concat $property_include_dirs [findincludedir $ipdir "*.vh"]]
|
|
|
|
set ip_include_dirs [concat $ip_include_dirs [findincludedir $srcdir "*.h"]]
|
|
|
|
set ip_include_dirs [concat $ip_include_dirs [findincludedir $srcdir "*.vh"]]
|