Quartus II Version 6.1 Handbook, Volume 2: Design Implementation & Optimization
Total Page:16
File Type:pdf, Size:1020Kb
Quartus II Version 6.1 Handbook Volume 2: Design Implementation & Optimization Preliminary Information 101 Innovation Drive San Jose, CA 95134 (408) 544-7000 http://www.altera.com QII5V2-6.1 Copyright © 2006 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company, the stylized Altera logo, specific device des- ignations, and all other words and logos that are identified as trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera Corporation in the U.S. and other countries. All other product or service names are the property of their respective holders. Al- tera products are protected under numerous U.S. and foreign patents and pending applications, maskwork rights, and copyrights. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability arising out of the ap- plication or use of any information, product, or service described herein except as expressly agreed to in writing by Altera Corporation. Altera customers are advised to obtain the latest version of device specifications before relying on any published in- formation and before placing orders for products or services. ii Altera Corporation Contents Chapter Revision Dates ......................................................................... xiii About this Handbook .............................................................................. xv How to Contact Altera ........................................................................................................................... xv Third-Party Software Product Information ........................................................................................xv Typographic Conventions .................................................................................................................... xvi Section I. Scripting & Constraint Entry Chapter 1. Assignment Editor Introduction ............................................................................................................................................ 1–1 Using the Assignment Editor ............................................................................................................... 1–1 Category, Node Filter, Information & Edit Bars .......................................................................... 1–2 Viewing & Saving Assignments in the Assignment Editor ....................................................... 1–6 Assignment Editor Features ................................................................................................................. 1–7 Using the Enhanced Spreadsheet Interface .................................................................................. 1–8 Dynamic Syntax Checking .............................................................................................................. 1–9 Node Filter Bar ................................................................................................................................ 1–10 Using Assignment Groups ............................................................................................................ 1–11 Customizable Columns ................................................................................................................. 1–12 Tcl Interface ..................................................................................................................................... 1–13 Assigning Pin Locations Using the Assignment Editor ................................................................. 1–14 Creating Timing Constraints Using the Assignment Editor ......................................................... 1–14 Exporting & Importing Assignments ............................................................................................... 1–15 Exporting Assignments ................................................................................................................. 1–16 Exporting Pin Assignments .......................................................................................................... 1–16 Importing Assignments ................................................................................................................. 1–18 Conclusion ............................................................................................................................................ 1–20 Document Revision History ............................................................................................................... 1–20 Chapter 2. Command-Line Scripting Introduction ............................................................................................................................................ 2–1 The Benefits of Command-Line Executables ..................................................................................... 2–1 Introductory Example ........................................................................................................................... 2–2 Command-Line Executables ................................................................................................................ 2–3 Command-Line Scripting Help ...................................................................................................... 2–6 Command-Line Option Details ...................................................................................................... 2–7 Option Precedence ........................................................................................................................... 2–8 Altera Corporation iii Preliminary Quartus II Handbook, Volume 1 Design Flow .......................................................................................................................................... 2–11 Compilation with quartus_sh --flow ........................................................................................... 2–11 Text-Based Report Files ................................................................................................................. 2–12 Makefile Implementation .............................................................................................................. 2–13 Command-Line Scripting Examples ................................................................................................. 2–16 Create a Project & Apply Constraints ......................................................................................... 2–16 Check Design File Syntax .............................................................................................................. 2–18 Create a Project & Synthesize a Netlist Using Netlist Optimizations .................................... 2–19 Archive & Restore Projects ........................................................................................................... 2–19 Perform I/O Assignment Analysis .............................................................................................. 2–20 Update Memory Contents without Recompiling ...................................................................... 2–20 Fit a Design as Quickly as Possible .............................................................................................. 2–21 Fit a Design Using Multiple Seeds ...............................................................................................2–21 The QFlow Script ............................................................................................................................ 2–23 Chapter 3. Tcl Scripting Introduction ............................................................................................................................................ 3–1 What is Tcl? ....................................................................................................................................... 3–2 Quartus II Tcl Packages ........................................................................................................................ 3–3 Loading Packages ............................................................................................................................. 3–5 Executables Supporting Tcl .................................................................................................................. 3–9 Command-Line Options: -t, -s & --tcl_eval ................................................................................ 3–10 Using the Quartus II Tcl Console Window ................................................................................ 3–11 End-to-End Design Flows ................................................................................................................... 3–12 Creating Projects & Making Assignments ....................................................................................... 3–13 EDA Tool Assignments ................................................................................................................. 3–14 Using LogicLock Regions .............................................................................................................. 3–18 Compiling Designs .............................................................................................................................. 3–21 Reporting .............................................................................................................................................