ee1210 - Daniels - Chapter3 - Seattle Pacific University

Download Report

Transcript ee1210 - Daniels - Chapter3 - Seattle Pacific University

Altera Cyclone II (484 Pin BGA)
Seattle Pacific University
EE 1210 - Logic System Design
AlteraBoard-2
DE1 Pin Assignments
SW9
L2
SW7
M2
SW8
M1
LED
R9
R17
SW6
U11
LED
R7
U18
LED
R8
R18
SW5
U12
LED
R5
V19
LED
R6
Y18
Seattle Pacific University
SW3
V12
SW4
W12
LED
R3
Y19
LED
R4
T18
SW1
L21
SW2
M22
KEY2
T22
KEY1
R21
KEY0
R22
SW0
L22
LED
R1
R19
LED
R2
U19
KEY3
T21
LED
G7
Y21
LED
R0
R20
LED
G5
W21
LED
G6
Y22
LED
G3
V21
LED
G4
W22
EE 1210 - Logic System Design
LED
G1
U21
LED
G2
V22
LED
G0
U22
AlteraBoard-3
DE1 Pin Assignments
0
5
HEX3
HEX0[0]
HEX0[1]
HEX0[2]
HEX0[3]
HEX0[4]
HEX0[5]
HEX0[6]
4
HEX1
HEX2
HEX0
PIN_J2
PIN_J1
PIN_H2
PIN_H1
PIN_F2
PIN_F1
PIN_E2
6
HEX1[0]
HEX1[1]
HEX1[2]
HEX1[3]
HEX1[4]
HEX1[5]
HEX1[6]
Seattle Pacific University
1
2
3
PIN_E1
PIN_H6
PIN_H5
PIN_H4
PIN_G3
PIN_D2
PIN_D1
HEX2[0]
HEX2[1]
HEX2[2]
HEX2[3]
HEX2[4]
HEX2[5]
HEX2[6]
PIN_G5
PIN_G6
PIN_C2
PIN_C1
PIN_E3
PIN_E4
PIN_D3
HEX3[0]
HEX3[1]
HEX3[2]
HEX3[3]
HEX3[4]
HEX3[5]
HEX3[6]
EE 1210 - Logic System Design
PIN_F4
PIN_D5
PIN_D6
PIN_J4
PIN_L8
PIN_F3
PIN_D4
AlteraBoard-4
Steps in designing with Quartus II
1. Select target device
2. Design
• Use VHDL, Schematics, etc.
3. Synthesize
• Build (compile chip)
4. Simulate and verify
• Timing simulation
5. Check input/output pin assignments
• Change any that need to be moved
6. Program chip
Seattle Pacific University
EE 1210 - Logic System Design
AlteraBoard-5
Device Selection
• Assignments | Device
• Cyclone II
• EP2C20F484C7
Seattle Pacific University
EE 1210 - Logic System Design
AlteraBoard-6
Designing/Compiling/Simulating
• Use any of the following methods to make your
design
• Schematics (Block Diagram File – .BDF)
• VHDL (.VHD)
• Verilog (.V)
• Leave the default settings for the compiler – just
press “Play”
• Use the Simulator to check your work
• See tutorials (Homework 3) for a guide
Seattle Pacific University
EE 1210 - Logic System Design
AlteraBoard-7
Pin Assignment
• Assign pins to input/output symbols
• For now inputs come from switches and buttons
• For now outputs go to LEDs
• Use the tables from the previous slides to figure out
which pins are connected to the parts you need
• Select Assignments | Pins
• Use the table at the bottom – ignore the rest
• Enter the pin number for each I/O
Seattle Pacific University
EE 1210 - Logic System Design
AlteraBoard-8
Programming
• First, Re-Compile after selecting Pins
• Select Tools | Programmer
• Power up the board (red button)
• Make sure RUN/PROG is in RUN mode
• Make sure USB-Blaster is specified – if not use the
Hardware setup
• Click Start
Seattle Pacific University
EE 1210 - Logic System Design
AlteraBoard-9