![Altera timequest Quick Start Manual Download Page 20](http://html1.mh-extra.com/html/altera/timequest/timequest_quick-start-manual_2910823020.webp)
3–2
Chapter 3: Script Examples
Commands and Tcl Scripts
TimeQuest Timing Analyzer Quick Start Tutorial
© December 2009 Altera Corporation
Example 3–4
shows the content of the
fit_sdc_setup.tcl
script. Use this script to add
the
golden.sdc
file to the
filtref
design. This allows the Quartus II Fitter to optimize
the design according to the constraints you specify.
Example 3–5
shows the content of the
main_postfit.tcl
script. Use this script to create
a post-fit database, set up the timing netlist, read in the
golden.sdc
and
io_cons.sdc
files, and generate reports for the design.
Example 3–3.
The main_postmap.tcl Script
#file main_postmap.tcl
#Include the flow package to create a post-map netlist
package require ::quartus::flow
r
#open the project in TimeQuest
project_open filtref
r
#create a post-map database
execute_module -tool map
r
#create the timing netlist based on the post-map results
create_timing_netlist -post_map
r
#read in the constraints from the golden SDC file
read_sdc golden.sdc
r
#update the timing netlist with the new constraints
update_timing_netlist
r
#generated a clock report
report_clocks
r
#generated a clock-to-clock report
report_clock_transfers
r
#delete our post-map timing netlist
delete_timing_netlist
r
#close the TimeQuest project
project_close
r
Example 3–4.
The fit_sdc_setup.tcl Script
#open the filtref project
project_open filtref
r
#add the filtref.sdc file to our Quartus II project
set_global_assignment -name SDC_FILE golden.sdc
r
#close the project
project_close
r