Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- In my design there are a few packages that i can manually rearrange them --- Quote End --- Great. So list them in a text file, or create a Tcl procedure that returns the list of packages. You can then have your Tcl simulation/synthesis script use that file to determine the list of packages. --- Quote Start --- Mostly my frustration comes out from rearranging almost 200 vhdl files as per hierarchy As per your advice i need to parse the VHDL (starting from TOP) file for either component definitions or entity work.instancename --- Quote End --- If you don't care that your build system is coarser than required, i.e., files get rebuilt when they do not need to, then just setup your script so that it; 1) Read the list of packages 2) Read all files in the source area 3) Remove the packages from the list of all files. You now have two lists; packages and source. 4) Create libraries and compile the packages into the libraries, followed by the source. If anything in the source list changes, just compile that individual source file. If anything in the packages list changes, then compile the package and all source (since that saves having to determine which source really depends on which package). See how well that works out. Cheers, Dave