Beruflich Dokumente
Kultur Dokumente
Engineering
OUTLINE
Overview of FPGA
Altera DE2 board
Design flow using Altera Quartus II
TARGETS
You understand what is FPGA
You understand Altera DE2 board
You understand how to program FPGA
INTRODUCTION TO FPGA
Field programmable gate array
Consists of an array of programmable logic cells
surrounded by programmable interconnect
Source: xilinx.com
Programmable Electronics (MEE10203)
Logic
Elements
(LEs)
Staggered
I/O Pads
Configuration
Flash Memory
JTAG &
Control
Circuitry
User Flash
Memory
Artix-7
215,000
13Mb
740
930GMACS
Kintex-7
480,000
34Mb
1,920
2,845GMACS
Virtex-7
2,000,000
68Mb
3,600
5,335GMACS
Spartan-6
150,000
4.8Mb
180
140GMACS
Virtex-6
760,000
38Mb
2,016
2,419GMACS
Transceiver Count
Transceiver Speed
Total Transceiver
Bandwidth (full
duplex)
Memory Interface
(DDR3)
PCI Express
Interface
Analog Mixed
Signal
(AMS)/XADC
Configuration AES
I/O Pins
I/O Voltage
16
6.6Gb/s
211Gb/s
32
12.5Gb/s
800Gb/s
96
28.05Gb/s
2,784Gb/s
8
3.2Gb/s
50Gb/s
72
11.18Gb/s
536Gb/s
1,066Mb/s
1,866Mb/s
1,866Mb/s
800Mb/s
1,066Mb/s
x4 Gen2
Gen2x8
Gen3x8
Gen1x1
Gen2x8
Yes
Yes
Yes
Yes
Yes
500
1.2V, 1.35V, 1.5V,
1.8V, 2.5V, 3.3V
-
Yes
500
1.2V, 1.35V, 1.5V,
1.8V, 2.5V, 3.3V
Yes
Yes
1,200
1.2V, 1.35V, 1.5V,
1.8V, 2.5V, 3.3V
Yes
Yes
576
1.2V, 1.5V, 1.8V,
2.5V, 3.3V
-
Yes
1,200
1.2V, 1.5V, 1.8V,
2.5V
Yes
EasyPath Cost
Reduction Solution
FPGA DEVICES
Depending on the FPGA vendors:
Xilinx.com
Altera.com
Actel.com
Latticesemi.com
ALTERA FPGAS
Different FPGAs for different target applications/markets
CYLCLONE
Low cost, low
power
STRATIX High
bandwidth, high
density for high end
applications
ARRIA Mid-range
transceiver-based
applications
XILINX FPGAS
Different FPGAs for different target applications/markets
SRAM-BASED FPGAS
Lookup table
inside FPGAs
FLASH-BASED FPGAS
Non-volatile FPGAs
(programming will not
change when power off)
Less number of
programming cycles due
to oxide charge build up
in the floating gate
ANTIFUSE-BASED FPGAS
Antifuse structure
Source: berkeley.edu
FPGA Technology and Design Flow | 19 of 77
DESIGN TOOLS
Depending on the FPGA vendors:
Lattice Diamond
Programmable Electronics (MEE10203)
Disadvantages:
no predictable timing
100% interconnect is very expensive
good CAE-tools for FPGA-development is strongly
recommended (free SW design tools is not enough for
design development, means more cost)
FPGA VS MICROCONTROLLER
FPGA:
Programmable logic elements running in a parallel
High configurability and flexibility for further design
optimization
High cost especially for high density logic
Higher power consumption
Microcontroller:
Based on a CPU architecture (executes a set of
instructions in sequential), thus quite slow
Less configurable
Cheaper
Low power consumption
Programmable Electronics (MEE10203)
FEATURES (1/2)
Altera Cyclone IV 4CE115 FPGA device
Altera Serial Configuration device EPCS64
USB Blaster (on board) for programming; both JTAG and
Active Serial (AS) programming modes are supported
2 MB SRAM
Two 64 MB SDRAM
8 MB Flash memory
SD Card socket
4 Push buttons
18 Slide switches
18 Red user LEDs
9 Green user LEDs
50 MHz oscillator for clock sources
Programmable Electronics (MEE10203)
FEATURES (2/2)
24-bit CD-quality audio CODEC with line-in, line-out, and
microphone-in jacks
VGA DAC (8-bit high-speed triple DACs) with VGA-out connector
TV Decoder (NTSC/PAL/SECAM) and TV-in connector
2 Gigabit Ethernet PHY with RJ45 connectors
USB Host/Slave Controller with USB type A and type B connectors
RS-232 transceiver and 9-pin connector
PS/2 mouse/keyboard connector
IR Receiver
2 SMA connectors for external clock input/output
One 40-pin Expansion Header with diode protection
One High Speed Mezzanine Card (HSMC) connector
16x2 LCD module
Source: altera.com
Programmable Electronics (MEE10203)
MEMORY DEVICES
CLOCK
Three 50 MHz oscillator clock inputs
SMA connectors (external clock input/output)
AUDIO
24-bit encoder/decoder (CODEC)
Line-in, line-out, and microphone-in jacks
DISPLAY
16x2 LCD module
POWER
12 V DC input
Switching and step-down regulators LM3150MH
CONNECTORS
1
2
3
4
5
Design Specification
RTL Simulation
Functional Simulation (Modelsim, Quartus II)
Verify Logic Model & Data Flow (No Timing
Delays)
LE
M512
M4K
I/O
Synthesis
Translate Design into Device Specific Primitives
Optimization to Meet Required Area & Performance Constraints
Precision Synthesis, Synplify/Synplify Pro, Design Compiler FPGA,
Quartus II
Source: altera.com
SYNTHESIS STEP
VHDL Code for mux
case S is
when "00" => temp:=A;
when "01" => temp:=B;
when "10" => temp:=C;
when Others => temp:=D;
end case;
SCHEMATIC ENTRY
Using pre-designed logic blocks
Making connection between blocks
NEW PROJECT
PROJECT SUMMARY
PROJECT CREATED
ENTITY light IS
PORT ( x1, x2 : IN STD LOGIC ;
f : OUT STD LOGIC ) ;
END light ;
ARCHITECTURE LogicFunction OF light IS
BEGIN
f <= (x1 AND NOT x2) OR (NOT x1 AND x2);
END LogicFunction ;
PIN ASSIGNMENT
What?
Specify which signal in VHDL code to which
pin on the FPGA board
Click Assignment > Pins
AVAILABLE PINS
ENTITY light IS
PORT ( sys_clk, reset : IN STD_LOGIC ;
7_out : OUT STD_LOGIC_VECTOR(6 downto 0 ) ;
END light ;
Physical pins in
the DE2 board
WAVEFORM EDITOR
Blank waveform editor
ADDED SIGNALS
Setting
value for
clock signal
SETTING SIMULATION
Functional and timing simulations
Click Assignment >Setting > Simulator
SIMULATION STEPS
Processing > Generate Functional Simulation
Netlist (for functional simulation)
Processing > Start Simulation
Functional simulation
Timing simulation
Programmable Electronics (MEE10203)
AS PROGRAMMING (1/3)
AS PROGRAMMING (2/3)
AS PROGRAMMING (3/3)
PROGRAMMING COMPLETED
TECHNICAL REFERENCES
Some links for further exploration:
Terasic.com
Altera.com
Fpga4fun.com
THANK YOU