Specifications

CHAPTER 1: DESIGN FLOW
COMMAND-LINE DESIGN FLOW
24 INTRODUCTION TO QUARTUS II ALTERA CORPORATION
Figure 11 shows an excerpt from a sample command-line script for use on a
UNIX workstation. The script assumes that the Quartus II tutorial project
called fir_filter exists in the current directory. The script analyzes every
design file in the fir_filter project and reports any files that contain syntax
errors.
Using Tcl Commands
In the Quartus II software, you can run Tcl commands or create and run Tcl
scripts with the Quartus II executables to do the following tasks in a
Quartus II project. The Tcl API functions include the following categories:
Figure 11. Example of a UNIX Command-Line Shell Script
#!/bin/sh
FILES_WITH_ERRORS=""
for filename in `ls *.bdf *.v`
do
quartus_map fir_filter --analyze_file=$filename
if [ $? -ne 0 ]
then
FILES_WITH_ERRORS="$FILES_WITH_ERRORS $filename"
fi
done
if [ -z "$FILES_WITH_ERRORS" ]
then
echo "All files passed the syntax check"
exit 0
else
echo "There were syntax errors in the following file(s)"
echo $FILES_WITH_ERRORS
exit 1
fi
f
For Information About Refer To
Command-Line Scripting “Command-Line Scripting” in the Quartus II
Handbook, vol. 2 on the Altera web site
Quartus II Scripting Reference Manual on
the Altera web site