Create a file named "addallv.tcl" in your project folder with the contents listed below. Change "myfolder" to the name of the sub-folder below your project folder that contains the files (or folders with files) you would like to add. Run it in the Tcl Console with:
source addallv.tcl
package require ::quartus::project
package require fileutil
#addallv.tcl by http://www.thalin.se
set folderName "myfolder"
foreach file [fileutil::findByPattern $folderName *.v] {
puts $file
set_global_assignment -name VERILOG_FILE $file
}
Hints
You have to enable the the Tcl Console by selecting View -> Utility Windows -> Tcl Console.
Run the command by typing it in front of tcl> and press return.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.