Quartus II Training
Quartus II Training
Quartus II Training
Low-Cost FPGAs
Cyclone II & Cyclone
CPLDs
MAX II, MAX 7000 & MAX 3000
Configuration Devices
Serial (EPCS) & Enhanced (EPC)
Copyright 2005 Altera Corporation 2
MAX 3000A
EPM7032AE EPM3064A EPM3128A EPM3256A EPM3512A
MAX 7000A
EPM7064AE EPM7128AE EPM7256AE EPM7512AE 512 212 7.5 116 5.6 4.7
Useable Gates Macrocells Maximum User I/O Pins tPD (ns) fCNT (MHz) tSU (ns) tCO1 (ns)
600 1,250 2,500 32 34 4.5 227 2.9 3.0 64 66 4.5 222 2.8 3.1 128 96 5.0 192 3.3 3.4
5,000 10,000 256 158 7.5 127 5.2 4.8 512 208 7.5 116 5.6 4.7
600 1,250 2,500 32 36 4.5 227 2.9 3.0 64 68 4.5 222 2.8 3.1 128 100 5.0 192 3.3 3.4
3.3 V
MAX 7000AE
2.5 V
MAX 7000B
Performance
Package Offerings
Package Offerings
MAX 3000A
MAX Macrocell
Programmable Register
Register Bypass PRn D Q ENA CLRn
Device
Denotes Vertical Migration Notes: 1. TQFP: thin quad flat pack 2. FineLine BGA package (1.0-mm pitch)
MAX II Architecture
Logic Elements (LEs) Staggered I/O Pads
addnsub
Register Chain Row, Column & Direct Link Routing Local Routing LUT Chain Register Chain
Reg data1 data2 data3 cin data4 4-Input LUT clock ena aclr
Applications
Store Revision & Serial Number Data Store Boot-Up & Configuration Data
Copyright 2005 Altera Corporation 14
MAX
0.3-um EEPROM Product Term 32 to 512 Macrocells Global None 212 5.0 V, 3.3 V, 2.5 V 5.0 V, 3.3 V, 2.5 V, 1.8 V 2 per Device 6 to 10 per Device None
MAX II
0.18-um Flash Look-Up Table (LUT) 128 to 2210 Macrocells (240 to 2,210 LEs) Row & Column 8 Kbits 272 3.3 V/2.5 V, 1.8 V 3.3 V, 2.5 V, 1.8 V, 1.5 V 4 per Device 1 per I/O Pin 1 per I/O Pin
Nios II CPU
Debug
FPGA
Copyright 2005 Altera Corporation 16
32 General Purpose Registers 3 Instruction Formats 32-Bit Instructions 32-Bit Data Path Flat Register File Separate Instruction and Data Cache (configurable sizes) Tightly-Coupled Memory Options Branch Prediction 32 Prioritized Interrupts On-Chip Hardware (Multiply, Shift, Rotate) Custom Instructions JTAG-Based Hardware Debug Unit
Flash
SDRAM
I/O
FPGA
CPU DSP
DSP
Problem: Reduce Cost, Complexity & System On A Programmable Chip (SOPC) Power
Flash
FPGA
SDRAM
CPU is a Replace External Devices Solution: Critical Control Function Required for System-Level Logic with Programmable Integration
Copyright 2005 Altera Corporation 19
Licensing
Nios II Delivered As Encrypted Megacore
Licensed Via Feature Line In Existing Quartus II License File Consistent With General Altera Megacore Delivery Mechanism Enables Detection Of Nios II In Customer Designs (Talkback)
MAX+PLUS II
All FLEX, ACEX, & MAX Devices
Copyright 2005 Altera Corporation 22
RTL Simulation
- Functional Simulation (Modelsim, Quartus II) - Verify Logic Model & Data Flow (No Timing Delays)
LE
M4K
M512
Synthesis
- Translate Design into Device Specific Primitives - Optimization to Meet Required Area & Performance Constraints - Precision Synthesis, Synplify/Synplify Pro, Design Compiler FPGA, Quartus II
I/O
Timing Analysis
- Verify Performance Specifications Were Met - Static Timing Analysis
Schematic Editor
Block Diagram File Graphic Design File
.bsf
.tdf
.vhd
.v
Symbol File
Text File
Text File
Text File
Memory Editor
HEX MIF
Generated within Quartus II Imported from 3rd-Party EDA tools
Objectives
Create a project using the New Project Wizard Name the project Add design files Pick a device
Copy state_machine.v and past in Dsp_7_segment Click Next to advance to the Project Wizard: Add Files [page 2 of 5].
Objectives
Create a counter using the MegaWizard Plug-in Manager Build a design using the schematic editor Analyze and elaborate the design to check for errors
Step 3
1. 2. 3. Set the output bus to 27 bits. For the remaining settings in this window, use the defaults that appear .. Select next .Turn on Modulus , with a count modulus of and key in 79999999 Select finish
Step 4
In the Graphic Editor, double-click in the screen so that the Symbol Window appears. Inside the symbol window, click on to expand the symbols defined in the Project folder. Double-click on timer_1s. Click the left mouse button to put down the symbol inside the schematic file.. The symbol for timer_1s now appears in the schematic.
Step 5
1. 2. From the File menu, open the file state_machine.v From the File menu, go the Create/Update menu option and select Create Symbol Files for Current File. Click Yes to save changes to Dsp_7_segment.bdf. Once Quartus II is finished creating the symbol, click OK. Close the state_machine.v file In the Graphic Editor, double-click in the screen so that the Symbol Window appears again. Double-click on state_machine in the Project folder. Click OK... The symbol for state_machine now appears in the schematic.
3. 4.
1. 2. 3. 4. .
To place pins in the schematic file, go to Edit Insert Symbol OR double-click in any empty location of the Graphic Editor. Browse to libraries primitives pin folder. Double-click on input or output int: To insert multiple pins select Repeat Insert Mode. To rename the pins double-click on the pin name after it has been inserted. Type the name in the Pin name(s) field and Click OK
2.
Connect all of the pins and blocks as shown in the figure below
3.
4.
Objectives
Pin assignment Perform full compilation Build a design using the schematic editor How to Download programming file
Step 1
1. 2. 3. Choose Assignments Assignment editor. From the View menu, select Show All Know Pin Names. Please click Pin in Category
Step 2
1. 2. 3. 4. 5. 6. 7. Pls install DSP Development Kit Stratix edtion CD Open ds_stratix_dsp_bd.pdf from C:\megacore\stratix_dsp_kit-v1.1.0\Doc Check clk , pushbotton and seven segment display pin location from ds_stratix_dsp_bd.pdf Key your pin number in location Click on the Save button in the toolbar From Assignments, select Device. Click Device & Pin options. Click Unused pins .Select As input tri-stated from Reserve all unused pins From the Processing menu, select Start Compilation
Step 3
1. 2. 3. 4. From the Tools menu, select programmer Click on Add File. Select Dsp_7_segment.sof. Check Hardware Setup. Select your download cable on Currently selected hardware(ByteBlasterII) Select JTAG from Mode
Step 4
1. 2. 3. Turn on Program/configure. Or see figure below Click Start See 7-segment status
SignalTap II Agenda
SignalTap II Overview & Features Using SignalTap II Interface Advanced Triggering
SignalTap II ELA
Captures the Logic State of FPGA Internal Signals Using a Defined Clock Signal Gives Designers Ability to Monitor Buried Signals Connects to Quartus II through FPGA JTAG Pins Captures Real-Time Data
Up to 200 Mhz
<1 2 16
1 4 32
4 16 128
16 64 512
64 256
Modes of Operation
Three Different Configurations
Internal RAM ELA Configuration Debug Port ELA Configuration Hybrid Approach
ByteBlaster II
Parallel Port Cable
ByteBlasterMV
Parallel Port
MasterBlaster
USB / Serial Port Cable
Copyright 2005 Altera Corporation 57
Setup Features
Up to 1024 Data Channels Multiple Analyzers in One Device
Supports Analysis of Multiple Clock Domains Each Analyzer Can Run Simultaneously
Setup
Data Triggering
Data Capture
Data Analysis
Data Analysis
Setup
Samples Captured
Old Samples
Samples Captured
New Samples
TIME
Data Triggering
Trigger Input
Setup External Trigger to Trigger the Analyzer Data Capture
Trigger Output
Signifies Trigger Event Occurred with SignalTap II
Data Analysis
Data Triggering
Data Capture
Mnemonic Tables
Create User-Defined Labels for Bit Sequences (Ex. State Machine)
Data Analysis
2. Save .STP File & Compile with Design 3. Program Device 4. Acquire Data
Copyright 2005 Altera Corporation 64
Method 2
Select New (File Menu) Other Files SignalTap II File
Waveform Viewer
Signal Configuration
Instance Manager
Instance Manager
Selects Current ELA to Setup/View Displays the Current Status of each Instance Displays Size (Resource Usage) of ELA
Data Capture
Circular
Specify Trigger Position
Pre Center Post Continuous
Segmented
Specify Segment Depth
Triggering
Trigger Levels
Indicate up to 10 Trigger Conditions
Trigger-In
Any I/O Pin Can Trigger the SignalTap II Analyzer Generates auto_stp_trigger_in_n Pin
Trigger-Out
Indicates When a Trigger Pattern Occurs Generates auto_stp_trigger_out_n Pin
Delayed 4 Clock Cycles after Actual Trigger Event
Waveform Viewer
Setup Tab Describes the Signal Settings
Data Signals vs. Trigger Signals Sets up Each Triggering Level (L1 L10)
Setup Tab
Data Tab
Copyright 2005 Altera Corporation 73
Basic Triggering
All Signals Must Be True for Level to Cause Data Capture
Debug Port
Routes Data Signals to Spare I/O Pins for Capture by External Logic Analyzer Quartus II Automatically Generates auto_stp_debug_out_m_n Pin
m Represents the Instance Number of the Analyzer n Represents the Order the Debug Port Pin Occurs in the Signal List
Mnemonic Table
Allows a Set of Bit Patterns to Be Assigned UserDefined Names
Right-Click in the Setup View of an STP File & Select Mnemonic Setup Select Add Table Select Add Entry
3) Program Device(s)
Use Quartus II Programmer or STP File
Program Button in the SignalTap II Interface Only Configures the Selected Device in Chain Use Quartus II Programmer to Program Multiple Devices
Can Create a STP File for each Device in the JTAG Chain
4) Acquire Data
SignalTap II Toolbar & STP File Controls
Run Autorun Stop Read Data (Reads in Data from Last Analysis)
Display Signal as Bar or Line Chart Export to Other Tools for Viewing or Analysis (File Menu)
Creates .VWF, .TBL, .CSV, .VCD, .JPG or .BMP File
Copyright 2005 Altera Corporation 81
2. Save .STP File & Compile with Design 3. Program Device 4. Acquire Data
Copyright 2005 Altera Corporation 82
Recompilation
Recompilation Required
Addition/Removal of Instance, Data or Trigger Modifying the Sample Clock or Buffer Depth Enabling/Modifying Trigger-In/Trigger-Out Enabling the Debug Port
Incremental Routing
Allows Switching Trigger & Data Nodes without Full Recompilation
2)
Pre-Synthesis Nodes
Post-fitting Nodes
Set Netlist Optimizations Logic Option to Never Allow on Entities which Have SignalTap II Nodes
Performance Preservation
SignalTap II can Potentially Effect the Performance of a Design
Routing and/or Placement Can Change
Possible Solution
Back-Annotate Design before Adding SignalTap II See Quartus II Handbook, Volume 3, Chapter 10 for More Suggestions
Thank You