platform designer how to add -L argument to -makelib line in get_design_files using _hw.tcl
If I make a Platform Designer module with a _hw.tcl file, there doesn't seem to be a way to make PD add a -L argument to the -makelib line in get_design_files. It seems I must add all the files with packages that I use to the library for that module using add_fileset (like the Avalon verification IPs do).
Have I missed something, because I would rather compile a package once and then refer to it during compilation using -L?
Thanks,
Gavin
Unfortunately, Platform Designer(PD) does not support the feature to add a `-L` argument to the -makelib line in get_design_files.
The _hw.tcl file is designed to be self-contained for IP distribution. PD expects all HDL dependencies (including packages) to be explicitly added to the IP's filesets using add_fileset or add_fileset_file, as seen in the Avalon verification IPs.
For reference, here is the link to the available Platform Designer _hw.tcl commands:
https://www.intel.com/content/www/us/en/docs/programmable/683609/25-1/hw-tcl-command-reference.html
Also attached a learning course video on how to customize _hw.tcl file, section 11. _hw.tcl File Customization
Regards,
Richard Tan