Open gpetruc opened 6 years ago
First step: figure out how to retrieve from Vivado the list of source files, constraints and ips
Here it is
get_files -of [get_filesets sources_1]
Now, xcis are a different story. xcis are copied into the project and referenced in each ip fileset. But the xci has memory of its origin
report_property [get_files /home/ale/devel/dune/dataflow/proj/zcu102_wibtor/zcu102_wibtor/zcu102_wibtor.srcs/sources_1/ip/temac_gbe_v9_0/temac_gbe_v9_0.xci]
...
IMPORTED_FROM file true /home/ale/devel/dune/dataflow/src/ipbus-firmware/components/ipbus_eth/firmware/cgn/temac_gbe_v9_0.xci
And this is the one liner
get_property IMPORTED_FROM [get_files -of [get_filesets temac_gbe_v9_0] temac_gbe_v9_0.xci]
It would be good to have a feature to allow adding new files to a project (either re-scanning the dep files or with some ipbb command), without having to recreate the project, as the latter is slow because requires regenerating all ip cores.