Académique Documents
Professionnel Documents
Culture Documents
Introduction to Altera
& Altera Devices
Copyright © 2005 Altera Corporation
The Programmable Solutions Company®
Devices Devices (continued)
Stratix® II™ MAX® II
Cyclone™ II Mercury™ Devices
Stratix GX ACEX® Devices
Stratix FLEX® Devices
Cyclone MAX Devices
MAX+PLUS® II
All FLEX, ACEX, & MAX Devices
Project
Navigator
Status
Window
Message Window
Design Methodology
RTL Simulation
- Functional Simulation (Modelsim®, Quartus II)
- Verify Logic Model & Data Flow
(No Timing Delays)
M512
LE
Synthesis
M4K - Translate Design into Device Specific Primitives
I/O
- Optimization to Meet Required Area & Performance Constraints
- Precision, Synplify, Quartus II
Quartus II Projects
Notes:
• Files in project directory do not need to
be added
• Add top level file if filename & entity
name are not the same
• User Libraries
• MegaCore®/AMPPSM Libraries
• Pre-Compiled VHDL Packages
Choose Device
Family
Add or Change
Settings Later
OR
Time Stamp
# Active Revisions
Active Revision
PROJECT_REVISION = "filtref“
PROJECT_REVISION = "filtref_new"
Copy Project
Design Entry
Local Symbols
Created from
MegaWizard or
Design Files
Library Symbols
File Create/Update
Create Symbol… Note: Schematic Can Be Converted to a
Symbol & Used in other Schematics
Copyright © 2005 Altera Corporation
43
Megafunctions
Pre-Made Design Blocks
Ex. Multiply-Accumulate, PLL, Double-Data Rate
Benefits
Free & Installed with Quartus II
Accelerate Design Entry
Pre-Optimized for Altera Architecture
Add Flexibility
Two Types
Altera-Specific Megafunctions (Begin with “ALT”)
Library of Paramerterized Modules (LPMs)
Industry Standard Logic Functions
See www.edif.org/lpmweb for more info
Locate Documentation in
Quartus II Help or the Web
Double-Data Rate
Design Entry
Use to Initialize Your Memory Block (Ex. RAM, ROM)
during Power-Up
Simulation
Use to Initialize Memory Blocks before Simulation or
after Breakpoints
3) Memory Space
1) HEX format or
MIF format
OR
OR
EDA Partners
External
Files
Copyright © 2005 Altera Corporation
57
WYSIWYG ATOM Primitives
Set of Design Primitives that Support WYSIWYG
Compilation
Provide Direct Control of How a Design Is
Technology-Mapped to a Specific Target Device
Allow Synthesis Vendors to Provide an Optimal
Realization of a Design for Each Architecture
Synplify .vqm
Logic
Synthesis
VQM
Design Input Files
with
WYSIWYG Primitives
Quartus II Compilation
A:inst1
Choose to Reuse Post-Synthesis
TOP or Post-Fit Netlist
B:inst2
A:inst1
+
= TOP
A B’:inst2
B:inst2
+
Only Specified Portions of
B’
B Logic that Have Changed Are
Re-Synthesized or Re-Fitted
Note:
1) For more details on using incremental
compilation, please attend the course
“Accelerating Design Cycles using Quartus II” or
watch the web-recording “Incremental Design in
Quartus II”
Change Settings
• Top-Level Entity
• Target Device
• Add/Remove Files
• Libraries
• VHDL ‘87, ‘93?
• Verilog ‘95, ‘01?
• EDA Tool Settings
• Timing Settings
• Compiler Settings
• Simulator Settings
• Smart Compilation
− Skips Entire Compiler Modules when
Not Required (i.e. Elaboration,
Synthesis, etc.)
− Saves Compiler Time
− Uses More Disk Space
• Preserve Fewer Node Names
− Disable for VHDL/Verilog Synthesis
• Generate Version-Compatible Database
• Enable Incremental Compilation
Created/Modified Nodes
Noted in Compilation Report
Copyright © 2005 Altera Corporation
84
WYSIWYG Primitive Resynthesis
Unmaps 3rd-Party Atom
Netlist Back to Gates &
then Remaps to Altera
Primitives
Unavailable when Using
Integrated Synthesis
Considerations
Node Names May
Change
3rd-Party Synthesis
Attributes May Be Lost
Preserve/Keep
Some Registers May Be
Synthesized Away
D Q 10 ns D Q 5 ns D Q D Q 7 ns D Q 8 ns D Q
> > > > > >
Enable/Disable
Sort on Columns Individual
Assignments
Assignments Menu
Message Window
1) Go to Quartus II
Help (Index)
2) Type in “Logic
Options”
3) Click on “list of”
Supported Devices
Shown for each
Assignment
Package View
(Top or Bottom)
Pairing
Hides Non-Migratable I/O
Pins
Allows Easy Creation of
Reserved Pins
Use Unassigned Pins List
Has Easy-to-Read Pin View Pin Legend
Legend
Reserved Pins
Create New
Revision
Type Revision Description
Easily Switch
between Revisions
Design Analysis
Description of
Recommended
Three Stages of Settings
Recommendations
to Try in Order
Checkmark
Indicates Settings
Already in Use
Toolbar
Schematic View
Hierarchy List
Note:
Copyright © 2005 Altera Corporation 1) Must Perform Elaboration First (e.g. Analysis &
Elaboration OR Analysis & Synthesis)
132
Technology Viewer
Graphically Represents Results of Mapping
Tools Menu Technology Viewer
Schematic View
Hierarchy List
Note:
Copyright © 2005 Altera Corporation 1) Must Run Synthesis and/or Fitting First
133
Uses
RTL Viewer
Visually Checking Initial HDL Synthesis Results
Before Any Quartus II Optimizations
Locating Synthesized Nodes for Assigning Constraints
Debugging Verification Issues
Technology Viewer
Analyze Critical Timing Paths Graphically
Delay Values Displayed if Timing
Locating Nodes after Optimizations
Assigning Constraints
Debugging
Expanding
Instances Shows
the Instances,
Pins & Nets within
Internal Modules
Filter Options
Timing Analysis
IN * D Q * D Q * OUT
combinational
delays*
tco B tsu
C
Clock Period
Source, Destination
Registers & Associated
Fmax Values
Select
Clock Setup
Highlight,
Right-Click
Mouse &
Select List
Paths
Destination Register
Clock Delay (E)
Source Register
Clock Delay (C)
Setup Time (tsu)
Clock to
Output (tco)
tco B tsu
C
E 1 = 124.86 MHz
0.384 ns + 7.445 ns + 0.180 ns - 0.000 ns
Clock Period
Notes:
1) May Also Locate to Floorplan
from Message Window
2) Use Similar Procedure for All
Timing Path Analysis
3.807 ns Is the
Total Path Delay
C
tco B th
C Data
E
E
E-C th
Clock Period
Copyright © 2005 Altera Corporation
163
Hold Time Violations Table
Not Operational:
Clock Skew > Data Delay
tsu
th
Clock delay
tco
Clock delay
Clock Name
Select Value
Parameter
Pin Name
167
Timing Analysis Options
Used to Expand/Limit which Paths Are
Analyzed/Displayed
Examples
Recovery & Removal
Enable Clock Latency
Reports Detected Clock Offset as Latency Affecting Clock Skew
Clock Setup/Hold Relationships Maintained
Ex. Inserting Clock Delay Using PLLs
Enables Latency Timing Assignments (Discussed Later)
Timing Constraint Check
Determines if Any Paths Not Constrained by Timing Assignment
t_removal
CLEAR
Reset (Data)
t_recovery
Arrival Time
I/O Pin
Register 1 Register 2
A B
Q D
C
clk
Positive Slack
Timing Requirement Met (BLACK)
Negative Slack
Timing Requirement Not Met (RED)
Copyright © 2005 Altera Corporation
177
Slack Equations (Setup)
Slack = Largest Required Time - Longest Actual Time
Required Time = Clock Setup - tco - tsu + (clk’- clk)
Actual Time = Data Delay
Clock Setup*
launch edge
clk
setup latch edge
clk’
data delay
Register 1 Register 2
tco tsu
clk
hold latch edge launch edge
clk’
data delay
Register 1 Register 2
tco th
Assignments
Settings
Fitting Settings
tco
Extra Routing
Added to Delay Path
Extra Routing
Added to Delay Path tsu = 3 ns
th = 0 ns
Gated Clock
Clock
clk1 clk2
launching edge
clk1
clk2
Click on Derived
Clock Requirements
Adjust Settings
to Specify Clock
Relationship
Click OK to
Add Setting
CLK CLK
Input Maximum
tsuA
Delay
CLK CLK
Input Minimum
thA
Delay
CLK CLK
tco
Output
Maximum Delay
CLK CLK
tco
Output
Maximum Delay
Notice:
1) Input Pin d(6) & d(3) Timing
Information Is Included with
Clock Setup (fmax) Analysis
2) Input Delay Has Been Added
to List Path Calculation
CLOCK_HOLD_UNCERTAINTY CLOCK_SETUP_UNCERTAINTY
clk
PLL
Reduces Setup
Relationship between
2 Clock Domains
Specify a Clock
Uncertainty Assignment
between 2 Clock Points
Assign:
Early Clock Latency = 2 ns clk1
clk2
* Clock Enable Latency analysis must be enabled as shown earlier in Timing Analysis Settings
Specifies Maximum
Clock Path Skew
Clock Arrival 2
Between a Set of
Registers ClockArrival1 ClockArrival 2 n
Ex. Non-Global Clocks
Max Data Arrival Skew
Data Arrival 1
Specifies Maximum
Data Delay Skew from
Clock Node to
Registers and/or Pins Data Arrival 2
launching edge
base clock
derived clock
capturing edge
PATH2
MULTICYCLE
CLK2
PATH1
CLK1
CLK2
CLK1
CLK2
CLK1
CLK2
Time Group
Assigns Named to User-Defined Group of Nodes
Allows Single Assignment to Constrain Entire Group
Node
Finder
Members
Exclude Members
Options
Realistic – Estimated Delays Closest To Final Delays
0% Average Prediction Error (Within ±10% of Full Fit)
Optimistic – Estimated Delays Exceeds Final Delays
“Do I have any hope of meeting timing?”
Pessimistic – Estimated Delays Falls Below Final Delays
“Am I almost guaranteed to meet timing?”
Copyright © 2005 Altera Corporation
214
Please go to Exercise 5 in the
Exercise Manual
Simulation
Time Bar
Overwrite
Value
Toolbar
Shortcuts
Scripting
View Simulation
Waveform
Result Waveform
Enable/Disable
Breakpoints Name Breakpoint
Arrange Order
of Breakpoints
Generate Power
Input File
Programming/Configuration
Dual-Purpose Pins
Selects Usage of Dual-Purpose Pins after
Configuration Is Complete
Unused Pins
Indicates State of All Unused I/O Pins after
Configuration Is Complete
Error Detection CRC
Enables Internal CRC Circuitry & Frequency
Copyright © 2005 Altera Corporation
257
Quartus II Assembler Module
Generates All Configuration/Programming Files
As Selected in Device & Pin Options Dialog Box
Ways to Run Assembler
Full Compilation
Execute Assembler Individually
Processing Menu Start Start Assembler
Generates Files without Full Compilation
Switching Configuration Devices
Enabling/Disabling Configuration Device Feature
Scripting
Note: All Options are available the Edit Menu except Start Programming & Auto Detect
which are available in the Processing Menu
Choose the
Hardware Settings
JTAG
JTAG Chain Consisting of Altera & Non-Altera Devices
Passive Serial
Altera FPGAs Only
Active Serial
Altera Serial Configuration Devices
In-Socket Programming
CPLDs & Configuration Devices in APU
With Altera's instructor-led training courses, you can: With Altera's on-line training courses, you can:
Listen to a lecture from an Altera technical training Take a course at any time that is convenient for you
engineer (instructor)
Take a course from the comfort of your home or
Complete hands-on exercises with guidance from an office (no need to travel as with instructor-led courses)
Altera instructor
Each on-line course will take approximately 2-3 hours
Ask questions & receive real-time answers from an to complete.
Altera instructor
www.altera.com/training
View Training Class Schedule & Register for a Class
Copyright © 2005 Altera Corporation
275
Advanced Quartus II Course
Accerating Design Cycles Using Quartus II
LogicLock
Incremental Design Flow
Chip Editor
FPGA Optimization
SignalTap II & SignalProbe
Command-Line & Tcl Scripts
HardCopy Software Support