Specifications

CHAPTER 1: DESIGN FLOW
COMMAND-LINE DESIGN FLOW
ALTERA CORPORATION INTRODUCTION TO QUARTUS II 27
Creating Makefile Scripts
The Quartus II software supports makefile scripts that use the Quartus II
executables, which allow you to integrate your scripts with a wide variety of
scripting languages. Figure 13 shows an excerpt from a standard makefile
script.
#------ Make a clock assignment with the Fmax requirement ------#
create_base_clock clock -fmax $required_fmax
#------ Make global assignments ------#
set_global_assignment -name family STRATIX
set_global_assignment -name device EP1S10F484C5
set_global_assignment -name tsu_requirement 7.55ns
#------ Make instance assignments ------#
# The following is the same as doing:
# "set_instance_assignment -name location -to clock Pin_M20"
set_location_assignment -to clock Pin_M20
#------ Compile using ::quartus::flow ------#
execute_flow -compile
#------ Report Fmax from report ------#
set actual_fmax [get_fmax_from_report]
puts ""
puts "-----------------------------------------------------"
puts "Required Fmax: $required_fmax Actual Fmax: $actual_fmax"
puts "-----------------------------------------------------"
Figure 12. Example of a Tcl Script (Part 2 of 2)
f
For Information About Refer To
Tcl Scripting “Tcl Scripting” in the Quartus II Handbook,
vol. 2 on the Altera web site
“Overview: Using Tcl Scripting” and “API
Functions for Tcl” in Quartus II Help
Quartus II Scripting Reference Manual on
the Altera web site