Specifications

CHAPTER 1: DESIGN FLOW
COMMAND-LINE DESIGN FLOW
ALTERA CORPORATION INTRODUCTION TO QUARTUS II 23
Using Standard Command-Line
Commands & Scripts
You can use the Quartus II executables with any command-line scripting
method, such as Perl scripts, batch files, and Tcl scripts. These scripts can be
designed to create new projects or to compile existing projects. You can also
run the executables from the command prompt or console.
Figure 10 shows an example of a standard command-line script. The
example demonstrates how to create a project, perform analysis and
synthesis, perform place and route, perform timing analysis, and generate
programming files for the filtref tutorial design that is included with the
Quartus II software. If you have installed the tutorial design, it is in the
/altera/qdesigns<version number>/tutorial directory. Altera recommends
that you create a new directory and copy all the design files (*.v, *.bsf, *.bdf)
from the /altera/qdesigns<version number>/tutorial directory to the new
directory, in order to compile the design flow example. You can run the four
commands in Figure 10 from a command prompt in the new project
directory, or you can store them in a batch file or shell script. These examples
assume that the /<Quartus II system directory>/bin directory (or the
/<Quartus II system directory>/<platform> directory on UNIX or Linux
workstations, where <platform> can be solaris, linux, or hp_II) is included
in your PATH environment variable.
Figure 10. Example of a Command-Line Script
quartus_map filtref --family=Stratix
quartus_fit filtref --part=EP1S10F780C5 --fmax=80MHz --tsu=8ns
quartus_tan filtref
quartus_asm filtref
Creates a new
Quartus II project
targeting the Stratix
device family
Performs fitting for
the EP1S10F780C5
device and specifies
global timing
requirements
Performs timing
analysis
Generates
programming files