postmodule.tcl 439 B

123456789101112131415
  1. #
  2. # Runs after the execution of each module in Quartus. This script
  3. # spawns a different script depending on which module was executed.
  4. #
  5. set module [lindex $quartus(args) 0]
  6. set project [lindex $quartus(args) 1]
  7. set revision [lindex $quartus(args) 2]
  8. set module_script [file join [file dirname $argv0] "post_$module.tcl"]
  9. if [file readable $module_script] {
  10. project_open $project -revision $revision
  11. source $module_script
  12. }